You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Andreas Schaefer <an...@madplanet.com> on 2007/10/24 21:04:01 UTC

Error vs. Fault

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Geeks

The JBI specification Message Exchange Patterns part only talks about  
Faults but does not mention the Error Status. Later in the spec. it  
says that the Status ERROR is for abnormal termination of a exchange  
within the JBI environment.

I assume that when an Exchange has a status ERROR that the ME is  
handled like status DONE status but can be set anywhere during the ME  
except when it is already in status DONE. The ME with the status  
ERROR is now sent to the other party which can handle it as a  
notification but ME is then aborted. In addition a DONE ME cannot be  
set to an ERROR state and sent back.

On the other hand a fault is just another type of response, I guess,  
and it the status must not have to be set to ERROR otherwise the ME  
is aborted. The handling of a Fault can result in an ERROR which is  
then sent back to the other party.

Most notable in that scenario is the IN_OUT exchange which does not  
allow the Provider to sent back a DONE message (must be a response or  
fault) but one can sent back an ERROR, right?

Thanks - Andy

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHH5chs4gPTNnP0gkRAsRmAJ9G1G+bAiXNAHyGUvDoEy8pJtTFqgCdFrfy
y4/q2NMBpBsn3jhXH5VOhXY=
=4EH0
-----END PGP SIGNATURE-----

Re: Error vs. Fault

Posted by Daryl Richter <ng...@comcast.net>.
On Oct 25, 2007, at 1:30 PM, Andreas Schaefer wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> No, when you sent a Fault the status remains ACTIVE because a Fault  
> has to be acknowledged by a status (ERROR / DONE) afterwards. When  
> the fault is handled the status normally goes to DONE and the  
> exchange is sent back to the party that issued the fault.

Ah, now I get it...  Thanks!


>
> - -Andy
>
> On Oct 25, 2007, at 4:34 AM, Daryl Richter wrote:
>
>> On Oct 24, 2007, at 3:30 PM, Guillaume Nodet wrote:
>>
>>> Your right on all points :-)
>>>
>>> If you want the provider to be able to send a DONE in a request /
>>> response interaction, you could use the InOptionalOut MEP, which  
>>> does
>>> exactly that.
>>
>> Ah, Interesting.
>>
>> So are you saying that if I want to send back a fault as part of a  
>> Robust-In-Only ME, I attach the Fault but then I do *not* set the  
>> status to ERROR, but rather set it to DONE?
>>
>>
>>>
>>> On 10/24/07, Andreas Schaefer <an...@madplanet.com>  
>>> wrote:
>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>>
>>>> Hi Geeks
>>>>
>>>> The JBI specification Message Exchange Patterns part only talks  
>>>> about
>>>> Faults but does not mention the Error Status. Later in the spec. it
>>>> says that the Status ERROR is for abnormal termination of a  
>>>> exchange
>>>> within the JBI environment.
>>>>
>>>> I assume that when an Exchange has a status ERROR that the ME is
>>>> handled like status DONE status but can be set anywhere during  
>>>> the ME
>>>> except when it is already in status DONE. The ME with the status
>>>> ERROR is now sent to the other party which can handle it as a
>>>> notification but ME is then aborted. In addition a DONE ME  
>>>> cannot be
>>>> set to an ERROR state and sent back.
>>>>
>>>> On the other hand a fault is just another type of response, I  
>>>> guess,
>>>> and it the status must not have to be set to ERROR otherwise the ME
>>>> is aborted. The handling of a Fault can result in an ERROR which is
>>>> then sent back to the other party.
>>>>
>>>> Most notable in that scenario is the IN_OUT exchange which does not
>>>> allow the Provider to sent back a DONE message (must be a  
>>>> response or
>>>> fault) but one can sent back an ERROR, right?
>>>>
>>>> Thanks - Andy
>>>>
>>>> -----BEGIN PGP SIGNATURE-----
>>>> Version: GnuPG v1.4.7 (Darwin)
>>>>
>>>> iD8DBQFHH5chs4gPTNnP0gkRAsRmAJ9G1G+bAiXNAHyGUvDoEy8pJtTFqgCdFrfy
>>>> y4/q2NMBpBsn3jhXH5VOhXY=
>>>> =4EH0
>>>> -----END PGP SIGNATURE-----
>>>>
>>>
>>>
>>> -- 
>>> Cheers,
>>> Guillaume Nodet
>>> ------------------------
>>> Blog: http://gnodet.blogspot.com/
>>
>> -- 
>> Daryl
>> http://itsallsemantics.com
>>
>> "Hell, there are no rules here-- we're trying to accomplish  
>> something."
>>     -- Thomas A. Edison
>>
>>
>>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (Darwin)
>
> iD8DBQFHINKos4gPTNnP0gkRAop1AJ9wnBEoUD/Y4DLm30D0g4j+gNUUngCeKPl1
> RCxZAuD5r3F01RntdYyM8H4=
> =kJyK
> -----END PGP SIGNATURE-----

--
Daryl
http://itsallsemantics.com



Re: Error vs. Fault

Posted by Andreas Schaefer <an...@madplanet.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

No, when you sent a Fault the status remains ACTIVE because a Fault  
has to be acknowledged by a status (ERROR / DONE) afterwards. When  
the fault is handled the status normally goes to DONE and the  
exchange is sent back to the party that issued the fault.

- -Andy

On Oct 25, 2007, at 4:34 AM, Daryl Richter wrote:

> On Oct 24, 2007, at 3:30 PM, Guillaume Nodet wrote:
>
>> Your right on all points :-)
>>
>> If you want the provider to be able to send a DONE in a request /
>> response interaction, you could use the InOptionalOut MEP, which does
>> exactly that.
>
> Ah, Interesting.
>
> So are you saying that if I want to send back a fault as part of a  
> Robust-In-Only ME, I attach the Fault but then I do *not* set the  
> status to ERROR, but rather set it to DONE?
>
>
>>
>> On 10/24/07, Andreas Schaefer <an...@madplanet.com> wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Hi Geeks
>>>
>>> The JBI specification Message Exchange Patterns part only talks  
>>> about
>>> Faults but does not mention the Error Status. Later in the spec. it
>>> says that the Status ERROR is for abnormal termination of a exchange
>>> within the JBI environment.
>>>
>>> I assume that when an Exchange has a status ERROR that the ME is
>>> handled like status DONE status but can be set anywhere during  
>>> the ME
>>> except when it is already in status DONE. The ME with the status
>>> ERROR is now sent to the other party which can handle it as a
>>> notification but ME is then aborted. In addition a DONE ME cannot be
>>> set to an ERROR state and sent back.
>>>
>>> On the other hand a fault is just another type of response, I guess,
>>> and it the status must not have to be set to ERROR otherwise the ME
>>> is aborted. The handling of a Fault can result in an ERROR which is
>>> then sent back to the other party.
>>>
>>> Most notable in that scenario is the IN_OUT exchange which does not
>>> allow the Provider to sent back a DONE message (must be a  
>>> response or
>>> fault) but one can sent back an ERROR, right?
>>>
>>> Thanks - Andy
>>>
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1.4.7 (Darwin)
>>>
>>> iD8DBQFHH5chs4gPTNnP0gkRAsRmAJ9G1G+bAiXNAHyGUvDoEy8pJtTFqgCdFrfy
>>> y4/q2NMBpBsn3jhXH5VOhXY=
>>> =4EH0
>>> -----END PGP SIGNATURE-----
>>>
>>
>>
>> -- 
>> Cheers,
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>
> -- 
> Daryl
> http://itsallsemantics.com
>
> "Hell, there are no rules here-- we're trying to accomplish  
> something."
>     -- Thomas A. Edison
>
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHINKos4gPTNnP0gkRAop1AJ9wnBEoUD/Y4DLm30D0g4j+gNUUngCeKPl1
RCxZAuD5r3F01RntdYyM8H4=
=kJyK
-----END PGP SIGNATURE-----

