Transactional Client - Setting Spring Policy is a bit cumbersome in the XML
---------------------------------------------------------------------------
Key: CAMEL-668
URL: https://issues.apache.org/activemq/browse/CAMEL-668
Project: Apache Camel
Issue Type: Improvement
Affects Versions: 1.4.0
Reporter: Claus Ibsen
Priority: Minor
Fix For: 1.5.0
Currently you have to setup the transaction demarcation in the spring xml file
as:
{code}
<bean id="PROPAGATION_REQUIRED"
class="org.apache.camel.spring.spi.SpringTransactionPolicy">
<constructor-arg>
<bean
class="org.springframework.transaction.support.TransactionTemplate">
<property name="transactionManager"
ref="jmsTransactionManager"/>
</bean>
</constructor-arg>
</bean>
{code}
to be able to use the policy from XML directly in the tag:
{code}
<camel:policy ref="PROPAGATION_REQUIRED"/>
{code}
We should support a neater syntax without the nested bean and constructor args.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.