Hi,
Filip can correct me if I'm wrong, but I believe at present only session
attributes are replicated.  It might also be that context
(ServletContext) attributes are replicated, although I say "might"
because I think that's a work in progress.  If that's available it would
address your need I think.

You can also consider using Tomcat's replication, making your Tree a
session attribute, but adding a singleton to your webapp that ensures
only one instance of the treemap is kept across all sessions (this is
easy enough to do with an HttpSessionAttributeListener).

Otherwise, you can contribute a patch, continue using your own JGroups
approach.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Nandish Rudra [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, August 03, 2004 11:37 AM
>To: Tomcat Users List (E-mail)
>Subject: Tomcat 5 replication question
>
>Hi,
>
>I am using Tomcat 5.27 for clustering 2 server. The web application
running
>on thses server maintains a TreeMap that needs to be replicated across
the
>cluster. Currently, I use JGroups to do my own clustering, but now that
>tomcat 5 has built in clusteing i would like to use it. I cannot use
>sessions to replicate the tree bacause the data is not session
specific,
>the
>web application is more of a service. Is there a way of making tomcat
take
>over the replication task and if so, what do i need to do or where can
i
>find documentation for it?
>
>Regards,
>Nandish Rudra
>Email: [EMAIL PROTECTED]
>Email: [EMAIL PROTECTED]
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to