Re: Error vs. Fault

Posted by Daryl Richter <ng...@comcast.net>.
On Oct 24, 2007, at 3:30 PM, Guillaume Nodet wrote:

> Your right on all points :-)
>
> If you want the provider to be able to send a DONE in a request /
> response interaction, you could use the InOptionalOut MEP, which does
> exactly that.

Ah, Interesting.

So are you saying that if I want to send back a fault as part of a  
Robust-In-Only ME, I attach the Fault but then I do *not* set the  
status to ERROR, but rather set it to DONE?


>
> On 10/24/07, Andreas Schaefer <an...@madplanet.com> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi Geeks
>>
>> The JBI specification Message Exchange Patterns part only talks about
>> Faults but does not mention the Error Status. Later in the spec. it
>> says that the Status ERROR is for abnormal termination of a exchange
>> within the JBI environment.
>>
>> I assume that when an Exchange has a status ERROR that the ME is
>> handled like status DONE status but can be set anywhere during the ME
>> except when it is already in status DONE. The ME with the status
>> ERROR is now sent to the other party which can handle it as a
>> notification but ME is then aborted. In addition a DONE ME cannot be
>> set to an ERROR state and sent back.
>>
>> On the other hand a fault is just another type of response, I guess,
>> and it the status must not have to be set to ERROR otherwise the ME
>> is aborted. The handling of a Fault can result in an ERROR which is
>> then sent back to the other party.
>>
>> Most notable in that scenario is the IN_OUT exchange which does not
>> allow the Provider to sent back a DONE message (must be a response or
>> fault) but one can sent back an ERROR, right?
>>
>> Thanks - Andy
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.7 (Darwin)
>>
>> iD8DBQFHH5chs4gPTNnP0gkRAsRmAJ9G1G+bAiXNAHyGUvDoEy8pJtTFqgCdFrfy
>> y4/q2NMBpBsn3jhXH5VOhXY=
>> =4EH0
>> -----END PGP SIGNATURE-----
>>
>
>
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/

-- 
Daryl
http://itsallsemantics.com

"Hell, there are no rules here-- we're trying to accomplish something."
     -- Thomas A. Edison




Re: Error vs. Fault

Posted by Guillaume Nodet <gn...@gmail.com>.
Your right on all points :-)

If you want the provider to be able to send a DONE in a request /
response interaction, you could use the InOptionalOut MEP, which does
exactly that.

On 10/24/07, Andreas Schaefer <an...@madplanet.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Geeks
>
> The JBI specification Message Exchange Patterns part only talks about
> Faults but does not mention the Error Status. Later in the spec. it
> says that the Status ERROR is for abnormal termination of a exchange
> within the JBI environment.
>
> I assume that when an Exchange has a status ERROR that the ME is
> handled like status DONE status but can be set anywhere during the ME
> except when it is already in status DONE. The ME with the status
> ERROR is now sent to the other party which can handle it as a
> notification but ME is then aborted. In addition a DONE ME cannot be
> set to an ERROR state and sent back.
>
> On the other hand a fault is just another type of response, I guess,
> and it the status must not have to be set to ERROR otherwise the ME
> is aborted. The handling of a Fault can result in an ERROR which is
> then sent back to the other party.
>
> Most notable in that scenario is the IN_OUT exchange which does not
> allow the Provider to sent back a DONE message (must be a response or
> fault) but one can sent back an ERROR, right?
>
> Thanks - Andy
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (Darwin)
>
> iD8DBQFHH5chs4gPTNnP0gkRAsRmAJ9G1G+bAiXNAHyGUvDoEy8pJtTFqgCdFrfy
> y4/q2NMBpBsn3jhXH5VOhXY=
> =4EH0
> -----END PGP SIGNATURE-----
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/