On 26 January 2013 13:00, Fraser Adams <[email protected]> wrote:
>
> Another thing I've just noticed about 0.20 Java.
>
> The behaviour of the Thread that gets started when a MessageListener is
> registered has changed some time between 0.12 and 0.20 (I'm afraid I was
> stuck on 0.12 for a while so I can't say exactly which version it got
> changed in).
>

Are you referring to this change:

https://issues.apache.org/jira/browse/QPID-3784

-- Rob

> In 0.12 it was a Daemon Thread, so things bombed straight out when main
> exited, in 0.20 it now appears to be a user Thread and it appears to block
> at the end of main and I have to ctrl C. (I think I've got Daemon and user
> the right way round...)
>
> I only really noticed this 'cause in some of the more noddy bits of code
> I've put together for tinkering I put
>
>         // Blocks here until return is pressed
>         try {
>             System.out.println("Hit Return to exit");
>             String s = commandLine.readLine();
>         } catch (Exception e) {
>             System.out.println ("ItemConsumer: exception: " +
> e.getMessage());
>             e.printStackTrace ();
>         }
>
> To stop things exiting immediately back in the 0.12 days, but now when I hit
> return the application stays running.
>
> I doubt it's a big deal and probably actually a useful change (TBH I'm not
> sure if the JMS spec says anything about this particular Thread). I know
> that JBoss Messaging behaved in this way so perhaps it's a common convention
> at least.
>
>
> As I say I don't think that this is an "issue" with 0.20, but it is a subtle
> change that affects how JMS MessageListener clients may need to behave.
>
> Frase
>
>> The Apache Qpid community is pleased to announce the immediate
>> availability of Apache Qpid 0.20.
>>
>> Apache Qpid (http://qpid.apache.org) is a cross-platform enterprise
>> messaging solution which implements the Advanced Message Queuing
>> Protocol (AMQP, http://www.amqp.org).  It provides brokers written in
>> C++ and Java, along with clients for C++, Java JMS, .Net, Python,
>> Ruby, and Perl.
>>
>> Qpid 0.20 is available from our website:
>>
>>       http://qpid.apache.org/download.html
>>
>> The 0.20 release includes many bug fixes and improvements.  We
>> recommend that all users upgrade.  A comprehensive list of changes in
>> the 0.20 release is available here:
>>
>>       http://qpid.apache.org/release_notes_0.20.html
>>
>> Thanks to all the users and contributors who have helped to improve
>> Apache Qpid.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to