From: Jerome Lepage - AKEROZ [mailto:[EMAIL PROTECTED]
I have developped a web application on Tomcat (5.0.28).
My webapp use Hibernate 3 and i have a Singleton pattern too.
I want have my webapp deployed N time in same Tomcat Server.
But i don't want to share context, hibernate and Singleton
they don't share context ?
Thanks again for your time and answers..
Jerome Lepage
AKEROZ
- Original Message -
From: Serge Fonville [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, October 24, 2008 11:37 AM
Subject: Re: Question about Tomcat context
Hi, Thanks to you too for your answers.
Have you tried just deploying it N times, making sure all the jars are in
WEB-INF/lib?
Each webapp should get its own classloader, and hence will have its own copies
of Hibernate and your singleton. I *think* they'll have different contexts,
too,
From: Jerome Lepage - AKEROZ [mailto:[EMAIL PROTECTED]
But when i launch tomcat with this env vars :
JAVA_OPTS=-XX:MaxPermSize=512m -Xms24m -Xmx512m
Well, yes :-). That should give you enough perm space.
Tomcat looks like not really care about the memory i grant to JVM.
It's seems that
First a few questions;
What does the app do
Do the deployed applications differ
What is the reason you want them separate
Do they share anything, reaml,db,files,
Do you need to be able to update them easily (all in one go)
How do you intend to deploy them, war, copy, remote
Is it an option to
11:37 AM
Subject: Re: Question about Tomcat context
First a few questions;
What does the app do
Do the deployed applications differ
What is the reason you want them separate
Do they share anything, reaml,db,files,
Do you need to be able to update them easily (all in one go)
How do you intend
From: Peter Crowther [mailto:[EMAIL PROTECTED]
Subject: RE: Question about Tomcat context
From: Jerome Lepage - AKEROZ [mailto:[EMAIL PROTECTED]
JAVA_OPTS=-XX:MaxPermSize=512m -Xms24m -Xmx512m
For server environments, you usually want to set Xms to the same value as Xmx
to avoid heap