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 <[email protected]> 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* > > *[email protected] <[email protected]>* > > -- Lakshman Udayakantha Software Engineer, WSO2 Mobile: *0711241005* *[email protected] <[email protected]>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
