While it is possible to put some of the librarie out of .war, inside
common, you must be aware of side effects. Libraries like struts are not
designed to run  multiple context within a given classloader (The
servelt, for example, can only be instanciated once). I don't know for
Hibernate and for etc :)

Also, you could take a look at .ear if you need to play with a common
part and multiple .war. But tomcat does not deploy .ear, you must use a
full featured J2EE container for this.
Mikolaj Rydzewski a écrit :

> Hello,
>
> I've got rather complex web application (struts, hibernate, etc) which
> runs on Tomcat. There is a need to deploy this webapp for various
> customers. The only difference between them is the database they
> connect to, well, almost the only one ;-)
>
> Is there any way to reuse one war file and map it to several contexts?
> I could give application's parameters (like jndi connection uri )
> within context.xml descriptor. Every deploy takes several MB of
> memory, and it's a waste to have hibernate and required jars five
> times in memory.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to