Chamikara Jayalath wrote:
Hi Jerome,
On 6/11/07, *Jerome Camilleri* < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Chamikara Jayalath wrote:
> Hi,
>
> Since u created the ConfigurationContext you will have to call
> following methods.
>
> serviceClient.cleanup ();
> configurationContext.terminate ();
>
> But due to a bug in Axis2 this will work only if you have done an
> inOut addressable message exchange. Basically my module.shutdown()
> method only get called if the ListnerManager has been started which
> only happens in the InOut case. Think deepal fixed this but will
only
> be available in the next version.
>
> Until then what we can do is getting the Sandesha Module object from
> the configurationcontext and calling the shutdown () method. (I
know
> its ugly :-( )
>
I don't know how to get a module with the configContext object
pleased ?
AxisModule moduleDesc = (AxisModule)
configContext.getAxisConfiguration ().getModules().get("sandesha2-1.2");
Module sandeshaModule = moduleDesc.getModule();
sandeshaModule.shutdown(configContext);
(Again - yes it does not look nice :-( , we'll have this fixed with
the next axis2 release)
My client stop running normally. So it's a good workaround for my
problem until next release of Axis2...
Thanks.
Jérôme