Monday, 5 November 2007

ServiceMix: JBI Message Exchange Patterns

I am working with ServiceMix for some time now but it took a considerable amount of time to understand the JBI message exchange patterns (MEP) and to know what it means when coding Service Units to be deployed on ServiceMix. The first problem is that most of the examples or test cases in ServiceMix are working with synchronous calls only which makes it quite easy to work with but in most cases is not a good choice for a real world project. Then the JBI specification is not very good (as discussed earlier) and so the the allowed interactions in a MEP is not quite clear. Finally some of the MEPs don't make much sense at the first glance. For example the In-Option-Out MEP give the consumer (the one from which the MEP originates) the ability to send a Fault back to the provider (the one that provides the response) if there is something wrong with the response. Even though that sounds good there is not much that the provider could do because he can only set the message exchange (ME) to either DONE or ERROR. But then I realized that he could initiate corrective actions like compensatory transactions.

  keep on reading here

Posted by schaefera at 5:04 PM in Java

 

[Trackback URL for this entry]

Your comment:

(not displayed)
 

SCode: (*) Generate another code
SCode

Please enter the code as seen in the image above to post your comment.

 
 

Live Comment Preview: