You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Jean-Sebastien Delfino <js...@apache.org> on 2006/09/09 01:56:04 UTC
Fix for occasional Web service crashes, Re: [C++] Moving to Axis2C
0.93
Andrew Borley wrote:
>
> Just got it working on Windows, compiles the runtime & samples and
> runs the
> calculator sample with no changes (on our side) required.
> I tried out the REST support too, but this seems to be a bit flakey - the
> server seems to fall over occasionally. Not sure whether that's a Tuscany
> issue or an Axis issue yet.
>
> Cheers
> Andy
>
Andy,
The fix committed under revision r441691 fixes the occasional server
crashes. This was not related to Web Services, it was a problem with
ComponentContextImpl::~ComponentContextImpl() aggressively deleting
proxies that it had served. Proxies need to live longer than the context
that served them as they can be passed around to other components for
example.
With my change, CPP proxies are now deleted when the CPPServiceProxy
object that created them gets deleted (and this will eventually happen
when the instance of the current Composite gets deleted, right now I
don't think that the destructors do all the necessary clean up, but this
is a more minor issue).
Let me know if you still see these occasional server crashes, this
change seemed to fix them in my environment at least. Thanks...
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Fix for occasional Web service crashes, Re: [C++] Moving to Axis2C 0.93
Posted by Andrew Borley <aj...@gmail.com>.
On 9/9/06, Jean-Sebastien Delfino <js...@apache.org> wrote:
>
> Andrew Borley wrote:
> >
> > Just got it working on Windows, compiles the runtime & samples and
> > runs the
> > calculator sample with no changes (on our side) required.
> > I tried out the REST support too, but this seems to be a bit flakey -
> the
> > server seems to fall over occasionally. Not sure whether that's a
> Tuscany
> > issue or an Axis issue yet.
> >
> > Cheers
> > Andy
> >
>
> Andy,
>
> The fix committed under revision r441691 fixes the occasional server
> crashes. This was not related to Web Services, it was a problem with
> ComponentContextImpl::~ComponentContextImpl() aggressively deleting
> proxies that it had served. Proxies need to live longer than the context
> that served them as they can be passed around to other components for
> example.
>
> With my change, CPP proxies are now deleted when the CPPServiceProxy
> object that created them gets deleted (and this will eventually happen
> when the instance of the current Composite gets deleted, right now I
> don't think that the destructors do all the necessary clean up, but this
> is a more minor issue).
>
> Let me know if you still see these occasional server crashes, this
> change seemed to fix them in my environment at least. Thanks...
>
>
Hi Sebastien,
Those changes fixed my problem - no more server crashes!
Thanks
Andy