Vignesh,

It's a problem of DeltaManager, so I would suggest you to use BackupManager
as manager-class instead of DeltaManager and set the value of
apps-distributable="true" and apps-cross-context="true". After these
settings load balancing in replication mode will work.


On Tue, Nov 17, 2009 at 11:35 AM, vignesh sabapathi <
[email protected]> wrote:

>
> Hi
>
> I have done ofbiz clustering by deploying ofbiz in external tomcat. but
> when
> i try to do clustering (load balancing using Apache) with embedded ofbiz
> tomcat the session is not replicating
>
> Like when i shut down one instances . .... OFbiz goes to login page again
>
> here are my configuration files (ofbiz-containers.xml)
>
>  <container name="catalina-container"
> class="org.ofbiz.catalina.container.CatalinaContainer">
>        <!-- static configuration for tomcat -->
>        <property name="delegator-name" value="default"/>
>        <property name="use-naming" value="false"/>
>        <property name="debug" value="0"/>
>        <property name="catalina-runtime-home" value="runtime/catalina"/>
>        <property name="apps-context-reloadable" value="false"/>
>        <property name="apps-cross-context" value="false"/>
>        <property name="apps-distributable" value="true"/>
>        <!-- one or more tomcat engines (servers); map to this + host -->
>        <property name="default-server" value="engine">
>            <property name="default-host" value="172.17.197.56"/>
>            <property name="jvm-route" value="node1"/>
>            <property name="access-log-pattern">
>                <property-value>%h %l %u %t "%r" %s %b "%{Referer}i"
> "%{User-Agent}i"</property-value>
>            </property>
>            <property name="access-log-resolve" value="true"/>
>            <property name="access-log-rotate" value="true"/>
>            <property name="access-log-prefix" value="access_log."/>
>            <property name="access-log-dir" value="runtime/logs"/>
>            <property name="enable-request-dump" value="false"/>
>            <!-- uncomment for cluster support -->
>            <property name="default-server-cluster" value="cluster">
>                <property name="rep-valve-filter">
>
>
> <property-value>.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;</property-value>
>                </property>
>                <property name="manager-class"
> value="org.apache.catalina.ha.session.DeltaManager"/>
>                <property name="debug" value="5"/>
>                <property name="replication-mode" value="pooled"/>
>               <!-- <property name="tcp-listen-host" value="172.17.197.56"/>
> -->
>                <property name="tcp-listen-port" value="4001"/>
>                <property name="tcp-sector-timeout" value="100"/>
>                <property name="tcp-thread-count" value="6"/>
>                <property name="mcast-bind-addr" value="172.17.197.56"/>
>                <property name="mcast-addr" value="228.0.0.4"/>
>                <property name="mcast-port" value="45564"/>
>                <property name="mcast-freq" value="500"/>
>                <property name="mcast-drop-time" value="3000"/>
>            </property>
>
> In instances 2's ofbiz-containers.xml file i changed tcp-listen-port to
> 4002
> and jvm node to node2.
> And i am using "OFBiz-4.0 release version
> And my terminal output doesnt show any error about clustering
> Thanks in advance
>
> looking forward your replies
>
> bye
>
> vignesh sabapathi
> mailto : [email protected]
>
>
> --
> View this message in context:
> http://n4.nabble.com/Session-replication-not-working-in-OFBiz-embedded-tomcat-clustering-tp622565p622565.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>



-- 
Anil Soni
+91-9930302283cell
[email protected]

Reply via email to