Technical Stuff

Start from basics

Deployment on Jboss EAP 5.1

Deployment on Jboss EAP 5.1
Deployment on Jboss EAP 5.1
5 (100%) 1 vote

Deployment in Jboss means deploying the code into jboss itself to reflect the changes in application.

Suppose, if you want some changes on website. Instead of changing single single code and we can add the code in a EAR or WAR format and deploy it in Jboss. Within a single go, you can see your changes reflected on website.

Code can be packed in EAR and WAR format.

WAR (Web Archives) : Web modules which contain Servlet class files, JSP Files, supporting files, GIF and HTML files are packaged as JAR file with .war (web archive) extension

EAR (Enterprise Archives): All above files (.jar and .war) are packaged as JAR file with .ear (enterprise archive) extension and deployed into Application Server.

Following steps need to follow for deploying code into Jboss :

  1. Check Jboss service using following command.

Command >> ps -aef | grep jboss.

  1. Stop the Jboss service.

Command >> kill -9 <pid>

  1. Take the backup of old EAR file from /deploy directory.

Path >> jboss-eap-5.1/jboss-as/server/<profile>/deploy

Command >> mv file-name.war mv file-name.war_date

  1. Copy the .ear file in deploy directory.
  2. Delete tmp, work, data, from <profile> directory.

Path >> jboss-eap-5.1/jboss-as/server/profile

Command >> rm -rf tmp work  data

  1. Start the Jboss service.

Path >>  jboss-eap-5.1/jboss-as/bin

Command >> ./run.sh &

& – To run the command in background.

7.Post sanity check done , URL is working properly.

In this way, we can do deployment in Jboss.

Happy Learning !!!

If you have doubt or queries, you can definetely comment us or can mail us on [email protected]

If you have any recommedation for future blog, You can email us on [email protected]

Top Searches :

  1. Introduction to Middleware
  2. Introduction to Jboss
  3. Installation of Jboss
  4. Log4j
  5. Heap Dump
  6. Thread Dump
  7. VAPT – Disabling Apache Coyoto
  8. VAPT – HTTP Methods

4 thoughts on “Deployment on Jboss EAP 5.1

Leave a Reply

%d bloggers like this: