[MOBY-dev] Calling moby-async category services

Sylvie Huchet sylvie.huchet at enst-bretagne.fr
Thu Jan 24 08:51:08 UTC 2008


Bonjour Paul,

Thanks for the update, but this is not enough.
If the handler has to be null, the code of performAsyncSOAPRequest must be
modified to get the data : The data is got back only if the following test :
"if(newDataAvailable.size() > 0 && handler != null)" is true, which is never the
case.

Regards,
Sylvie.

Paul Gordon a écrit :
> Bonjour Sylvie,
> 
> Thanks for pointing this out.  The handler is null as it's supposed to
> be, but the lack of a StringBuffer was indeed the culprit.  This has
> been fixed, and I'm adding a unit test for this (I'd always called
> asynchronous services asynchronously( or sync ones either syncly or
> asyncly), and so didn't catch this before)..
> 
> 
> 
> Paul
> 
> Sylvie Huchet wrote:
> 
>> Hi Paul,
>>
>> It seems that MobyRequest does not handle both synchronous and
>> asynchronous
>> calls tranparently...
>>
>> The invokeService() method that can be called for asynchronous calls
>> does not
>> defines any handler to manage asynchronous calls. And thus the
>> performAsyncSOAPRequest method does not return any result.
>> In addition, the asynchronous part of the invokeService does not
>> initialize the
>> contentsXML which leads to a NullPointerException.
>>
>> Regards,
>> Sylvie.
>>
>>
>> Paul Gordon a écrit :
>>  
>>
>>> Hi Sylvie,
>>>
>>> The current class that implements asynchronous service calls is
>>> MobyRequest (via AsyncClient).  You can find both synchronous and
>>> asynchronous services by setting the Service category to the empty
>>> string ("") before calling CentralImpl.  As Martin mentions below, the
>>> mechanism currently used to run asynchronous services will change next
>>> year (so there will probably be other ways to call async services
>>> introduced), but the MobyRequest API will not need to change.
>>> MobyRequest handles both synchronous and asynchronous calls
>>> transparently.
>>>
>>> Regards,
>>>
>>> Paul
>>>
>>> Martin Senger wrote:
>>>
>>>    
>>>
>>>>> I'd like to know how asynchronous services (category moby-async)
>>>>> can be
>>>>> called
>>>>> using the java API
>>>>>             
>>>>
>>>>
>>>> It is on the to-do list. A good opportunity to implement it will be the
>>>> second week of February where several BioMoby developers meet at the
>>>> Biohackaton in Japan. I hope to use this event to remove most of the
>>>> items
>>>> from my long-standing moby-to-do list. I am sorry for the delay.
>>>>
>>>> Martin
>>>>
>>>>         
>>>
>>> _______________________________________________
>>> MOBY-dev mailing list
>>> MOBY-dev at lists.open-bio.org
>>> http://lists.open-bio.org/mailman/listinfo/moby-dev
>>>
>>>
>>>     
>>
>>
>>
>> !DSPAM:60005,47977310109501808032233!
>>  
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> MOBY-dev mailing list
>> MOBY-dev at lists.open-bio.org
>> http://lists.open-bio.org/mailman/listinfo/moby-dev
>>
>>
>> !DSPAM:60005,47977310109501808032233!
>>   
> 
> _______________________________________________
> MOBY-dev mailing list
> MOBY-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/moby-dev
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sylvie.huchet.vcf
Type: text/x-vcard
Size: 215 bytes
Desc: not available
URL: <http://lists.open-bio.org/pipermail/moby-dev/attachments/20080124/4109c349/attachment-0002.vcf>


More information about the MOBY-dev mailing list