activemq-artemis/examples/features/standard/auto-closeable
Justin Bertram afd7d8b30f NO-JIRA fix-up examples 2018-03-01 14:58:56 -06:00
..
src/main NO-JIRA fix-up examples 2018-03-01 14:58:56 -06:00
pom.xml NO-JIRA fix-up examples 2018-03-01 14:58:56 -06: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.