You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "James Strachan (JIRA)" <ji...@apache.org> on 2007/05/24 12:23:34 UTC

[jira] Resolved: (AMQ-1253) AMQ Should Print a Warning (Or Throw an Exception) If Messages Are Received to a Non-Started Connection

     [ https://issues.apache.org/activemq/browse/AMQ-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Strachan resolved AMQ-1253.
---------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 4.1.1)
                   4.2.0

Trunk now allows you to specify a timeout (which defaults to 500ms) so that messages arriving after the timeout will cause the warning to be logged

> AMQ Should Print a Warning (Or Throw an Exception) If Messages Are Received to a Non-Started Connection
> -------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-1253
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1253
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: JMS client
>            Reporter: ocean
>             Fix For: 4.2.0
>
>
> The following scenario can occur:
> (1) Create a javax.jms.Connection but don't start it
> (2) Create a MessageConsumer on the Connection and subscribe to a Queue
> (3) Send messages to the Queue
> In this case (turning on trace logging) the messages will be received by the Connection and they will silently be discarded. To the poor bloke who forgot to call Connection.start() it looks like the messages have simply disappeared and the universe is torturing him. He then must endure the horror of tracing through his code trying to find out why some cruel god is consuming his messages only to discover six hours later that he forgot to call Connection.start() and thus the punchline of the cruel joke that is his life is delivered and he's prompted to thoughts of self destruction and spilling the blood innocents.
> To prevent this scenario it would be nice if AMQ printed a warning (or better yet threw an exception) indicating that activity is occurring on a Connection that has not been started. In this case the programmer could clearly see that he forgot to call Connection.start(), happily add the line and continue on into the brave future!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.