activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manishbel <manish...@yahoo.com>
Subject Re: Transport Listener Question
Date Tue, 07 Aug 2007 12:28:08 GMT

Yes...although i forgot to mention that when connection is active the
onCommand of the class handling the consumer is called.


James.Strachan wrote:
> 
> On 8/7/07, manishbel <manishbel@yahoo.com> wrote:
>>
>> Hello
>>
>> I have been trying out TransportListener in my application, I basically
>> have
>>
>> Class1 - that has the producer and acts as the Transport Listener.
>> Class2 - that uses the consumer to receive the messages, this acts as a
>> Transport Listener too.
>>
>>
>> When i bring the broker down the Class1 that acts as the Transport
>> Listener
>> gets notified of the Transport Interruption but the Class2 that handles
>> the
>> message consumption is not notified of the Transport Interruption event.
>>
>> Is this the expected behavior? should the consumer not be notified of the
>> lost connection?
> 
> Are you calling connection.addTransportListener for both objects?
> 
> 
> -- 
> James
> -------
> http://macstrac.blogspot.com/
> 
> 

-- 
View this message in context: http://www.nabble.com/Transport-Listener-Question-tf4228121s2354.html#a12033227
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message