RE: [Q] Multi server environment

2004-01-07 Thread Ralph Einfeldt

Tomcat is not clustered. It just allows session 
replication between tomcat nodes.

AFAIK every thing else is unique to each instance.
You have to deploy to each instance, and you have 
unique pools in each instance that don't know 
anything about each other. 
(Not quite shure about the pool, haven't looked 
that closely at dbcp by now)

 -Original Message-
 From: Riaan Oberholzer [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 07, 2004 10:18 AM
 To: [EMAIL PROTECTED]
 Subject: [Q] Multi server environment
 
 
 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.
 

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



RE: [Q] Multi server environment

2004-01-07 Thread Altankov Peter
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]