You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Tristan (JIRA)" <ji...@apache.org> on 2009/05/11 15:22:51 UTC
[jira] Created: (CAMEL-1601) @Transactional annotation doesn't
perform correctly within SpringRouteBuilder
@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
Priority: Minor
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.
[jira] Updated: (CAMEL-1601) @Transactional annotation doesn't
perform correctly within SpringRouteBuilder
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-1601:
-------------------------------
Fix Version/s: 2.0.0
> @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.
[jira] Assigned: (CAMEL-1601) @Transactional annotation doesn't
perform correctly within SpringRouteBuilder
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-1601:
----------------------------------
Assignee: Claus Ibsen
> @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.
[jira] Resolved: (CAMEL-1601) @Transactional annotation doesn't
perform correctly within SpringRouteBuilder
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-1601.
--------------------------------
Resolution: Fixed
Is fixed by CAMEL-1663
> @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.
[jira] Updated: (CAMEL-1601) @Transactional annotation doesn't
perform correctly within SpringRouteBuilder
Posted by "Tristan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tristan updated CAMEL-1601:
---------------------------
Attachment: transactions.tar.gz
This file demonstrates the issue. It requires a JEE server to replicate since a JtaTransactionManager is required.
> @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
> Priority: Minor
> 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.
[jira] Commented: (CAMEL-1601) @Transactional annotation doesn't
perform correctly within SpringRouteBuilder
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ 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.