You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Antony Paul <an...@hotmail.com> on 2003/11/04 05:22:45 UTC

Tomcat clustering and servletContext.

Hi,
    I asked this question yesterday no one replied.
Suppose Tomcat is running in a cluster with load balancer. If I put a
JavaBean in ServletContext is it possible to access this bean in all
machines ?.

Antony Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat clustering and servletContext.

Posted by Christopher Schultz <ch...@comcast.net>.
Antony,

>     I asked this question yesterday no one replied.
> Suppose Tomcat is running in a cluster with load balancer. If I put a
> JavaBean in ServletContext is it possible to access this bean in all
> machines ?.

No, the ServletContext does not get propagated to other machines. 
Consider using a shared JNDI scope to share this information.

-chris


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat clustering and servletContext.

Posted by Antony Paul <an...@hotmail.com>.
Thanks
----- Original Message -----
From: "Tim Funk" <fu...@joedog.org>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Tuesday, November 04, 2003 5:45 PM
Subject: Re: Tomcat clustering and servletContext.


> AFAIK, only sessions are replicated. Attributes in the Servlet Context are
> not replicated.
>
> -Tim
>
> Antony Paul wrote:
> > Hi,
> >     I asked this question yesterday no one replied.
> > Suppose Tomcat is running in a cluster with load balancer. If I put a
> > JavaBean in ServletContext is it possible to access this bean in all
> > machines ?.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat clustering and servletContext.

Posted by Tim Funk <fu...@joedog.org>.
AFAIK, only sessions are replicated. Attributes in the Servlet Context are 
not replicated.

-Tim

Antony Paul wrote:
> Hi,
>     I asked this question yesterday no one replied.
> Suppose Tomcat is running in a cluster with load balancer. If I put a
> JavaBean in ServletContext is it possible to access this bean in all
> machines ?.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org