camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAMEL-668) Transactional Client - Setting Spring Policy is a bit cumbersome in the XML
Date Fri, 04 Jul 2008 12:21:00 GMT
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.


Mime
View raw message