This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

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

 
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.
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • 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!
 
That's my roommate. He's kinda weird, but he always pays his half of the rent. And he gave me this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!