InOut Pattern: How to retriver an exception to the Consumer

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

InOut Pattern: How to retriver an exception to the Consumer

cdeneux-4
Hi!
When an exception is caught into the Provider side during an InOut exchange...you can't retrieve the message exchange under JBI error status, because the JBI specification doesn't allow to use the Status (DONE or ERROR) to communicate.
So we've got only one solution :convert the exception to a JBI Fault, and retrieve a JBI Fault embedding the original exception. Now, how to implements this correction?
Sol1-Each component MUST convert internally all its exceptions to a Fault when it's under the Provider role with an InOut Pattern
Sol2-The MessageExchangeProcessor (into the kernel) transforms all the Exchange on ERROR status to ACTIVE status with a JBI Fault when the Pattern is InOut. So, the comportment is general to all the exchanges.
Sol3-Another actor transforms the Exchange (who?)

Today, I want to implement the sol2...but what do you think about?




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=532#532

-------------------- m2f --------------------

_______________________________________________
General mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/general
Reply | Threaded
Open this post in threaded view
|

Re: InOut Pattern: How to retriver an exception to the Consumer

cdeneux-4
So the MessageExchangeProcessor have to correctly relay an Exchange under error status at any time?
Humm...a clear discussion is needed at this point it seems Confused




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=535#535

-------------------- m2f --------------------

_______________________________________________
General mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/general
Reply | Threaded
Open this post in threaded view
|

Re: InOut Pattern: How to retriver an exception to the Consumer

cdeneux-4
In reply to this post by cdeneux-4
already discussed at http://petals.ebmwebsourcing.com/forum/post308.html?highlight=#308.
Still not agree with adrien Confused
The feature that you discuss about is already implemented in the CDK, in the MessageExchangeProcessor, at processInOutAsProvider method.




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=538#538

-------------------- m2f --------------------

_______________________________________________
General mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/general
Reply | Threaded
Open this post in threaded view
|

Re: InOut Pattern: How to retriver an exception to the Consumer

cdeneux-4
In reply to this post by cdeneux-4
Hum...
maybe a low level problem could be a PEtALSException (throwable at any step on a sequence, on any JBI MEP), and an external exception or a pure component exception could be a standardyze JBIException...throwable only when the MEP allows it at the current state...




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=571#571

-------------------- m2f --------------------

_______________________________________________
General mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/general