Friday, December 19, 2014

Getting Started with Jboss Application Server 7

In this blog I will demonstrate how to get started with JBoss Applicaiton Server. I will download, install, configure and deploy a sample application to get going. I have downloaded Jboss-as-7.1.0-Final. You can download it from this Link. This will be a zip file. To install Jboss just unizp the file in any directory and the installation is done. Jboss can be run in two modes-standalone or domain. For demonstration purpose we will use the standalone mode. In the root directory i.e Jboss-as-7.1.0-Final is a bin directory. To start Jboss in standalone mode execute the standalone.bat file. This will start Jboss in standalone mode.

Next we need to add a user to access the admin console. To add user execute adduser.bat file inside the bin directory. We need to add a Management User, so input "a" and press enter. In realm leave it blank, input user name and password. New user will be added. Make a not of userid and password as this will be required to access the admin console.




Now execute the standalone.bat file to start jboss server. Once the server is started go to http://127.0.0.1:8080. This will open the web console.




Then click on the Administration Console hyperlink. This prompt you to enter the user name and password. Enter the user name and password entered during the user configuration. Once successfully logged in the Admin Console will open. Below is how the admin console looks like.



Click on deployments on the left hand corner side. Click on Manage Deployments. Then click on Add Content and browse to the location where you have the war file to upload. In my case the name of the war file is JbossClusterWepApp.Once the application is deployed click on the enable button to enable the application. Go to the webconsole and access the application. In my case the URL is -http://127.0.0.1:8080/JbossClusterWebApp/. And you can see your sample web application running.



Thats all to get started with Jboss Application Server 7.

Thanks for reading.











No comments:

Post a Comment