blob: dfd02d535094adf41f8430dbc269cb18e325024f [file] [log] [blame]
[[HowDoIMakeMyJMSEndpointTransactional-HowDoIMakeMyJMSEndpointTransactional]]
= 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: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:component.adoc[Component] or
xref:endpoint.adoc[Endpoint].