You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sathwik <ba...@intalio.com> on 2011/09/13 12:47:03 UTC

Fwd: [Axis2] EchoNonBlockingDualClient sample does not close when ConfigurationContext is created problematically

Hi,

The requirement is to create the ConfigurationContext problematically
and use it in the creation of ServiceClient.

String CLIENT_REPO_PATH =
"/home/xxx/axis2-1.6.0/axis2-1.6.0/samples/userguide/repository";
String CLIENT_AXIS_CONFIG_PATH =
"/home/xxx/axis2-1.6.0/axis2-1.6.0/samples/userguide/conf/axis2.xml";

ConfigurationContext configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(CLIENT_REPO_PATH,CLIENT_AXIS_CONFIG_PATH);
ServiceClient sender = new ServiceClient (configContext,null);

When I run this EchoNonBlockingDualClient.java sample with this code the
client side VM does not close. Can you please let me know what is wrong
in the above code.

It is strange that the program ends successfully only when the system
property is provided.
-Daxis2.repo=/home/xxx/axis2-1.6.0/axis2-1.6.0/samples/userguide/repository
-Daxis2.xml=/home/xxx/axis2-1.6.0/axis2-1.6.0/samples/userguide/conf/axis2.xml

I am running axis2-1.6.0 on Ubuntu 11.04, jdk 1.6.0_22

regards,
sathwik


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org