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.

Reply via email to