Hi,
Tomcat: 6.0.29, binary distribution downloaded from apache.org
JVM: 1.6.0_21 (Sun, 64-bit).
OS: Linux RHEL 5.5, fully patched.
I understand that FarmWarDeployer can only be used cluster context defined in a
<Host>, this is fine.
I have a cluster fully defined in the Engine context.
My question is:
1. Can I can use an empty cluster definition in
the host to include the FarmWarDeployer?
2. Should the FarmWarDeployer be included in <Host> without the surrounding
<Cluster> context in this case?
3. Will the config below create two clusters (one in the Engine context, one in
the Host context)?
<?xml version='1.0' encoding='utf-8'?>
<Server port="${fmp.tomcat.shutdown.port}" shutdown="SHUTDOWN">
... standard setup ...
<Service name="Catalina">
... standard setup ...
<Engine name="Catalina" defaultHost="localhost"
jvmRoute="jvm${tomcat.clusterid}">
<Cluster
className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
channelSendOptions="6">
<Manager
className="org.apache.catalina.ha.session.BackupManager"
expireSessionsOnShutdown="false"
notifyListenersOnReplication="true"
mapSendOptions="6" />
<Channel
className="org.apache.catalina.tribes.group.GroupChannel">
<Membership
className="org.apache.catalina.tribes.membership.McastService"
address="228.0.0.4"
port="45564" frequency="500" dropTime="3000" />
<Receiver
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
address="auto" port="5000"
selectorTimeout="100" maxThreads="6" />
<Sender
className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
<Transport
className="org.apache.catalina.tribes.transport.nio.PooledParallelSender" />
</Sender>
<Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector" />
<Interceptor
className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"
/>
<Interceptor
className="org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor"
/>
</Channel>
<Valve
className="org.apache.catalina.ha.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;"
statistics="true" />
<Valve
className="org.apache.catalina.ha.session.JvmRouteBinderValve" />
<ClusterListener
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener" />
<ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionListener" />
</Cluster>
<Realm
className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" />
<Host name="localhost" appBase="webapps"
unpackWARs="false"
autoDeploy="false" xmlValidation="false"
xmlNamespaceAware="false">
<Cluster>
<Deployer
className="org.apache.catalina.ha.deploy.FarmWarDeployer"
tempDir="${catalina.base}/temp/war-tmp/"
deployDir="${catalina.base}/farm/deploy/"
watchDir="${catalina.base}/farm/listen/" watchEnabled="true"/>
</Cluster>
</Host>
</Engine>
</Service>
</Server>
Thanks,
Best Regards,
Brett Delle Grazie
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________