Hi all,
Just wondering what recommendations anyone has regarding the use of the MQ Adapter when getting messages?
We have a need to get messages off a queue and then process them. Each queue will need to run a specific flow service to process the data and there is only ever one type of data on each queue. So a simple if it’s on this queue, run this service, is all we need.
There seems to be various options, the main ones I can see are:
- Publish and Subscribe, using a trigger etc. or
- A Get Adapter Service.
Option 1 has the advantage that it triggers automatically, so no scheduling. But it seems to be quite convoluted having to set up listeners, publish documents, triggers and so on, when it’s just a one-to-one relationship.
Option 2 seems to be simpler, just get a message and do something with it. But would presumably need adding to a schedule in order to run the process.
I’m leaning towards option 2 as it seems simpler to set up and manage, but I would liked to have been able to automatically trigger the service rather than have to create a schedule.
Am I heading in the right direction, or have I missed the boat completely and should be doing it some other way?
It’s a shame there isn’t an option to just add a flow service directly on the connection screen, in the same way as you do with file polling, just add a polling time and off you go. Seems like such an obvious thing to do to me! (and from my experience exactly how other gateway products interface with MQ, just tell it which queue to get from and what service you want to run against the messages)
Thanks in advance,
Mark