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

reference external war file from enterprise project

 
Ramesh Krishna
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

we are greatfull for your valuable response

we are developing an project using j2ee & WSAD 5.1.1, we have a reusable module,which will be used in future appl's which has been packaged separately into
1) applicationclient.jar
2) Ejb.jar
3) web.war

currently we are developing an enterprise appln in which we want to use these above said files.......

our current status is that.......

we have placed ApplicationClient.jar and Ejb.jar in Enterprise Project and we are able to use them via classpath...

our current problem is........

we want to achieve the same thing for web.war also, so we request you to guide on how best this situation can be handled

note: we are using Struts frame work for front end....so web.war will also have it's own Struts-config.xml file and web.xml.


regards

Ramesh
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33680
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ramesh,
To make sure I'm understanding correctly, it sounds like you want to use the same war and change the configuration files?

If you didn't need to change the config files, you would be able to just associate your project with the second enterprise app.

Unfortunately there isn't a clean way to reuse the wars (or any other project) and change settings. First, I recommend getting as much out of the war as possible. Take all the Java code and put it in another project. This at least minimizes the version control problems. For the rest of the war, you will have to make a copy.

Another alternative is to create a branch in the repository for the second applicatio (with the same project name.) However, this is even harder to maintain than the separate projects.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic