No, in two cases, the tomcat configuration is identical. Only, I observe via
JMX as the manager is not correct. There is only the declaration of the XSD
in web.xml which changes.
server.xml : the first cluster
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" />
<Listener className="org.apache.catalina.core.JasperListener" />
<Listener
className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener
className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and
saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="8080" redirectPort="8443"
protocol="HTTP/1.1" enableLookups="false"
acceptCount="100" maxHttpHeaderSize="8192"
connectionLinger="-1"
disableUploadTimeout="true"
connectionTimeout="20000"
keepAliveTimeout="60000" maxKeepAliveRequests="1000"
maxThreads="50" processorCache="50" />
<Connector port="8081" redirectPort="8443"
protocol="HTTP/1.1" enableLookups="false"
acceptCount="100" maxHttpHeaderSize="8192"
connectionLinger="-1"
disableUploadTimeout="true"
connectionTimeout="20000"
keepAliveTimeout="60000" maxKeepAliveRequests="1000"
maxThreads="10" processorCache="10" />
<Connector port="8009" redirectPort="8443"
protocol="AJP/1.3" enableLookups="false"
maxThreads="300" processorCache="300" />
<Engine name="Catalina" defaultHost="localhost"
jvmRoute="routeXX">
<Cluster
className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
channelSendOptions="10">
<Manager
className="org.apache.catalina.ha.session.BackupManager"
expireSessionsOnShutdown="false"
notifyListenersOnReplication="true"
mapSendOptions="10" />
<Channel
className="org.apache.catalina.tribes.group.GroupChannel">
<Membership
className="org.apache.catalina.tribes.membership.McastService"
address="ip" port="port"
frequency="500" dropTime="3000" />
<Receiver
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
address="ip" port="port"
autoBind="100" selectorTimeout="5000" minThreads="2" maxThreads="6" />
<Sender
className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
<Transport
className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"
keepAliveCount="100000" keepAliveTime="600000" maxRetryAttempts="3" />
</Sender>
<Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"
/>
<Interceptor
className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"
/>
</Channel>
<Valve
className="org.apache.catalina.ha.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;" />
<Valve
className="org.apache.catalina.ha.session.JvmRouteBinderValve" />
<Deployer
className="org.apache.catalina.ha.deploy.FarmWarDeployer"
watchEnabled="false"
tempDir="/tmp/war-temp/"
deployDir="/tmp/war-deploy/" watchDir="/tmp/war-listen/" />
<ClusterListener
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"
/>
<ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionListener" />
</Cluster>
<Realm
className="org.apache.catalina.realm.LockOutRealm">
<Realm
className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" />
</Realm>
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"/>
</Engine>
</Service>
</Server>
2012/2/21 Pid <[email protected]>
> On 20/02/2012 09:16, Lucas Pouzac wrote:
> > Hi,
> >
> > I have a concern about replication sessions when using the standard
> Servlet
> > 3.0.
> >
> > Do you have an idea for this to work?
> >
> >
> > https://issues.apache.org/bugzilla/show_bug.cgi?id=52685
> >
> > *If in web.xml, I declare:
> >
> > <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns="http://java.sun.com/xml/ns/javaee"
> > xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
> > ...
> > <distributable />
> > ...
> > </web-app>
> >
> > the session replication works
> > (org.apache.catalina.ha.session.BackupManager).
> >
> > But, if I declare:
> >
> > <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns="http://java.sun.com/xml/ns/javaee"
> > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
> > ...
> > <distributable />
> > ...
> > </web-app>
> >
> > the session replication doesn't work
> > (org.apache.catalina.session.StandardManager).*
>
> I think from the above, that you're saying that session replication
> doesn't work if you use a manager that doesn't replicate sessions.
>
> Is this correct?
>
>
> p
>
>
> --
>
> [key:62590808]
>
>