activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: Handling of RuntimeExceptions in ActiveMQSession.run() method
Date Mon, 02 Jun 2008 06:57:35 GMT
Sounds good -  please send a patch!


On 2 Jun 2008, at 07:50, khudalla wrote:

>
> Rob,
>
> I see what you mean. I think that the  
> "ClientInternalExceptionListener"
> should not be limited to JMSExceptions though, i.e. it should not  
> implement
> javax.jms.ExceptionListener but instead an interface
> that provides an onException(Throwable exception) method, do you  
> agree?
>
> If so, I will add this to ActiveMQConnection and send you a patch for
> review, okay?
>
> Kai
>
>
> rajdavies wrote:
>>
>> Hi Kai,
>>
>> I think you missed understood :)
>> I'm proposing to add another on method on Connection - e.g.
>> setClientInternalExceptionListener() - that registers an exception
>> listener of internal exceptions only - like in this
>> ActiveMQSession.run() case.
>>
>> We then only pass exceptions to the ExceptionListener registered by
>> setExceptionListener() that directly affect the connection.
>>
>> cheers,
>>
>> Rob
>>
>
> -- 
> View this message in context: http://www.nabble.com/Handling-of-RuntimeExceptions-in-ActiveMQSession.run%28%29-method-tp17554360s2354p17595013.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>


Mime
View raw message