activemq-artemis/examples/features/standard/auto-closeable
Clebert Suconic a0e7cb4eae [maven-release-plugin] prepare for next development iteration 2022-03-22 13:34:58 -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 2022-03-22 13:34:58 -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.