Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: [Q] Multi server environment

Ralph Einfeldt

2004-01-07



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:riaanoberholzer@(protected)]
> Sent: Wednesday, January 07, 2004 10:18 AM
> To: tomcat-user@(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: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.