Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

reference external war file from enterprise project  RSS feed

Ramesh Krishna
Posts: 25
  • 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 web.war will also have it's own Struts-config.xml file and web.xml.


Jeanne Boyarsky
author & internet detective
Posts: 36406
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!