Re: [Dev] why axis2 async client needs a sleep time?

2014-09-27 Thread Lakshman Udayakantha
Thanks for the feedback Firzhan. On Sat, Sep 27, 2014 at 6:38 PM, Firzhan Naqash wrote: > HI Lakshman, > > They have added sleep method to allow the WebServiceCientCallBackHandler > to have some time to obtain the response back from the service. > > If they haven't mentioned the sleep method, af

Re: [Dev] why axis2 async client needs a sleep time?

2014-09-27 Thread Firzhan Naqash
HI Lakshman, They have added sleep method to allow the WebServiceCientCallBackHandler to have some time to obtain the response back from the service. If they haven't mentioned the sleep method, after immediately invoking the service, main method will exit, thus killing all the other services. Thi

Re: [Dev] why axis2 async client needs a sleep time?

2014-09-27 Thread Lakshman Udayakantha
Hi All, Asynchronous call can get some time to return the response from service to the client. Until the response return, client thread should not be finished because otherwise client will not be able to do other works that is depend on the response. That may be the reason behind putting that slee

Re: [Dev] why axis2 async client needs a sleep time?

2014-09-27 Thread Lakshman Udayakantha
I forgot to mention that I referred [1] to develop async client. [1] http://briansjavablog.blogspot.com/2013/01/axis2-web-service-client-tutorial.html On Tue, Sep 23, 2014 at 5:55 PM, Lakshman Udayakantha wrote: > Hi all, > > I am trying to create a axis2 client to execute a bpel service. I use

[Dev] why axis2 async client needs a sleep time?

2014-09-23 Thread Lakshman Udayakantha
Hi all, I am trying to create a axis2 client to execute a bpel service. I used below code for that TenantDeletionProcessStub stub = getAdminserviceprocessStub( tenantDeleteConfig.getBpelEndpoint()); TenantDeletionProcessRequest adminserviceprocessRequest = new TenantDeletionProcessRequest();