How to make our OSB communication reliable ?? else it leads to loss of message or duplicate message reaching at destination.
Basically, there are two aspects which help us in reliable communication with OSB
Basically, there are two aspects which help us in reliable communication with OSB
- XA DataSource for transaction
- QoS (Quality of Service)
Before have a deep dive into these, we understand about Global Transaction in general. In a single global transaction, any fault within the osb service or composite will result in a complete rollback of all transactions. But important is, only systems which are part of global transaction will be rolled back. and So called Global Transaction.
On the other hand, if it is not global transaction and fault occurs in specific part say RouteNode and handled, then only that local transaction in RouteNode will be rollback, not other invocation in message flow. So we should be in Global Transaction if we want to make reliable Communication.
XA is the transaction which can be shared with multiple resources as JMS, JCA, direct binding. Although using messaging queue is always reliable as we can enable persistence but it is more nice if we use it using xa data source which will create global transaction. XA will use two phase commit so all resource either do a commit or a rollback together.
Using QoS we can control message flow to destination if it is a global transaction. There are two concepts here
- exactly once: it is for reliability through message assurance, will deliver message only once if destination is the part of global transaction
- best effort: if destination is not the part of global transaction then message can be delivered more than once if OSB process is retried.
If the sending and receiving application can detect failure/duplicate messaging then reliable communication might not be necessary.
We will see on WSRM (Web Service Reliable Messaging) specification describes a protocol (WS) for Reliable Communication, in my next blog
We will see on WSRM (Web Service Reliable Messaging) specification describes a protocol (WS) for Reliable Communication, in my next blog
2 comments:
I started my own small business several years ago but it didn't go so well at the beginning. That was until I understood what I was missing - reliable communication. I discovered the services of Voip PBX Express and now I'm really happy with the progress I've accomplished.
Hi Ravi
Can we customize service account in own for different environments or can we read from xml file and put to service acount
Post a Comment