activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan (JIRA)" <>
Subject [jira] Resolved: (AMQ-1186) Notify user when listening on unstarted connection
Date Thu, 06 Mar 2008 14:32:35 GMT


James Strachan resolved AMQ-1186.

    Fix Version/s: 5.1.0
                       (was: 5.2.0)
       Resolution: Fixed

See [Logging a warning if you forget to start a Connection|]

> Notify user when listening on unstarted connection
> --------------------------------------------------
>                 Key: AMQ-1186
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 4.1.0
>            Reporter: Dain Sundstrom
>             Fix For: 5.1.0
> It is not possible to receive a message on an unstarted connection, but activemq does
not warn you when you attempt to do it anyway.  When a user tries this, how about throwing
an exception or logging something?  In my specific case I was calling consumer.receive(1000),
and it was failing because the connection was not started.  In at least that case, there should
be a log message.   For other styles of listeners you could log a warning saying that the
connection has not been started after say 5 seconds.  That way a user has at least a prayer
of noticing this problem.

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

View raw message