Re: Clustering "application scope replication"

2005-04-23 Thread Peter Rossbach
I hope you have download and use my cluster patches for 5.5.9 http://issues.apache.org/bugzilla/show_bug.cgi?id=34389 when you implement the feature ServletContext attribute replication feature I support you. ( s. other mail) Peter Joakim Ahlén schrieb: Hi! We have a cluster of two tomcat 5.5.9-mac

Re: Clustering "application scope replication"

2005-04-23 Thread Peter Rossbach
Hey, with the next tomcat 5.5.10 release you can add a ClusterListener and LifecycleListener to your cluster config to realize those ServletContext attributes replication things. Look at the current cvs head and test it. Your LifecycleListener receive the manager/context un/registra

RE: Clustering "application scope replication"

2005-04-22 Thread Dale, Matt
: RE: Clustering "application scope replication" Let me rephrase the question, how does Tomcat determine what is a session attribute. What if there are classes that implement java.io.Serializable that have nothing to do with "session attributes?" -ryan -Original Messag

RE: Clustering "application scope replication"

2005-04-22 Thread J. Ryan Earl
day, April 22, 2005 10:19 AM To: Lionel Farbos; Tomcat Users List Subject: RE: Clustering "application scope replication" I've read that document many times, and that does not answer my question. -ryan -Original Message- From: Lionel Farbos [mailto:[EMAIL PROTECTED] Sent:

RE: Clustering "application scope replication"

2005-04-22 Thread J. Ryan Earl
I've read that document many times, and that does not answer my question. -ryan -Original Message- From: Lionel Farbos [mailto:[EMAIL PROTECTED] Sent: Friday, April 22, 2005 9:50 AM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Clustering "application scope replica

Re: Clustering "application scope replication"

2005-04-22 Thread Lionel Farbos
serialize out -everything- that implements java.io.Serializable? > > -ryan > > -Original Message- > From: Lionel Farbos [mailto:[EMAIL PROTECTED] > Sent: Friday, April 22, 2005 9:11 AM > To: Tomcat Users List > Cc: [EMAIL PROTECTED] > Subject: Re: Clustering &qu

Re: Clustering "application scope replication"

2005-04-22 Thread Will Hartung
> From: "J. Ryan Earl" <[EMAIL PROTECTED]> > Sent: Friday, April 22, 2005 7:44 AM > How does Tomcat know what to serialize? Does it just use the Reflection > package and serialize out -everything- that implements java.io.Serializable? When you do a "setAttribute(key, object)", it serializes the

Re: Clustering "application scope replication"

2005-04-22 Thread Will Hartung
> From: "Joakim Ahlén" <[EMAIL PROTECTED]> > Sent: Friday, April 22, 2005 5:54 AM > Hi! > > We have a cluster of two tomcat 5.5.9-machines using session > replication. However, we also have data in application scope (set with > getServletContext().setAttribute(...)) which as far as i have found in

RE: Clustering "application scope replication"

2005-04-22 Thread J. Ryan Earl
: [EMAIL PROTECTED] Subject: Re: Clustering "application scope replication" Hi For your needs, you can use session replication (http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cluster-howto.html) or your own mechanisms and tables with datas in a database ... Regards. On Fri, 22 Apr 2005 15:1

Re: Clustering "application scope replication"

2005-04-22 Thread Lionel Farbos
Hi For your needs, you can use session replication (http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cluster-howto.html) or your own mechanisms and tables with datas in a database ... Regards. On Fri, 22 Apr 2005 15:15:54 +0200 "Joakim Ahlén" <[EMAIL PROTECTED]> wrote: > Ok, too bad. Is there

Re: Clustering "application scope replication"

2005-04-22 Thread Joakim Ahlén
Ok, too bad. Is there any way of storing objects if we want them in "cluster scope"? An ugly hack would be to use one single HttpSession with a special session-id to store global objects, and somehow fetch objects from within this HttpSession from inside requests that belongs to other sessions

Re: Clustering "application scope replication"

2005-04-22 Thread Jess Holle
The servlet spec says this data is local to a given JVM. I suppose a servlet engine could expand beyond the spec, but I'd be surprised if Tomcat did here. Joakim Ahlén wrote: Hi! We have a cluster of two tomcat 5.5.9-machines using session replication. However, we also have data in application s

Clustering "application scope replication"

2005-04-22 Thread Joakim Ahlén
Hi! We have a cluster of two tomcat 5.5.9-machines using session replication. However, we also have data in application scope (set with getServletContext().setAttribute(...)) which as far as i have found in the docs, is not replicated. Is there any way to accomplish this with tomcat? If not, i