axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-4085) While loop doesnot exit while running echo non blocking client
Date Tue, 04 Nov 2008 23:50:44 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-4085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645112#action_12645112
] 

Deepal Jayasinghe commented on AXIS2-4085:
------------------------------------------

I think you have to implement the setComplete method 
Deepal

> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message