Combining STOMP and ActiveMQ?

366 views
Skip to first unread message

ted warhoe

unread,
Jul 10, 2014, 1:34:24 PM7/10/14
to stomp...@googlegroups.com

I posted this on stackoverflow but no one there seemed to be able to give me much help, maybe someone here has a more expert understanding of what I want to do.

I'm using Stomp messaging and am subscribed to a topic in my client/browser code:

stompClient.subscribe('/topic/informer', function(greeting){
                showGreeting(JSON.parse(greeting.body).content);
});

I am using a camel route that sends a message to an activemq topic:

I have tried both:

<to uri="activemq:topic:informer"/>

and:

<to uri="stomp:topic:informer"/>

Both simply create a topic in activemq and enqueue the messages there. They never reach the client. To me, this means that the /topic/informer in the client is separate from the topic:informer that I can see in the activemq console. Does anyone know how to link them either by making the subscription to the activemq topic or by changing the camel route to send to the topic referenced by the subscription?

Thank you so much in advance for any tips/advice!

Reply all
Reply to author
Forward
0 new messages