// clientOptions.setProperty(SandeshaClient.RM_SPEC_VERSION,Sandesha2Constants.SPEC_VERSIONS.v1_1); //uncomment this to send the messages according to the v1_1 spec.
// clientOptions.setProperty(AddressingConstants.WS_ADDRESSING_VERSION,AddressingConstants.Submission.WSA_NAMESPACE);
clientOptions.setProperty(SandeshaClientConstants.SANDESHA_LISTENER, new SandeshaListenerImpl ());
ServiceClient serviceClient = new ServiceClient (configContext,null);
serviceClient.engageModule(new QName ("sandesha2"));
clientOptions.setAction("urn:wsrm:Ping");
serviceClient.setOptions(clientOptions);
clientOptions.setProperty(SandeshaClientConstants.LAST_MESSAGE, "true");