Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

problems with JMS configuration.

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I solve the problem with the following code:



Thanks.
 
Can you smell this for me? I think this tiny ad smells like blueberry pie!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic