Re: JMS Asynchronous Receiver for ActiveMQ Artemis

2019-02-21 Thread Justin Bertram
k you for the clarification. > >> > >> Regards, > >> Riyafa > >> > >> On Thu, 21 Feb 2019 at 21:42, michael.andre.pearce > >> wrote: > >> > >>> You could use a countdown latch that then when you wish to shutdown you > >>&

Re: JMS Asynchronous Receiver for ActiveMQ Artemis

2019-02-21 Thread Timothy Bish
ou wish to shutdown you simply from another thread countdown.Sent from my Samsung Galaxy smartphone. Original message From: Riyafa Abdul Hameed < riy...@apache.org> Date: 21/02/2019 14:06 (GMT+00:00) To: users@activemq.apache.org Subject: JMS Asynchronous Receiver

Re: JMS Asynchronous Receiver for ActiveMQ Artemis

2019-02-21 Thread Justin Bertram
Riyafa Abdul Hameed < > > riy...@apache.org> Date: 21/02/2019 14:06 (GMT+00:00) To: > > users@activemq.apache.org Subject: JMS Asynchronous Receiver for > ActiveMQ > > Artemis Hi,I have the following asynchronous receiver for ActiveMQ > Artemis: > > https://gist

Re: JMS Asynchronous Receiver for ActiveMQ Artemis

2019-02-21 Thread Riyafa Abdul Hameed
tphone. > Original message From: Riyafa Abdul Hameed < > riy...@apache.org> Date: 21/02/2019 14:06 (GMT+00:00) To: > users@activemq.apache.org Subject: JMS Asynchronous Receiver for ActiveMQ > Artemis Hi,I have the following asynchronous receiver for ActiveMQ Artemis: &

Re: JMS Asynchronous Receiver for ActiveMQ Artemis

2019-02-21 Thread michael.andre.pearce
Asynchronous Receiver for ActiveMQ Artemis Hi,I have the following asynchronous receiver for ActiveMQ Artemis:https://gist.github.com/riyafa/7b0e5814286c60edb157f9a83fb64765Here what I would expect when I call queueConn.start(); is that I want thethread to wait to  receive messages. I mean I don&#

Re: JMS Asynchronous Receiver for ActiveMQ Artemis

2019-02-21 Thread Justin Bertram
I've never seen or heard of javax.jms.Connection.start() blocking in that respect, and the JMS specification doesn't describe the behavior you expect. I think such behavior would be problematic in many use-cases (e.g. when you don't want to block). The whole point behind using a MessageListener is

JMS Asynchronous Receiver for ActiveMQ Artemis

2019-02-21 Thread Riyafa Abdul Hameed
Hi, I have the following asynchronous receiver for ActiveMQ Artemis: https://gist.github.com/riyafa/7b0e5814286c60edb157f9a83fb64765 Here what I would expect when I call queueConn.start(); is that I want the thread to wait to receive messages. I mean I don't want the main to exit causing the pro