1
votes

We use JmsTemplate to send PCF commands to an MQ Queue manager admin queue.

We need this in order to switch on a QUEUE DEPT triggering on a bunch of queues. This is because after firing up the QUEUE DEPT trigger MQ manager turns off the triggering on that queue.

I know that messaging processing should by its nature be an asynchronous thing. However in this particular case it would make sense to wait for a response back informing the caller of whether the trigger was switched back on or not.

By looking at the JmsTemplate API I could not spot anywhere something like this. Did I miss anything or it is not possible to achieve a functionality like the one described by javax.jms.QueueRequestor.request(Message message)?

1

1 Answers

1
votes

You are right, JmsTemplate does not offer such feature. You can look at SPR-332 for the whole history.

The last comment has a link to a project that shows how you can very easily implement that with Spring Integration.