• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring and JMS integration

 
K Aditi
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Ganesh Bhambure
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Same is the question for Seam .

Does seam provide support to JMS Integration in it ?
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
K Aditi
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the delayed response...but have finally got things going.Thanks.
 
Krishna Srinivasan
Ranch Hand
Posts: 1862
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read this article:
Spring and JMS Integration
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic