[jboss-dev-forums] [Deployers on JBoss (Deployers/JBoss)] - Howto to hot deploy only parts of exploded EAR file

arubamalice do-not-reply at jboss.com
Fri Mar 2 11:56:46 EST 2007


Apologies if this subject has been posted before but I have searched through the forums and not found an answer.

I am using JBoss 4.0.4. The project I am working on deploys an exploded EAR folder.
The name of the exploded EAR folder is MyTestApp.ear (example name).
This EAR file contains an exploded web app (MyWebApp.war) and an exploded JAR file  (MyClasses.jar)

So the top level folder structure is

MyTestApp.ear
 +--META-INF
 +--MyWebApp.war
 +--MyClasses.jar

 The MyWebApp.war and MyClasses.jar components are correctly referenced in the META-INF/application.xml file as web and java modules
 respectively.

Now every time I do a build and update the META-INF/application.xml, JBoss correctly auto deploys the whole ear file.

The problem is that my application uses Spring and various other components. Hence the build and deploy time can take up to
two minutes which is really frustrating when making minor changes to only the classes in the MyClasses.jar file.

Is there a way for me to onlyhot deploy the MyClasses.jar file and get JBoss to reload all the classes in this JAR, without deploying
the whole EAR file?

If anyone has any advice this would be appreciated.


Ayub M


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024702#4024702

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024702



More information about the jboss-dev-forums mailing list