Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

How

...

Do I

...

Make My JMS Endpoint Transactional?

I have a JMS route such as this...like this:

Code Block
languagejava

from("activemq:Some.Queue").
  .bean(MyProcessor.class);

Question:

How Do I Make It Transactionalhow do I make it transactional?

Answer:

There are examples in the Transactional Client and it is described in the Enabling Transacted Consumption section of JMS. Basically you enable the transacted To make a session transactional set transacted=true flag on the JMS endpoint and set a configure a transactionManager on the Component or Endpoint

See Also