activemq-artemis/examples/features/standard/auto-closeable
Clebert Suconic b8c64590f9 [maven-release-plugin] prepare for next development iteration 2021-08-09 11:58:28 -04:00
..
src/main NO-JIRA fix-up examples 2018-03-01 14:58:56 -06:00
pom.xml [maven-release-plugin] prepare for next development iteration 2021-08-09 11:58:28 -04:00
readme.md NO-JIRA fix-up examples 2018-03-01 14:58:56 -06:00

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.