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)?