You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by manishbel <ma...@yahoo.com> on 2007/08/07 07:05:01 UTC

Transport Listener Question

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?

Manish

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


Re: Transport Listener Question

Posted by manishbel <ma...@yahoo.com>.
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 <ma...@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.


Re: Transport Listener Question

Posted by James Strachan <ja...@gmail.com>.
On 8/7/07, manishbel <ma...@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/