aspose file tools*
The moose likes JBoss/WildFly and the fly likes JBoss Hot deployment using exploded war Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss Hot deployment using exploded war" Watch "JBoss Hot deployment using exploded war" New topic
Author

JBoss Hot deployment using exploded war

Nikhil Das Nomula
Greenhorn

Joined: Jun 10, 2011
Posts: 26
I have written my ant script in such a way that whenever it builds it builds a .war file but while deploying it unzips that into the deploy folder of the JBoss server profile.

Now according to my readings on JBoss, this should take care of hot deployment right?

If that is wrong can you please let me know how do we handle the exploded war in JBoss for automatic deployment and is my way of exploding the war correct??
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Nikhil, welcome to Java Ranch!

Yes, placing an exploded war into the deploy directory works with the hot deployer. Juts make sure that your directory name has a .war extension.

I recommend, however, that you do not unpack the war file directly into the deploy directory - the hot deployer might try to deploy the app before it is entirely unpacked. Instead, unpack the war file into a temporary location (on the same disk partition) as the deploy directory and then move the exploded war directory to the deploy directory. This way the entire eploded war show up at the same instant.


JBoss In Action
Nikhil Das Nomula
Greenhorn

Joined: Jun 10, 2011
Posts: 26
Thank you Peter !

I did that and it worked !!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss Hot deployment using exploded war