• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot understand Hotdeploy or exploded format (jboss:deploy-exploded-warfile vs cargo) goals

 
Sander Evanfield
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We are using eclipse(ganymede)-maven2 with JBOSS 4.2. I come from an environment where they build the ear and deploy everytime code changes which is time consuming for development.
Now we need mechanism to deploy code when I make changes in my IDE without restarting the server. All our classes are currently behind WEB-INF in a war which sits inside an ear. If I make changes to jsp and java classes I should be able to see those changes with a page refresh on the browser without starting the server

1) Is this the same as hot-deploy and exploded format and can be accomplished ?
2) Can Maven help me here with Maven JBOSS plugin goal like jboss:deploy-exploded-warfile
Are there any pre-reqs or other things reqd for this to work correctly ?
3) Tommorrow if we have some classes in ejb-jars and third-party java-libs how does the above set-up change
or there are limitations like class-loading issues due to different class-loaders.
4) How is cargo plugin different from 2 the pros and cons ?

I;am hard pressed on time and would appreciate some thing that works correctly.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mr. Amit Kulkarni wrote:Now we need mechanism to deploy code when I make changes in my IDE without restarting the server. All our classes are currently behind WEB-INF in a war which sits inside an ear. If I make changes to jsp and java classes I should be able to see those changes with a page refresh on the browser without starting the server

1) Is this the same as hot-deploy and exploded format and can be accomplished?
2) Can Maven help me here with Maven JBOSS plugin goal like jboss:deploy-exploded-warfile
Are there any pre-reqs or other things reqd for this to work correctly ?
3) Tommorrow if we have some classes in ejb-jars and third-party java-libs how does the above set-up change
or there are limitations like class-loading issues due to different class-loaders.
4) How is cargo plugin different from 2 the pros and cons?

I am hard pressed on time and would appreciate some thing that works correctly.


In short:

1.) Effectively yes.
2.) Yes, you just need to configure the plugin correctly in your POM
3.) Class loading in Jboss can get 'interesting', I'd recommend reading their class loading section on their wiki in order to understand how class loading works when you have more than one application running on the server.
4.) Cargo is a more generic plugin, you may find it easier to use (or not).

Hope that helps!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic