RMG,
Thanks for your response.
I am not sure, whether MQ Listener has any setting like ‘persist’. I couldnt find it. If you can guide me in this regards, i will set that to true.
The example which you gave, it is really explanatory in it. But i tried the same implementing and even after that i kept losing my message.
I dont know what is the exact criteria while rolling back the MQ message.
What I believe is When there is any MQ Exception, then only it will get rolled back by MQ Adapter. Im My case, whenever any other exception like flow exception or service exception, i want to roll back.
i tried using non-transactional connection, too.
The following paragraph from MQ series adapter user guide is little confusing :
Behavior of Listeners :
Listeners exhibit different behaviors when they are associated with either a transactional connection or a non-transactional connection.
Listeners and Transactional Connections.
A listener that is associated with a transactional connection exhibits the following behavior:
The Listener monitors the queue.
The Listener receives a message. (The WebSphere MQ Adapter removes this message
from the queue.)
If the message matches all of the selection criteria for any notification, then the notification processes the message. However, if the message does not match the selection criteria for the notification, then the notification discards the message.
------------ AND -----------
Listeners and Non-Transactional Connections :
A listener that is associated with a non-transactional connection exhibits the following behavior:
The Listener monitors the queue.
The Listener receives a message. (The WebSphere MQ Adapter tags this message as unavailable, but the adapter does not remove the message from the queue.)
If the message matches all of the selection criteria for any notification, then the notification processes the message.
If the notification processes the message, then the Listener commits the message. (The WebSphere MQ Adapter removes the message from the queue.) If no notification does not process the message, then the Listener rolls back the message. (The WebSphere MQ Adapter tags this message as available.)
What would you say , the write up is ok or it should be reverse for in case of transactional & non-transactional connections.
Regards,
Nilesh
#Adapters-and-E-Standards#Integration-Server-and-ESB#webMethods