It's not a secret anymore!*
The moose likes Other Application Frameworks and the fly likes Spring and JMS integration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring and JMS integration" Watch "Spring and JMS integration" New topic
Author

Spring and JMS integration

K Aditi
Ranch Hand

Joined: Mar 17, 2008
Posts: 89
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,


Aditi
Ganesh Bhambure
Ranch Hand

Joined: Aug 19, 2008
Posts: 32
Same is the question for Seam .

Does seam provide support to JMS Integration in it ?
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by Ganesh Bhambure:
Same is the question for Seam .

Does seam provide support to JMS Integration in it ?


Its good to open a new thread for this question. Thanks.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
K Aditi
Ranch Hand

Joined: Mar 17, 2008
Posts: 89
Sorry for the delayed response...but have finally got things going.Thanks.
Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1844

Read this article:
Spring and JMS Integration


Krishna Srinivasan
Spring Tutorials, OCAJP Mock Questions, 400+ OCPJP Mock Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring and JMS integration
 
Similar Threads
Habari OpenMQ Client 1.8 - NativeXml and Durable Subscriber support
Message getting sent mulitple times
newbie question: please help with scja exam question
MDB listening to external MQ in Glassfish
Error using JNDI in JMS Queue lookup