LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-23-2010, 06:05 AM   #1
sreejithp
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
Session replication using apache+mod_jk+tomcat(5.5.28-veriosn of tomcat)


Hi,

I have two tomcats running on two diffrent system connected via LAN, and they are load balanced via apache+mod_jk. The load balance set up is working but have issue with session replication. When any one of the tomcat gets down the session is not replicated .

The clustered configuration that i have added to the server.xmol file is given below :

<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="true"
notifyListenersOnReplication="true">

<Membership
className="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>

<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
tcpListenAddress="auto"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>

<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="pooled"
ackTimeout="15000"
waitForAck="true"/>

<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;"/>

<Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
tempDir="/tmp/war-temp/"
deployDir="/tmp/war-deploy/"
watchDir="/tmp/war-listen/"
watchEnabled="false"/>


<ClusterListener className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
</Cluster>
=============================================================================


I have also added the below content to the ROOT.xml file as given below:

< Context path="" debug="0" reloadable="true"
cookies="true" crossContext="false" privileged="false" >

==============================================================================

Then i have added <distributable/>
to the file web.xml in location webapps/ROOT/WEB-INF/

=============================================================================


Please guide me to the right path and help me to set this tomcat set up.
 
Old 12-24-2010, 06:46 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
I'm afraid I don't have a solution, but you would be far more likely to find one if you had posted this in Linux - Networking rather than Linux - Newbie, as it's quite an advanced question and one specifically about networking.

Perhaps you could ask a moderator to move it
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat 6 / apache 2.2.3 / mod_jk help mikelawford Linux - Server 11 08-20-2009 03:05 PM
Apache/Tomcat/Mod_JK chantman Linux - Software 1 04-05-2006 04:32 AM
tomcat,apache,mod_jk + localhost dashp Linux - Software 1 03-27-2005 08:06 PM
Apache Tomcat mod_jk connector dashp Linux - Newbie 0 03-24-2005 07:12 PM
Apache, Tomcat problem with mod_jk WaveyDave Linux - Software 0 09-20-2001 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration