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
:-( )

Chamikara


On 6/8/07, Jerome Camilleri <[EMAIL PROTECTED]> wrote:

Hi,

I test the version 1.2 of Sandesha2 with Axis2 1.2 with an  IN-OUT MEP
and synchronous call.
My client don't finished normally and I must interrupt it (when I send a
kill -3 signal, I saw a Sandesha2 process witch run))
My client option is configured like this :
        options.setProperty(Constants.Configuration.ENABLE_MTOM,
Constants.VALUE_TRUE);

options.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);

options.setProperty(
AddressingConstants.ADD_MUST_UNDERSTAND_TO_ADDRESSING_HEADERS,
Constants.VALUE_TRUE);
        options.setProperty(Constants.ATTR_ROLE,
org.apache.axis2.namespace.Constants.URI_SOAP12_NEXT_ROLE);
        rmListener = new SandeshaListenerImpl();
        options.setProperty(SandeshaClientConstants.OFFERED_SEQUENCE_ID,
"uid"+System.currentTimeMillis());
        options.setProperty(SandeshaClientConstants.SANDESHA_LISTENER,
rmListener);
        options.setProperty(SandeshaClientConstants.RM_SPEC_VERSION,
Sandesha2Constants.SPEC_VERSIONS.v1_0);

At the end of my client I have this current code :(is it correct ?)
   SandeshaClient.waitUntilSequenceCompleted(stub._getServiceClient(),
10000);
   Thread.sleep(waitUntilSequenceReallyCompleted);
   configurationContext.getListenerManager().stop();


If I change the call to asynchronous mode I don't have this problem...

I execute my client in DEBUG mode (for
org.apache.sandesha2.workers.SandeshaThread)
The  SandeshaThread::stopThreadForSequence is call for eatch sequence
create but I don't find the SandeshaThread::stopRunning trace
corresponding to the stopRunning() method calling ... ??

Someone have an idea about this ?

Regards

Jérôme

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Chamikara Jayalath
WSO2 Inc.
http://wso2.com/
http://wso2.org/ - For your Oxygen needs

Reply via email to