tree: f820b787f98ae75ef8c2a63e6f5a77fc233d142a [path history] [tgz]
  1. src/
  2. pom.xml
  3. readme.md
examples/features/standard/auto-closeable/readme.md

JMS Auto Closable Example

If you have not already done so, prepare the broker distribution before running the example.

To run the example, simply type mvn verify from this directory, or mvn -PnoServer verify if you want to start and create the broker manually.

This example shows you how JMS resources such as connections, sessions and consumers in JMS 2 can be automatically closed on error.

In this instance we auto close a connection after a subsequent call to a JMS producer send fails.