File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two instances of a servlet

 
Anselm Paulinus
Ranch Hand
Posts: 390
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are trying to create an application to be deployed once on JBoss both as a Test.ear as well as a Dev.ear so the Testers could use the Test file while the developers use the Dev files. If any body has knowledge of how I can go about this on JBoss, please explain in details.

Thanks,
Anselm.
 
Jeff Shelley
Ranch Hand
Posts: 70
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anselm,
you could put the same war file in two ears, and have application.xml configured to have two web modules with two different contexts.

A problem with this is that dev.ear and test.ear could get out of sync when a developer rebuilds and deploys one but not the other. If this is a problem, you might be able to work something out by putting the war in the deploy directory and having one of the ears point to it, but I imagine you'll get enough ClassCastExceptions to warrant doing it the first way.

Best of luck!

--Jeff
 
Anselm Paulinus
Ranch Hand
Posts: 390
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thks Jeff:

At least, I have a starting point.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic