• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

How to do deployments on JBoss Application Server

How to do deployments on JBoss Application Server

Deployment is a two-step process

  1. First we notify JBoss that of the application we want to deploy by copying it to ${jboss.server.home.url}/deploy/ or any of its subdirectories
  2. Then, JBoss performs the necessary steps to make that application ready for our use

Reverting the deployment is also a two-step process

  1. First we notify JBoss that of the application we want to undeploy by removing it from ${jboss.server.home.url}/deploy/ directory
  2. Then, JBoss performs the necessary steps to stop the application and unload its resources

Alternatively, applications can be deployed/undeployed/and re-deployed via jboss.system:service=MainDeployer JMX MBean (more on this later). This mechanism also support remote management of JBoss deployments

  1. Supports deployment dependencies
  2. Hot-deployment vs. cold-deployment

Archived components are uncompressed (a.k.a. exploded) under ${jboss.server.temp.dir}/deploy/

  1. JBoss deletes (or at least it is supposed to delete) ${jboss.server.temp.dir}/deploy/ deployments upon restart
  2. It is recommended to deploy applications already uncompressed (exploded) for to avoid the overhead of uncompression, and provide easy access to deployment descriptors and JSP files
Interested in mastering JBOSS?
Learn more about JBOSS Tutorial in this blog post.

The deployed components are automatically redeployed if their deployment descriptors are modified while JBoss AS is running

JBoss supports nested deployments (e.g. WAR under EAR) regardless of whether they are compressed into archives or deployed uncompressed

With clustering enabled, JBoss AS also supports farmed deployment – that is, pushing applications across the entire cluster when deployed on any single member of that cluster

JBoss supports JSR-88 (Java EE application deployment spec) but

There are no tools that make this kind of deployment easy – requires writing code

The resulting deployments go into the tmp/ directory – making redeployments harder

Deployers on JBoss AS

  1. JBoss has an extensible deployment architecture that allows components to be easily integrated into the core JBoss Microcontainer
  2. Deployers for: WARs, EARs, EJBs, JAR libraries, RARs, SARs, XML-based services, HARs, Aspects, Client, BeanShell scripts

The deployers are deployed themselves as *.deployer or *-deployer-beans.xml under ${jboss.server.home.url}/deployers/ directory

For indepth understanding on JBoss click on:

Summary
Review Date
Reviewed Item
How to do deployments on JBoss Application Server
Author Rating
5

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on How to do deployments on JBoss Application Server"

    Leave a Message

    Your email address will not be published. Required fields are marked *

    Site Disclaimer, Copyright © 2016 - All Rights Reserved.

    Support


    Please leave a message and we'll get back to you soon.

    I agree to be contacted via e-mail.