subject: orion not replicating session information outside of sample
applications

Hello.  We have been experimenting with clustering orion servers and were
initially successful.  We started the load balancer, got our servers
registered with it, and tested it using the servlet/SessionServlet program.
Everything worked as it should.  We modified the SessionServlet app to print
the ip of the server it was running from.  We had it count to 5, then we
shut down the server, clicked refresh and the servlet went up to 6 on a
different server.  Perfect.

The problem is that when we moved the session servlet to one of our other
application directories, it no longer updated to 6, it started at 1 again.
Why does orion replicate state only for applications in the default-web-app
directory and not anywhere else?  We tried adding <cluster-config/> to the
orion-web.xml file (in the application-deployment directory) of our other
apps and it still doesn't work.  Here is a snip of our default-web-site.xml
file:

<web-site host="ivan" port="8080" cluster-island="1" display-name="Default
Orion WebSite">
 <!-- The default web-app for this site, bound to the root -->
 <default-web-app application="default" name="defaultWebApp" />

 <frontend host="ivan" port="80" />

 <web-app application="Test3" name="Test3-web" root="/Test3" />
 <web-app application="eservices" name="eservices-web" root="/eservices" />
 <web-app application="sessions" name="sessions-web" root="/sessions" />
 <web-app application="sessions2" name="sessions2-web" root="/sessions2" />
...

Here is a snippet of our server.xml:

<application-server
 application-directory="../applications"
 deployment-directory="../application-deployments"
>
 <rmi-config path="./rmi.xml" />
 <!-- JMS-server config link, uncomment to activate the JMS service -->
 <!-- <jms-config path="./jms.xml" /> -->
 <principals path="./principals.xml" />
 <log>
  <file path="../log/server.log" />
 </log>
 <global-application name="default" path="application.xml" />
 <global-web-app-config path="global-web-application.xml" />
 <web-site path="./default-web-site.xml" />
 <application name="Test3" path="../applications/Test3/" auto-start="true"
/>
 <application name="eservices" path="../applications/eservices/"
auto-start="true" />
 <application name="sessions" path="../applications/sessions/"
auto-start="true" />
 <application name="sessions2" path="../applications/sessions2/"
auto-start="true" />


We have installed orion at a client site and need to get clustering working
correctly within the next week.  Anyone else successfully set up clustering?
Any tips?  See anything we're missing?  We will provide any information you
require.



Thanks for your time.

Michael N. Christoff
Developer, Eldan Software, Ltd.
Toronto, Canada
www.eldan.com

Reply via email to