While loop doesnot exit while running echo non blocking client
---------------------------------------------------------------
Key: AXIS2-4085
URL: https://issues.apache.org/jira/browse/AXIS2-4085
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: samples
Affects Versions: 1.4.1
Environment: Windows XP Professional Vesion 2002 SP-2 , NetBeans 6.1
Reporter: Akhila
Priority: Critical
public class EchoNonBlockingClient {
private static EndpointReference targetEPR = new
EndpointReference("http://localhost:8080/axis2/services/MyService");
public static void main(String[] args) {
ServiceClient sender = null;
try {
OMElement payload = ClientUtil.getEchoOMElement();
Options options = new Options();
options.setTo(targetEPR);
options.setAction("urn:echo");
TestCallback axisCallback = new TestCallback( " Call Back 1 " ) ;
sender = new ServiceClient();
sender.setOptions(options);
sender.sendReceiveNonBlocking( payload, axisCallback );
//Wait till the callback receives the response.
while ( ! axisCallback.isComplete( ) ) {
Thread.sleep(1000);
}
While running this program ( echo-nonblocking client ( using axisCallback
interface instead of Callback ) ) , it goes to infinite loop in while ( !
axisCallback.isComplete( ) ) {
Thread.sleep(1000);
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]