Originally posted by K Aditi:
I want to use JMS through Spring so that I can leverage transaction management.I am using OpenMQ on Glassfish.I have following questions:
1. Can I recieve messages synchronously using Spring? Spring 2.5 documentation says so but I believe it does not provide an example.
2. If synchronous messaging is not possible with Spring, then is there a way to recieve messages synchronously?A work-around perhaps?
2. For asynchronus transmission, I am facing problem for configuring the Destination using OpenMQ in Spring. I googled for examples but all examples used ActiveMQ.Can any body give me a sample configuration for using OpenMQ in Spring?
Thanks,
Check out the methods of the JmsTemplate class, that has some receive blocking methods that
word synchronousle.
Q2. Do the same thing as with ActiveMQ, except use the destination classes that are in the OpenMQ jar for the "class" attribute. You are just using a different implementation of a Destination, so it is just a different class and package name. Everything else is exactly the same.
Mark