Hi, do you need to do it from the broker, or just the same JVM. If it doesn't need to be done from the broker, you can use regular JMS producer to connect to your broker and send messages (or even use Camel to make things easier).
If it needs to be from the broker, you probably need to create a plugin (http://activemq.apache.org/developing-plugins.html) that will do something on certain event. One of the examples of plugins that sends messages can be found here https://fisheye6.atlassian.com/browse/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/util/RedeliveryPlugin.java?hb=true In any case, it'd be good to hear more about your use case to find the best approach. Regards -- Dejan Bosanac Senior Software Engineer | FuseSource Corp. dej...@fusesource.com | fusesource.com skype: dejan.bosanac | twitter: @dejanb blog: http://www.nighttale.net ActiveMQ in Action: http://www.manning.com/snyder/ On Mon, Jul 23, 2012 at 4:57 PM, mandjeo <mand...@gmail.com> wrote: > Is it possible that nobody had need to send message from the broker to some > queue... > > My problem is that I cannot find how should I create ProducerBrokerExchange > and ConnectionContext objects appropriately. > > Please if anybody has any ideas... > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Sending-message-from-broker-to-clients-tp4654236p4654260.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com.