• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss Hot deployment using exploded war

 
Nikhil Das Nomula
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Nikhil Das Nomula
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Peter !

I did that and it worked !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic