blob: 44917473dad383801009bbe995c673ed4a64f95a [file] [log] [blame]
<div class="wiki-content maincontent"><h2>Logging a warning if you forget to start a Connection</h2>
<p>A <em>very</em> common gotcha when working with JMS is forgetting to start the JMS connection, creating a consumer and not having it receive any messages. I myself have tripped up over this one many many times! <emoticon ac:name="smile"></emoticon></p>
<p>To try and help diagnose this mistake and give you an early warning by default ActiveMQ 4.2 detects this and generates a handy warning message telling you to call the <a shape="rect" href="http://java.sun.com/j2ee/1.4/docs/api/javax/jms/Connection.html#start()">Connection.start() method</a> on the JMS connection.</p>
<p>For more details on <a shape="rect" href="https://issues.apache.org/activemq/browse/AMQ-1253">this feature</a> see the discussion of the <strong>warnAboutUnstartedConnectionTimeout</strong> property on the <link><page ri:content-title="Connection Configuration URI"></page></link></p>
</div>