Re: Sending message from broker to clients

2012-07-23 Thread mandjeo
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

Re: Sending message from broker to clients

2012-07-23 Thread mandjeo
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.22

Sending message from broker to clients

2012-07-23 Thread mandjeo
Hi guys, I am implementing system based on ActiveMQ and I want to send messages from broker to the connected applications, that is, I want a broker to be a producer of the messages and put them in appropriate queues. I am trying to do it in similar way as it is implemented in for example Statisti

Duplicate dispatch on connection...

2012-07-20 Thread mandjeo
Hi ! I was developing some plugins for ActiveMQ and I am getting the following exception when an onMessage method of my listener is about to be executed: Jul 20, 2012 12:34:15 PM org.apache.activemq.ActiveMQMessageConsumer dispatch WARNING: Duplicate dispatch on connection: ID:milos-Satellite-M50

Re: Pausing messages consuming

2012-07-11 Thread mandjeo
I didn't get what you meant by asyncDispatch. I tried with blocking preProcessDispatch and it works. Thanks a lot !!! -- View this message in context: http://activemq.2283324.n4.nabble.com/Pausing-messages-consuming-tp4653866p4653880.html Sent from the ActiveMQ - User mailing list archive at N

Re: Pausing messages consuming

2012-07-11 Thread mandjeo
I also tried setting the Selector for the consumer to something that will not be valid for any of the messages and than when I want to restart consuming setting it back, but this doesn't work. Messages keep getting consumed, it's like setting the selector after adding the consumer doesn't make any

Pausing messages consuming

2012-07-11 Thread mandjeo
Hi everybody, I am developing ActiveMQ plugin and I would like to pause consuming of messages from the queues for some time. I was trying to stop client connections but this breaks the connection permanently and I don't want that. I would like to pause consuming, basically same as all the consume

Re: ActiveMQ Plugin references

2012-05-23 Thread mandjeo
It works ! Thank you very much !!! -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Plugin-references-tp4651507p4651619.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

ActiveMQ Plugin references

2012-05-23 Thread mandjeo
Hi everybody, I am developing some plugins for ActiveMQ and because I have more than one plugin in my configuration I would like to connect them, that is to have a reference from the one to another. If you can help me with the configuration and some examples of how can I achieve this. So from o