git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

is transaction (required) by default enabled for the route sending message from one jms endpoint to another endpoint


is transaction (required) by default enabled for the route sending message
from one jms endpoint to another endpoint like below

 from("activemq:queue:foo").to("activemq:queue:bar");

or i have to explicitly do like  below ?
Policy requried = bean(SpringTransactionPolicy.class,
"PROPAGATION_REQUIRED"));
 from("activemq:queue:foo").policy(required).to("activemq:queue:bar");

Any hints or suggestions are more than welcome!