Mark is right. If you go for, lets say, 2 tomcat workers they are totally independent
instances of jvm and if they use DBCP and pool you actually get 2 pools. Thus if you
set it with 16 connections each this is actually what you get.
-Original Message-
From: Riaan Oberholzer [mailto:[EMAIL PROTECTED]
Sent: 07 2004 . 11:18
To: [EMAIL PROTECTED]
Subject: [Q] Multi server environment
I'm asking this because I've had experience in
WebLogic with this, but I'm not even sure Tomcat can
be set up like this, so maybe this is a non-issue...
anyway...
Suppose you setup Tomcat to have two servers do load
balancing. Thus, you application is replicated over
two servers, although you only deploy it once to the
cluster.
How would Tomcat setup datasources? If I define a
connection pool with 16 connections, will it be sread
over the two servers, or will *each* get 16
connections.
If they are spread, how is it done? Tomcat uses DBCP,
which uses the Pool package which I guess have a
singleton that manages the connections ... but on
which server is the pool (singleton) then actually
active?
This is purely a matter of interest... I run Tomcat as
a single-server, so in theory I am free to use
singletons and be assured that they are indeed true
singletons and not a singleton per server.
__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]