Well you could force the connection to always sync send or always
async send and deal with it in each respective way (on the connecting
thread, or on the exception listener).

http://activemq.apache.org/connection-configuration-uri.html

[alwaysSyncSend=true]

Otherwise, the exceptionListener is the callback for asynchronous
scenarios. This is what the failoverTransport uses to detect breakages
in the connection.



On Tue, Oct 29, 2013 at 10:06 PM, Steven Turner
<steventurner...@gmail.com> wrote:
> Thanks Christian. Yes, I do see the exception in my logs which I had already
> mentioned in my first post in this thread. I wanted to handle all exceptions
> in a generic way in ExceptionListener instead of handling async and sync
> exceptions differently. Is there any support in ActiveMQ to get callback for
> any exception on the connection between client and broker (especially the
> ones thrown by broker plugins)
>
> org.springframework.jms.UncategorizedJmsException: Uncategorized exception
> occured during JMS processing; nested exception is javax.jms.JMSException:
> common.jms.ActiveMQAuth$ActiveMQAuthException: Could not establish server
> context
>         at
> org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:260)
>         at
> org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:172)
>         at
> org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:441)
>         at
> org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:485)
>         at common.jms.test.JMSProducer.start(JMSProducer.java:228)
>         at common.jms.test.JMSProducer.access$900(JMSProducer.java:45)
>         at common.jms.test.JMSProducer$1.run(JMSProducer.java:302)
>         at java.lang.Thread.run(Thread.java:724
>
>
>
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/ExceptionListener-not-getting-fired-on-the-client-side-when-using-JmsTemplate-tp4673285p4673346.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta

Reply via email to