Different Contextes One Instance?

2002-01-10 Thread Erwin Ambrosch

Hi All!

TC 3.3 has a class loader architecture which allowes to load classes 
with respect
to the container, to all web applics and to a specific web applic.

The question I have is the following.
I have developed some components which are inteded to be used by all of our
web applics. One of this component for instance is a database connection 
pool
manager. It is implemented as a Singleton. So, if I put the .jar file 
into the
directory $TOMCAT_HOME/lib/apps and for instance there are three wep
applics using it, how mucht Singleton does the VM maintain? Three (one 
in each
context) or one for all contextes.

Many Thanks in advance
Erwin



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Different Contextes One Instance?

2002-01-10 Thread Larry Isaacs

There would be a single instance, but all threading
and concurency issues would be up to you to handle.

Cheers,
Larry

 -Original Message-
 From: Erwin Ambrosch [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 10, 2002 4:41 AM
 To: Tomcat Mailinglist
 Subject: Different Contextes One Instance?
 
 
 Hi All!
 
 TC 3.3 has a class loader architecture which allowes to load classes 
 with respect
 to the container, to all web applics and to a specific web applic.
 
 The question I have is the following.
 I have developed some components which are inteded to be used 
 by all of our
 web applics. One of this component for instance is a database 
 connection 
 pool
 manager. It is implemented as a Singleton. So, if I put the .jar file 
 into the
 directory $TOMCAT_HOME/lib/apps and for instance there are three wep
 applics using it, how mucht Singleton does the VM maintain? 
 Three (one 
 in each
 context) or one for all contextes.
 
 Many Thanks in advance
 Erwin
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Different Contextes One Instance?

2002-01-10 Thread Erwin Ambrosch

Thank's for the answer Larry.

Larry Isaacs wrote:

There would be a single instance, but all threading
and concurency issues would be up to you to handle.

Cheers,
Larry

-Original Message-
From: Erwin Ambrosch [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 4:41 AM
To: Tomcat Mailinglist
Subject: Different Contextes One Instance?


Hi All!

TC 3.3 has a class loader architecture which allowes to load classes 
with respect
to the container, to all web applics and to a specific web applic.

The question I have is the following.
I have developed some components which are inteded to be used 
by all of our
web applics. One of this component for instance is a database 
connection 
pool
manager. It is implemented as a Singleton. So, if I put the .jar file 
into the
directory $TOMCAT_HOME/lib/apps and for instance there are three wep
applics using it, how mucht Singleton does the VM maintain? 
Three (one 
in each
context) or one for all contextes.

Many Thanks in advance
Erwin



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]