Logging a warning if you forget to start a Connection

Features > Logging a warning if you forget to start a Connection

Logging a warning if you forget to start a Connection

A very 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!

To try and help diagnose this mistake and give you an early warning by default ActiveMQ Classic 4.2 detects this and generates a handy warning message telling you to call the Connection.start() method on the JMS connection.

For more details on this feature see the discussion of the warnAboutUnstartedConnectionTimeout property on the Connection Configuration URI

Apache, ActiveMQ, Apache ActiveMQ, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. Copyright © 2024, The Apache Software Foundation. Licensed under Apache License 2.0.