You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Jean-Claude Moissinac <mo...@enst.fr> on 2008/10/01 15:47:40 UTC
Asynchronous
Hello
We need some advise about time consuming services
My simplified scenario is:
a BPEL calls a service which is time consuming
first case: this call is synchronous and I get a timeout on the
request from the BPEL to the external service
second case: this case is asynchronous, the time consuming service
returns immediately after the begining of the process it is in charge
then if the BPEL is waiting for the end that process, it is the
request to the BPEL itself which fire a timeout, because the BPEL
seems to be nor responding
So, it is not the BPEL which must wait for the external process called
by the BPEL, but the caller of the BPEL
But, how the caller of the BPEL will know how many external services
are called by the BPEL?
Are there good practices or support about such scenario?
--
--
Jean-Claude Moissinac
Signal and Image processing - Multimedia Group
TELECOM ParisTech
FRANCE
E-mail: moissinac@enst.fr
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://videotoile.blogspot.com
http://svgmpeg4.blogspot.com/
Re: Asynchronous
Posted by Alex Boisvert <bo...@intalio.com>.
My own rule is if there's a chance the operation may take more than 60
seconds, then make it an asynchronous.
This implies there's a breaking point where you can't add anymore processing
inside a synchronous operation -- for transport reasons but also for other
reasons (reliability, scalability, concurrency, transactions, ...).
alex
On Wed, Oct 1, 2008 at 6:47 AM, Jean-Claude Moissinac <mo...@enst.fr>wrote:
> Hello
>
> We need some advise about time consuming services
>
> My simplified scenario is:
> a BPEL calls a service which is time consuming
>
> first case: this call is synchronous and I get a timeout on the
> request from the BPEL to the external service
> second case: this case is asynchronous, the time consuming service
> returns immediately after the begining of the process it is in charge
> then if the BPEL is waiting for the end that process, it is the
> request to the BPEL itself which fire a timeout, because the BPEL
> seems to be nor responding
>
> So, it is not the BPEL which must wait for the external process called
> by the BPEL, but the caller of the BPEL
> But, how the caller of the BPEL will know how many external services
> are called by the BPEL?
>
> Are there good practices or support about such scenario?
>
> --
> --
> Jean-Claude Moissinac
> Signal and Image processing - Multimedia Group
> TELECOM ParisTech
> FRANCE
>
> E-mail: moissinac@enst.fr
> Tel: (+33) 1.45.81.80.88
> Fax: (+33) 1.45.81.71.58
>
> http://videotoile.blogspot.com
> http://svgmpeg4.blogspot.com/
>
Re: Asynchronous
Posted by NGUYEN Cong Kinh <ng...@telecom-paristech.fr>.
Hi,
In fact, we can not create "myRole" and "partnerRole" for asynchronous web
service, because this is distance service. For apache-ode, to declare
"myRole", address location of message SOAP must be the type
"http://localhost:8080/ode/processes/...". In my case, the service is
"http://vesta.enst.fr:8080/...".
Thanks for your advices.
> Hi everybody,
>
> I still have a question concerning Asynchronous. In my case, I have an
> asynchronous web service in JAVA. I want to invoke this service in BPEL.
> While using the activity "invoke", I get a TimeOut on this activity.
>
> Could you tell me how to solve this problem?
>
>> On Wed, Oct 1, 2008 at 6:47 AM, Jean-Claude Moissinac
>> <mo...@enst.fr>wrote:
>>
>>> Hello
>>>
>>> We need some advise about time consuming services
>>>
>>> My simplified scenario is:
>>> a BPEL calls a service which is time consuming
>>>
>>> first case: this call is synchronous and I get a timeout on the
>>> request from the BPEL to the external service
>>> second case: this case is asynchronous, the time consuming service
>>> returns immediately after the begining of the process it is in charge
>>> then if the BPEL is waiting for the end that process, it is the
>>> request to the BPEL itself which fire a timeout, because the BPEL
>>> seems to be nor responding
>>>
>>> So, it is not the BPEL which must wait for the external process called
>>> by the BPEL, but the caller of the BPEL
>>> But, how the caller of the BPEL will know how many external services
>>> are called by the BPEL?
>>>
>>
>> The caller of the process doesn't know but the process does (or more
>> accurately the process designer). Knowing that you're invoking
>> long-lasting
>> operations, you should model your process to only accept an asynchronous
>> invocation and then call back the client later on when the processing is
>> finished.
>>
>> Matthieu
>>
>>
>>>
>>> Are there good practices or support about such scenario?
>>>
>>> --
>>> --
>>> Jean-Claude Moissinac
>>> Signal and Image processing - Multimedia Group
>>> TELECOM ParisTech
>>> FRANCE
>>>
>>> E-mail: moissinac@enst.fr
>>> Tel: (+33) 1.45.81.80.88
>>> Fax: (+33) 1.45.81.71.58
>>>
>>> http://videotoile.blogspot.com
>>> http://svgmpeg4.blogspot.com/
>>>
>>
>
>
> --
> NGUYEN Cong Kinh
>
>
--
NGUYEN Cong Kinh
Re: Asynchronous
Posted by NGUYEN Cong Kinh <ng...@telecom-paristech.fr>.
Hi everybody,
I still have a question concerning Asynchronous. In my case, I have an
asynchronous web service in JAVA. I want to invoke this service in BPEL.
While using the activity "invoke", I get a TimeOut on this activity.
Could you tell me how to solve this problem?
> On Wed, Oct 1, 2008 at 6:47 AM, Jean-Claude Moissinac
> <mo...@enst.fr>wrote:
>
>> Hello
>>
>> We need some advise about time consuming services
>>
>> My simplified scenario is:
>> a BPEL calls a service which is time consuming
>>
>> first case: this call is synchronous and I get a timeout on the
>> request from the BPEL to the external service
>> second case: this case is asynchronous, the time consuming service
>> returns immediately after the begining of the process it is in charge
>> then if the BPEL is waiting for the end that process, it is the
>> request to the BPEL itself which fire a timeout, because the BPEL
>> seems to be nor responding
>>
>> So, it is not the BPEL which must wait for the external process called
>> by the BPEL, but the caller of the BPEL
>> But, how the caller of the BPEL will know how many external services
>> are called by the BPEL?
>>
>
> The caller of the process doesn't know but the process does (or more
> accurately the process designer). Knowing that you're invoking
> long-lasting
> operations, you should model your process to only accept an asynchronous
> invocation and then call back the client later on when the processing is
> finished.
>
> Matthieu
>
>
>>
>> Are there good practices or support about such scenario?
>>
>> --
>> --
>> Jean-Claude Moissinac
>> Signal and Image processing - Multimedia Group
>> TELECOM ParisTech
>> FRANCE
>>
>> E-mail: moissinac@enst.fr
>> Tel: (+33) 1.45.81.80.88
>> Fax: (+33) 1.45.81.71.58
>>
>> http://videotoile.blogspot.com
>> http://svgmpeg4.blogspot.com/
>>
>
--
NGUYEN Cong Kinh
Re: Asynchronous
Posted by Tammo van Lessen <tv...@gmail.com>.
Hi,
Matthieu Riou wrote:
> On Wed, Oct 1, 2008 at 6:47 AM, Jean-Claude Moissinac <mo...@enst.fr>wrote:
>> So, it is not the BPEL which must wait for the external process called
>> by the BPEL, but the caller of the BPEL
>> But, how the caller of the BPEL will know how many external services
>> are called by the BPEL?
>>
>
> The caller of the process doesn't know but the process does (or more
> accurately the process designer). Knowing that you're invoking long-lasting
> operations, you should model your process to only accept an asynchronous
> invocation and then call back the client later on when the processing is
> finished.
>From a pure web services point of view there is also the possibility to
use asynchronous bindings, e.g. the JMS binding. That way the process
modeler can consider other services as black boxes (with respect to
their response time). Then it depends on your modeling style. If there
is a need for a complex conversations between process and services, you
should use invoke/receive pairs (i.e. use the . If its a logical atomic
invocation, you can fairly use two-way invokes with asynchronous
transports. Depends on your taste (i.e. how high/low level your process
model should be, business people don't care about time outs, developers
do) and whether async transports can be used in your setting.
Tammo
Re: Asynchronous
Posted by Matthieu Riou <ma...@offthelip.org>.
On Wed, Oct 1, 2008 at 6:47 AM, Jean-Claude Moissinac <mo...@enst.fr>wrote:
> Hello
>
> We need some advise about time consuming services
>
> My simplified scenario is:
> a BPEL calls a service which is time consuming
>
> first case: this call is synchronous and I get a timeout on the
> request from the BPEL to the external service
> second case: this case is asynchronous, the time consuming service
> returns immediately after the begining of the process it is in charge
> then if the BPEL is waiting for the end that process, it is the
> request to the BPEL itself which fire a timeout, because the BPEL
> seems to be nor responding
>
> So, it is not the BPEL which must wait for the external process called
> by the BPEL, but the caller of the BPEL
> But, how the caller of the BPEL will know how many external services
> are called by the BPEL?
>
The caller of the process doesn't know but the process does (or more
accurately the process designer). Knowing that you're invoking long-lasting
operations, you should model your process to only accept an asynchronous
invocation and then call back the client later on when the processing is
finished.
Matthieu
>
> Are there good practices or support about such scenario?
>
> --
> --
> Jean-Claude Moissinac
> Signal and Image processing - Multimedia Group
> TELECOM ParisTech
> FRANCE
>
> E-mail: moissinac@enst.fr
> Tel: (+33) 1.45.81.80.88
> Fax: (+33) 1.45.81.71.58
>
> http://videotoile.blogspot.com
> http://svgmpeg4.blogspot.com/
>