views:

79

answers:

2

I have a web application - deployed on Tomcat.

It has two modules Module A and Module B

Both have java code as well as UI component (struts\JSP etc.)

Functionally, Module A is independent an doesn't depend upon Module B For ModuleA: We create a war for Module A and deploy it as ModuleA.war

Now Module B depends upon Module A We so "merge" the two modules into ModuleB.war This involves merging the web content directories into one

We were feeling uncomfortable with this whole process of merging and wondering if there is a smart way to do this ? We are also considering putting all the web content in one of teh modules - say Module A and just keep the java code in ModuleB

Any suggestions ?

A: 

Hello,

do you have solved this problem? I have the same problem now.

Well there has been little interest in this Q- so farMaybe this is poorly worded or just an issue for two of usIf you have suggestions on how to word it better- please put it here and I shall incorporate that in the question (I don't think you have enough karma to edit it yourself)Thanks !!!
RN
+1  A: 

This is one of the java problems. Say you app A is the public website, say your app B is your admin, but uses same database, same bizlogic classes,etc. I found this problem all time. My approach might help you.

module A will have classes related only to project A module B will have classes related only to project B mod A and B will share a .jar file who contains all related classes, you can deploy it in TOMCAT/lib or if you want maintain it individually, deploy it in each app MYAPP/WEB-INF/lib

Rodrigo Asensio