Do you see the exception anywhere in your logs? the exception listener is for async sends resulting in an error. the connection info is sent sync, so you should see the exception on the same thread as that creating the connection.
On Tue, Oct 29, 2013 at 1:46 AM, Steven Turner <steventurner...@gmail.com>wrote: > This issue seems to be happening even if I use the raw ActiveMQ API instead > of using the Spring's JmsTemplate. If I just set ExceptionListener on the > ActiveMQ connection or connectionfactory, it is not getting invoked for > exceptions as part of ActiveMQConnection.start(). > > It looks to me from the code also that The ExceptionListener is not > invoked/triggered when exception occurs as part of starting the connection. > ActiveMQConnection.start() calls ensureConnectionInfoSent() which calls > syncSendPacket. If the response has an exception here, why is the exception > handler not getting invoked? > > Isn't this a bug? > > -Steven > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/ExceptionListener-not-getting-fired-on-the-client-side-when-using-JmsTemplate-tp4673285p4673287.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta