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 sleep time.
please correct me if I am wrong? On Sat, Sep 27, 2014 at 1:05 PM, Lakshman Udayakantha <lakshm...@wso2.com> wrote: > 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 <lakshm...@wso2.com> > wrote: > >> 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(); >> >> adminserviceprocessRequest.setUrl(tenantDeleteConfig >> .getAdminServiceEndpointsArray()); >> >> adminserviceprocessRequest.setInput(tenantdomain); >> >> stub.startprocess(adminserviceprocessRequest, new >> TenantDeletionProcessCustomCallbackHandler()); >> >> Thread.sleep(1000); >> >> the problem is why we need a sleep time after calling the async method in >> generated service stub. As I saw, without that sleep time callback handler >> will not call. can some one shed light on this? >> >> -- >> Lakshman Udayakantha >> Software Engineer, WSO2 >> Mobile: *0711241005* >> >> *lakshm...@wso2.com <lakshm...@wso2.com>* >> >> > > > -- > Lakshman Udayakantha > Software Engineer, WSO2 > Mobile: *0711241005* > > *lakshm...@wso2.com <lakshm...@wso2.com>* > > -- Lakshman Udayakantha Software Engineer, WSO2 Mobile: *0711241005* *lakshm...@wso2.com <lakshm...@wso2.com>*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev