This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes problems with JMS configuration. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "problems with JMS configuration." Watch "problems with JMS configuration." New topic

problems with JMS configuration.

Juan Sotelo

Joined: Dec 01, 2011
Posts: 10
No sure if this is the right place to do my ask, but I am going to give a try:

This is the code:

Well, I want to send my messages to a topic, not to a Queue. With this configuration all the messages are going to the Queue, not to the topic. I can see in the activemq admin page that the topic is not been created, and is created under the queue section?.

What, I am doing wrong?
Juan Sotelo

Joined: Dec 01, 2011
Posts: 10
Like you see in the code, I already made the changes in order to change the destination and send all the messages to a topic:
<bean id="destination" class="org.apache.activemq.command.ActiveMQTopic"

Before I got:
<bean id="destination" class="org.apache.activemq.command.ActiveMQQueue">

The rare thing is that bouth configurations throws same results. What I am doing wrong?

regards and thanks for reading!
Juan Sotelo

Joined: Dec 01, 2011
Posts: 10
I solve the problem with the following code:

I agree. Here's the link:
subject: problems with JMS configuration.
Similar Threads
Questions about JMS topics
Jms Transaction and Threads
XML name space error in Spring data JPA hibernate applicationContext.xml
Spring Annotation configuration
Spring JMS with IBM Websphere MQ5.3.1