There's no requirement in JMS for all the MessageListeners to be created before 
the Connection is started. That is, you should be able to add new 
MessageConsumers to a Session created from an already started Connection and 
receive messages through that MessageConsumer.

-----Original Message-----
From: Rajith Attapattu [mailto:[email protected]] 
Sent: Tuesday, February 17, 2009 3:27 PM
To: [email protected]
Subject: Re: Clarification on JMS Client behaviour w.r.t message listeners

I was refering to trunk :)
My bad, I should have been a bit more specific.

Rajith

On Tue, Feb 17, 2009 at 6:13 PM, Alexis Richardson
<[email protected]> wrote:
> Rajith,
>
> What 'codebase' are you referring to?
>
> alexis
>
>
> On Tue, Feb 17, 2009 at 10:43 PM, Rajith Attapattu <[email protected]> wrote:
>> Hi All,
>>
>> I noticed in the current codebase,
>> that when the connection is started, the dispatcher thread for a
>> particular session will not be started if there are no registered
>> message listeners.
>> But if I add a message listener later, the dispatcher thread should be
>> started, but apparently it does not seem to be.
>>
>> I don't know if this is the correct behavior, but I couldn't find
>> anything in the JMS spec that says the above should not happen.
>> If the above behavior is wrong I can file a JIRA, but wants to make
>> sure before I do so.
>>
>> Regards,
>>
>> Rajith Attapattu
>> Red Hat
>> http://rajith.2rlabs.com/
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project:      http://qpid.apache.org
>> Use/Interact: mailto:[email protected]
>>
>>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:[email protected]
>
>



-- 
Regards,

Rajith Attapattu
Red Hat
http://rajith.2rlabs.com/

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to