On 2/16/07, Babu Satasiya <[EMAIL PROTECTED]> wrote:

Hi,

Thanks,

Do you think application needs to take care of new session replication or
not, if not then try cart in example and you will find error message, You
need to do some serialization of objects unless its not possible.


Even if you didn't want clustering support, all objects that are added
into the session _have_ to be Serializable. This is a requirement.

What is the error that you get when you try the cart example ?

Regarding multicast address setup on that cluster option, do we need to
setup that on all the cluter tomcat system, otherwise how it will work?


There is a default multicast address and port. When you enable the
SimpleTCP option, that default value is used.

If you read the document at
http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html, scroll
down to the section called "Simple Cluster Configuration". That has a
server.xml which contains the tag "<Cluster
className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"/>".

By, default, this tag is commented out. We need to uncomment it.

In that same document, beneath the sample server.xml, you'll find text
on the default multicast address (228.0.0.4) and the multicast udp
port (8012). So, all Tomcats that use this default configuration will
also become part of the same cluster.

If you want multiple Tomcat instances to be part of various clusters
selectively, you'll have to specify different groups of  multicast
addresses. So, TomcatA and TomcatB would have one multicast address
and port, while TomcatC and TomcatD would have some other multicast
address and port.

This too is documented at that same section.


Please update on all the steps which you might have done not documented to
how to which will help others to get going with session replication. If it
is possible you can add your server.xml of both tomcat.

With regards,

Babulal Satasiya
Cisco System Inc.


Sriram Narayanan wrote:
>
> On 2/14/07, Babu Satasiya <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> Please update about cluster option in server.xml, without that how does
>> it
>> work. If you can post all the steps will help others, otherwise it may
>> even
>> confuse to others.
>>
>
> I just looked over my previous post, and I see the following statement:
>
> 2. In server.xml, uncomment the tag for clustering
>
> That's all that I needed to do for enabling clustering on Tomcat.
>
>
>> Thanks for posting on session replication, please let me know if we
>> anyone
>> have live application and if they go for session replication which you
>> explain is method using session in memory. Will they need to do anything
>> in
>> application or not?
>>
> http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html That link
> describes clustering better than I would.
>
> -- Sriram
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context: 
http://www.nabble.com/A-Howto-for-Tomcat-6.0.9%2C-mod_jk%2C-apache-2.2-load-balancing-%2B-session-replication-tf3221269.html#a8998726
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to