blob: 5d05cb44aa9209118d563a5242f10968feaa2f1c [file] [log] [blame]
= How Do I Make My JMS Endpoint Transactional?
I have a JMS route like this:
[source,java]
----
from("activemq:Some.Queue")
.bean(MyProcessor.class);
----
[[HowDoIMakeMyJMSEndpointTransactional-Question]]
== Question:
How Do I Make It Transactional?
[[HowDoIMakeMyJMSEndpointTransactional-Answer]]
== Answer:
There are examples in the xref:components:eips:transactional-client.adoc[Transactional Client]
and it is described in the _Enabling Transacted Consumption_
section of xref:components::jms-component.adoc[JMS]. To make a session transactional
set `transacted=true` flag on the JMS endpoint and configure
a `transactionManager` on the xref:ROOT:component.adoc[Component] or
xref:ROOT:endpoint.adoc[Endpoint].