You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Brian McSweeney <br...@aurium.net> on 2003/05/26 12:00:59 UTC
Distributed Application Scope?
Hi all,
I know that when you run a cluster you can use shared distributed
session scope. Can you also use shared distributed application scope?
I'm deciding whether or not to store some information, which won't change
that often, in the application scope or not.
Advice anyone?
thanks,
Brian
Re: Distributed Application Scope?
Posted by Brian McSweeney <br...@aurium.net>.
Thanks Max. That's exactly what I needed to know.
----- Original Message -----
From: "Max Cooper" <ma...@maxcooper.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Cc: <jb...@lists.sourceforge.net>
Sent: Monday, May 26, 2003 11:48 PM
Subject: Re: Distributed Application Scope?
> My understanding is that application scope is NOT replicated across the
> cluster. Each node has its own application scope. However, if you have
> initializer code that will setup the application scope on each node,
> this may still be a reasonable approach.
>
> Watch out for ANYTHING that may ever need to change, however, since the
> changes will only occur on the node that initiated them, and the other
> nodes will have stale info until the next server bounce. If the info
> rarely changes, you could put it in a cache with a timed expiration. Or
> use a package designed to do distributed caching.
>
> -Max
>
> On Mon, 2003-05-26 at 03:00, Brian McSweeney wrote:
> > Hi all,
> >
> > I know that when you run a cluster you can use shared distributed
> > session scope. Can you also use shared distributed application scope?
> > I'm deciding whether or not to store some information, which won't
change
> > that often, in the application scope or not.
> >
> > Advice anyone?
> >
> > thanks,
> > Brian
> --
> Max Cooper <ma...@maxcooper.com>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Distributed Application Scope?
Posted by Max Cooper <ma...@maxcooper.com>.
My understanding is that application scope is NOT replicated across the
cluster. Each node has its own application scope. However, if you have
initializer code that will setup the application scope on each node,
this may still be a reasonable approach.
Watch out for ANYTHING that may ever need to change, however, since the
changes will only occur on the node that initiated them, and the other
nodes will have stale info until the next server bounce. If the info
rarely changes, you could put it in a cache with a timed expiration. Or
use a package designed to do distributed caching.
-Max
On Mon, 2003-05-26 at 03:00, Brian McSweeney wrote:
> Hi all,
>
> I know that when you run a cluster you can use shared distributed
> session scope. Can you also use shared distributed application scope?
> I'm deciding whether or not to store some information, which won't change
> that often, in the application scope or not.
>
> Advice anyone?
>
> thanks,
> Brian
--
Max Cooper <ma...@maxcooper.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org