Deployment on Jboss EAP 5.1
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 :
- Check Jboss service using following command.
Command >> ps -aef | grep jboss.
- Stop the Jboss service.
Command >> kill -9 <pid>
- 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
- Copy the .ear file in deploy directory.
- Delete tmp, work, data, from <profile> directory.
Path >> jboss-eap-5.1/jboss-as/server/profile
Command >> rm -rf tmp work data
- 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 :