Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Spring and JMS integration

 
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,
 
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 ?
 
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.
 
ranger
Posts: 17344
11
Mac IntelliJ IDE 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.
 
Ranch Hand
Posts: 1880
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read this article:
Spring and JMS Integration
 
Not so fast naughty spawn! I want you to know about
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!