activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
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.


Regards
-- 
Dejan Bosanac
Senior Software Engineer | FuseSource Corp.
dejanb@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 6:13 PM, mandjeo <mandjeo@gmail.com> 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: http://activemq.2283324.n4.nabble.com/Sending-message-from-broker-to-clients-tp4654236p4654263.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message