activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "christopher.l.shannon" <>
Subject Re: put a message in queue using
Date Tue, 09 Jun 2015 00:16:48 GMT
As you have found out you shouldn't try and use the JMS client api from
inside the broker, as that is for client code. I'm not entirely sure I
understand why you can't use advisory topics but if you want to send a
message to another destination from inside the broker there are lots of good
examples inside the broker itself.  One good example in particular is the
Statistics Broker class,

If you take a look at the send and sendStats methods, you can see how a new
message can be sent to a destination.  In your case the key is that you
would want to create a message using ActiveMQTextMessage and a destination
using the ActiveMQDestination class and then configure a
ProducerBrokerExchange so you can send your new message to the destination
you want.

Hopefully this helps.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message