JBoss is an Open Source, standard compliant, Enterprise JavaBeans Application Server implemented in 100% Pure Java. It is usable for both development and production.
JBoss 4 is designed to be an EJB (latest vestion) container and server.
JBoss comes bundled with Jakarta Tomcat or Jetty to serve web pages, JSP pages and Servlets. JBoss can be run on different machines.
There is no requirement for root access to run JBoss as none of the default ports are below the 1024 priveledged port range.
JBoss will run very effectively on a machine with 64 megabytes of RAM, and requires only a few megabytes of disk (including source code!).
One of the nicest features of JBoss is its support for "hot" deployment. What this means is that deploying a Bean is a simple as copying its JAR file into the deployment directory. If this is done while the Bean is already loaded, JBoss automatically unloads it, then loads the new version.
There is a built-in SQL database server for handling persistent beans, and this starts up automatically with the server.
Download latest version of JBoss:
The latest JBoss version jboss-4.0.4.GA-Patch1-installer.jar can be downloaded from http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=16942&release_id=416591
Download file from this above link and for installation double click on this jar file and install(follow all the instruction as given).
Start and Shut down JBoss:
Now start the service from the ../jboss/bin/run.bat on the DOS window. Or
Double click on this run.bat file from /jboss/bin/ directory and jboss will run. Remember, never close this DOS window, other wise JBoss will shut down.
Within directory ../jboss/server, there are three example (some time only one) configurations: all, default and minimal, each of which installs a different set of services.
minimal: which is the bare minimum to start JBoss. It contains logging, JNDI server and URL deployment scanner to find new deployments. There is no web container, no EJB container or JMS.
default: which is the default server environment that is started when no server parameter is specified in the run script. It contains everything you need to run a stand-alone J2EE server. It does not include RMI/IIOP, clustering services and the web-services deployer. If you do no know which configuration to use, I recommend to use default.
all: contains all available services.
Changing the JBoss Port Number:
By Default, it run on port number 8080, but if you want to change the port number 8080, then open file:
..jboss\server\default\deploy\jbossweb-tomcat55.sar\server.xml, and find the comment line and then in the next line
u change the port 8080 to according to ur choice.
Now open your web browser and type http://127.0.0.1:8080 and Jboss will run here. If it is not running then it means u have not install your Jboss in the proper way.
and then check other Url in the JBoss
JBoss Management Console http://localhost:8080/jmx-console
JBoss Web Console http://localhost:8080/web-console
There are several ways to stop JBoss:
* Type CTRL-C in the DOS window.
* Run the script ..\jboss\bin\shutdown.bat -S
* Use the JBoss Management Console.
o Find section jboss.system
o Select type=Server
o Find operation shutdown and press button invoke
JBoss 4 is designed to be an EJB (latest vestion) container and server.
JBoss comes bundled with Jakarta Tomcat or Jetty to serve web pages, JSP pages and Servlets. JBoss can be run on different machines.
There is no requirement for root access to run JBoss as none of the default ports are below the 1024 priveledged port range.
JBoss will run very effectively on a machine with 64 megabytes of RAM, and requires only a few megabytes of disk (including source code!).
One of the nicest features of JBoss is its support for "hot" deployment. What this means is that deploying a Bean is a simple as copying its JAR file into the deployment directory. If this is done while the Bean is already loaded, JBoss automatically unloads it, then loads the new version.
There is a built-in SQL database server for handling persistent beans, and this starts up automatically with the server.
Download latest version of JBoss:
The latest JBoss version jboss-4.0.4.GA-Patch1-installer.jar can be downloaded from http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=16942&release_id=416591
Download file from this above link and for installation double click on this jar file and install(follow all the instruction as given).
Start and Shut down JBoss:
Now start the service from the ../jboss/bin/run.bat on the DOS window. Or
Double click on this run.bat file from /jboss/bin/ directory and jboss will run. Remember, never close this DOS window, other wise JBoss will shut down.
Within directory ../jboss/server, there are three example (some time only one) configurations: all, default and minimal, each of which installs a different set of services.
minimal: which is the bare minimum to start JBoss. It contains logging, JNDI server and URL deployment scanner to find new deployments. There is no web container, no EJB container or JMS.
default: which is the default server environment that is started when no server parameter is specified in the run script. It contains everything you need to run a stand-alone J2EE server. It does not include RMI/IIOP, clustering services and the web-services deployer. If you do no know which configuration to use, I recommend to use default.
all: contains all available services.
Changing the JBoss Port Number:
By Default, it run on port number 8080, but if you want to change the port number 8080, then open file:
..jboss\server\default\deploy\jbossweb-tomcat55.sar\server.xml, and find the comment line and then in the next line
u change the port 8080 to according to ur choice.
Now open your web browser and type http://127.0.0.1:8080 and Jboss will run here. If it is not running then it means u have not install your Jboss in the proper way.
and then check other Url in the JBoss
JBoss Management Console http://localhost:8080/jmx-console
JBoss Web Console http://localhost:8080/web-console
There are several ways to stop JBoss:
* Type CTRL-C in the DOS window.
* Run the script ..\jboss\bin\shutdown.bat -S
* Use the JBoss Management Console.
o Find section jboss.system
o Select type=Server
o Find operation shutdown and press button invoke

0 comments:
Post a Comment