• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
reply
    Bookmark Topic Watch Topic
  • New Topic