activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <>
Subject Re: Sending message from broker to clients
Date Tue, 24 Jul 2012 14:50:59 GMT
You need to have ConnectionContext to send messages within the broker.
If you don't have any you can try grabbing admin connection context
Broker.getAdminConnectionContext(). It seems like your case is an
extension of current advisory support in the broker. If so you might
consider extending it to your needs.

Dejan Bosanac
Senior Software Engineer | FuseSource Corp. |
skype: dejan.bosanac | twitter: @dejanb
ActiveMQ in Action:

On Mon, Jul 23, 2012 at 6:13 PM, mandjeo <> wrote:
> Thanks for the reply ! (Hvala puno! :))
> My use case is that I need to send messages as a reaction to some events in
> the broker.
> So lets say that when some conditions are fulfilled I need to send a new
> message to some queue.
> In the example that you've sent it is the scheduleRedelivery method that is
> doing more or less what I need,
> but here you got connectionContext object from the sendToDeadLetterQueue
> method, and you are using broker defined in it to send the message.
> What if I don't have a ConnectionContext object, that is I want to send
> message from some other methods where I don't have a reference to it.
> How can I create one and reference to which Broker should I set in it?
> Regards !
> Milos Andjelkovic
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

View raw message