activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: ExceptionListener not getting fired on the client side when using JmsTemplate
Date Tue, 29 Oct 2013 16:41:18 GMT
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 <steventurner808@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message