List Info

Thread: Error vs. Fault




Error vs. Fault
user name
2007-10-24 14:04:01
-----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+bAiXNAHyGUvDoEy8pJtTFqgCd
Frfy
y4/q2NMBpBsn3jhXH5VOhXY=
=4EH0
-----END PGP SIGNATURE-----

Re: Error vs. Fault
user name
2007-10-24 14:30:18
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 <andreas.schaefermadplanet.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+bAiXNAHyGUvDoEy8pJtTFqgCd
Frfy
> y4/q2NMBpBsn3jhXH5VOhXY=
> =4EH0
> -----END PGP SIGNATURE-----
>


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

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )