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

JMS Auto Closable 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.