Jboss Installation

What is Jboss ?
JBoss is an open source project, sponsored by Red Hat, aimed at building a Java-based middleware application server.
Middleware is a piece of software that connects two or more software applications so that they can exchange data.

In short " jboss is nothing but multiple instances of tomcat "

so let c how we can install jboss on centos 5.4

First of all you need to check the java version installed

to check the java version on the terminal just type java -version

now corresponding to the version of jboss to be installed the exact version of java need to be installed
for example jboss-5.1.0.GA-jdk6.zip version of jboss required jdk6

The verison for java can be obtained from this website
http://www.oracle.com/technetwork/java/javase/downloads/index.html


JAVA Installation

In this post i am using jdk version jdk-6u16-linux-x64-rpm.bin

first give executable right to the file this can be done by the following command
chmod u+x jdk-6u16-linux-x64-rpm.bin

next begin the installation by ./chmod u+x jdk-6u16-linux-x64-rpm.bin

remove the previous version of java by issuing the following command
rm -rf /usr/bin/java

create a link to the java executable by doing the following
cd /usr/bin
ln -s /usr/java/jdk1.6.0_16/bin/java java

set the enviroment variable
JAVA_HOME=/usr/java/jdk1.6.0_16
export JAVA_HOME

command make entries in profile so the the enviroment variable are set on reboot

add the above two lines to /etc/profile

check the version of java again .
Jboss Installation

Download JBoss AS from http://jboss.org/jbossas/downloads
Here i have installed jboss JBoss AS 5.1.0.GA.zip

copy the file to /usr/local/

unzip the file issuing the command unzip JBoss AS 5.1.0.GA.zip

jboss must not be started as root ao adda user jboss or any other user
no add a user jboss using useradd jboss

change the ownership of jboss by chown jboss.jboss JBoss AS 5.1.0.GA

Switch user using su - jboss

jboss/bin/run.sh

next start jboss by the command
jboss AS 5.1.0.GA/bin/run.sh


by issuing this jboss is started on the localhost this is the same as issuing this command


jboss AS 5.1.0.GA/bin/run.sh -b 127.0.0.1 -c default

to start jboss on all interfaces use the following command

jbossAS 5.1.0.GA/bin/run.sh -b 0.0.0.0 -c default

to access jboss open a browser and enter th following url

http://your_ip_server:8080