Hi,
We changed from our IBM datapower implementations to a Mulesoft API management platform. Both platforms are JM/JEE based.
On IBM Datapower JMS is implemented by IBM and we need only configure some params like for example whether to use transactional jobs or not. We have done this for a couple years and runs like a charm.
When we have to configure transactional processes in Mulesoft we have to configure also "things". This question is not about Mulesoft but about JMS implementations on JEE based apps in general.
The above information is just a side note.
Say we have this implementation in Java:
We get a message from a queue ( TEST1.DAT) via a listener program or a simple get from a queue and in the same process we do a http POST and after the post comes back with a http 200 or 201 then the MQ commit must be done. Off course we can do this in the code but we don't want this it must be happening via transactional. To make it a little bit more complicated we want to use a backout queue (TEST1.ERR) and after 3 attempts to reach the http POST end address the message must be put on the backout queue.
The queues are created on the queuemanager and the TEST1.DAT queue has configured the TEST1.ERR as backout queue and also the number of backout attempts is configured on the queuemanager.
Question 1:
What is the best practice to solve this in Java JMS, maybe anybody has an example how to do this ?
Maybe this is done by a configuration on the queue manager, and not in the application ? Or maybe we do have to make a choice whether or not solve this on the queuemanager or in the application ?
Question 2:
When this process runs we should like to see in debugging modus what is happening on the queue manager and with the message itself.
Is it possible to debug this anyway, for example how does the queue manger knows how many times the message is redirected to the backout queue ? Is this done for example with MQ message properties ?
Hope to get some answers
Thanks
------------------------------
Bernard Pittens
Integration Engeneer
Sligro Foodgroup B.V.
Veghel
------------------------------