[ 
https://issues.apache.org/activemq/browse/CAMEL-1601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52077#action_52077
 ] 

Claus Ibsen commented on CAMEL-1601:
------------------------------------

Tristan

You might need to add @Transactional to the class definition in your 
DefaultTestDao class.

{code}
@Transactional
public class DefaultTestDao extends SimpleJdbcDaoSupport implements TestDao
{code}

Otherwise the tx annotation driven might not discover your class
{code}
    <tx:annotation-driven transaction-manager="txManager"/>
{code}

I am working on adding an unit test to Camel and I have to add it at class 
level to get the class instrumented.

> @Transactional annotation doesn't perform correctly within SpringRouteBuilder
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-1601
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1601
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-spring, camel-spring-integration
>    Affects Versions: 1.6.0
>         Environment: Ubuntu Desktop v9.04 (Jaunty)
> Java (1.6.0_13)
> ActiveMQ 5.2
> Glassfish v2.1
> Camel v1.6.1_SNAPSHOT
>            Reporter: Tristan
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: transactions.tar.gz
>
>
> The Spring @Transactional annotation doesn't work as expected with 
> JtaTransactionManager in routes created using SpringRouteBuilder.
> Programatically defined transactions seem to be fine.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to