activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mayuraviraj <mayuravi...@gmail.com>
Subject Identify ActiveMQ asyncrhonous message failures?
Date Thu, 18 Feb 2016 03:55:35 GMT
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.

Mime
View raw message