Thanks for the feedback Firzhan.

On Sat, Sep 27, 2014 at 6:38 PM, Firzhan Naqash <firz...@wso2.com> 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, after immediately invoking the
> service, main method will exit, thus killing all the other services. This
> won't allow the WebServiceCientCallBackHandler to process the request.
>
> Regards,
> Firzhan
>
> On Sat, Sep 27, 2014 at 1:22 PM, Lakshman Udayakantha <lakshm...@wso2.com>
> wrote:
>
>> 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
>>
>>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to