No there isn't, with async sends you won't know if the send has failed once it leaves the client because you won't get notified by the receiver of the status. If you need to know the status (error or success) then you have to do a sync send. The trade off for performance is that some message loss is acceptable.
On Wed, Feb 17, 2016 at 10:55 PM, mayuraviraj <mayuravi...@gmail.com> wrote: > I have ActiveMQ persistent queue and due to performance i'm publishing to > producer using async mode. > > > My Code as following, > ActiveMQConnectionFactory factory = new > ActiveMQConnectionFactory(brokerURL); > factory.setUseAsyncSend(true); > PooledConnectionFactory connectionFactory = new > PooledConnectionFactory(factory); > Connection connection = connectionFactory.createConnection(); > connection.start(); > Session session = connection.createSession(false, > Session.AUTO_ACKNOWLEDGE); > MessageProduer producer = session.createProducer(destination); > Queue queue = session.createQueue(qName); > producer.send(queue, message); > > > Is there a way to register handler to get the error/success of > `producer.send()` method ? > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Identify-ActiveMQ-asyncrhonous-message-failures-tp4707716.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >