You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "xuhongbo (JIRA)" <ji...@apache.org> on 2010/11/26 18:03:24 UTC

[jira] Created: (CAMEL-3371) markRollbackOnlyLast cause the nested transaction route doesn't work

 markRollbackOnlyLast cause the  nested transaction route doesn't work
----------------------------------------------------------------------

                 Key: CAMEL-3371
                 URL: https://issues.apache.org/activemq/browse/CAMEL-3371
             Project: Apache Camel
          Issue Type: Test
          Components: camel-spring
    Affects Versions: 2.4.0
            Reporter: xuhongbo


if using two nested transaction, and the inner transaction route is configured with markRollbackOnlyLast().  then the inner route doesn't work

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


[jira] Updated: (CAMEL-3371) markRollbackOnlyLast cause the nested transaction route doesn't work

Posted by "xuhongbo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

xuhongbo updated CAMEL-3371:
----------------------------

    Attachment: TransactionalClientDataSourceWithNestTransaction.java

This file will be more clear  and simple than another one, though they work same

>  markRollbackOnlyLast cause the  nested transaction route doesn't work
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-3371
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3371
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-spring
>    Affects Versions: 2.4.0
>            Reporter: xuhongbo
>         Attachments: TransactionalClientDataSourceWithNestTransaction.java, TransactionalClientDataSourceWithNestTransaction.java
>
>
> if using two nested transaction, and the inner transaction route is configured with markRollbackOnlyLast().  then the inner route doesn't work

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


[jira] Commented: (CAMEL-3371) markRollbackOnlyLast cause the nested transaction route doesn't work

Posted by "xuhongbo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=63577#action_63577 ] 

xuhongbo commented on CAMEL-3371:
---------------------------------

The test case will failed on the 

 assertEquals("Number of books", 3, count);

actually only 1 book is inserted(that's to say: BookService only be executed once;

>  markRollbackOnlyLast cause the  nested transaction route doesn't work
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-3371
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3371
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-spring
>    Affects Versions: 2.4.0
>            Reporter: xuhongbo
>         Attachments: TransactionalClientDataSourceWithNestTransaction.java
>
>
> if using two nested transaction, and the inner transaction route is configured with markRollbackOnlyLast().  then the inner route doesn't work

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


[jira] Updated: (CAMEL-3371) markRollbackOnlyLast cause the nested transaction route doesn't work

Posted by "xuhongbo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

xuhongbo updated CAMEL-3371:
----------------------------

    Attachment: TransactionalClientDataSourceWithNestTransaction.java

This is failure TestCase ,
And this TestCase required the spring component's test: 
org.apache.camel.spring.interceptor.TransactionClientDataSourceSupport

>  markRollbackOnlyLast cause the  nested transaction route doesn't work
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-3371
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3371
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-spring
>    Affects Versions: 2.4.0
>            Reporter: xuhongbo
>         Attachments: TransactionalClientDataSourceWithNestTransaction.java
>
>
> if using two nested transaction, and the inner transaction route is configured with markRollbackOnlyLast().  then the inner route doesn't work

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


[jira] Issue Comment Edited: (CAMEL-3371) markRollbackOnlyLast cause the nested transaction route doesn't work

Posted by "xuhongbo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=63578#action_63578 ] 

xuhongbo edited comment on CAMEL-3371 at 11/26/10 12:27 PM:
------------------------------------------------------------

This first attachment testCasee will be more clear  and simple than the second one, though they work same.

The second one contains some un-used assertion that I forget to delete

      was (Author: ext2xhb):
    This file will be more clear  and simple than another one, though they work same
  
>  markRollbackOnlyLast cause the  nested transaction route doesn't work
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-3371
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3371
>             Project: Apache Camel
>          Issue Type: Test
>          Components: camel-spring
>    Affects Versions: 2.4.0
>            Reporter: xuhongbo
>         Attachments: TransactionalClientDataSourceWithNestTransaction.java, TransactionalClientDataSourceWithNestTransaction.java
>
>
> if using two nested transaction, and the inner transaction route is configured with markRollbackOnlyLast().  then the inner route doesn't work

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