ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sathwik B P <sathwik...@gmail.com>
Subject Re: Sharing Database with two tomcat servers
Date Sun, 10 May 2015 04:45:54 GMT
Watch out for the race conditions with the two DeploymentPoller one on each
ODE instance working on the same deploy directory.


On Sun, May 10, 2015 at 9:44 AM, sudharma subasinghe <suba.11@cse.mrt.ac.lk>
wrote:

> Hi,
>
> I used separate deploy directories for both ODE instances. I will configure
> the path to share the same directory.
>
> Thank you.
>
> On 9 May 2015 at 23:47, Tammo van Lessen <tvanlessen@gmail.com> wrote:
>
> > Hi Sudharma,
> >
> > did both ODE instances operate on the same deploy directory? Or do they
> > have their own? The basic assumption is that both share the same,
> > synchronized data, thus I'd recommend to either use a symlink or
> configure
> > the path by setting the "ode-axis2.deploy.dir" property in
> > WEB-INF/conf/ode-axis2.properties.
> >
> > Best,
> >   Tammo
> >
> > On Tue, May 5, 2015 at 5:18 PM, sudharma subasinghe <
> suba.11@cse.mrt.ac.lk
> > >
> > wrote:
> >
> > > Hi,
> > >
> > > I checked the behavior of ODE using two tomcat servers when deploying
> > same
> > > HelloWorld2 sample. Following are the things I could observe.
> > >
> > >
> > >    -
> > >
> > >    deployed HelloWorld2-1 in Tomcat-1 server → Active state
> > >    -
> > >
> > >    deployed HelloWorld2-2 in Tomcat-2 server → Active state
> > >    -
> > >
> > >    deployed HelloWorld2-3 in Tomcat-1 server → HelloWorld2-1 Retired
> from
> > >    Active state
> > >    -
> > >
> > >    undeployed HelloWorld2-3 → but still in the database in Active state
> > >    -
> > >
> > >    deployed HelloWorld2-4 in Tomcat-2 server → HelloWorld2-2 Retired
> from
> > >    Active state
> > >    -
> > >
> > >    All these details are shared by the two ode engines.
> > >
> > > 1) I can't undeploy a process through the browser. So I removed the
> whole
> > > folder and .deployed file. But in the shared database that process is
> > still
> > > in the Active state.
> > >
> > > 2) Though HelloWorld2-1, is deployed in Tomcat-1 server and
> > HelloWorld2-2,
> > > HelloWorld2-4 are deployed in Tomcat-2 server all the deployed details
> > are
> > > shown in both browsers.
> > >
> > > Can you explain reasons for 1) and 2) ?
> > >
> > > Thank you
> > >
> >
> >
> >
> > --
> > Tammo van Lessen - http://www.taval.de
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message