You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "gengshaoguang (JIRA)" <tu...@ws.apache.org> on 2007/10/29 10:24:50 UTC

[jira] Created: (TUSCANY-1874) An outbound jms XA testcase run under policy-transaction

An outbound jms XA testcase run under policy-transaction
--------------------------------------------------------

                 Key: TUSCANY-1874
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1874
             Project: Tuscany
          Issue Type: Improvement
          Components: Java SCA Core Runtime
    Affects Versions: Java-SCA-Next
         Environment: svn trunk activemq tuscnay::policy-transaciton
            Reporter: gengshaoguang


Hello, every one:

I created a TestCase address out-bound jms managed by TransactionManager of the current policy-transaction module.

I would like to expand this test case to a manageable remote ws referencing over jms.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Assigned: (TUSCANY-1874) An outbound jms XA testcase run under policy-transaction

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng reassigned TUSCANY-1874:
-------------------------------------

    Assignee: Raymond Feng

> An outbound jms XA testcase run under policy-transaction
> --------------------------------------------------------
>
>                 Key: TUSCANY-1874
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1874
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>         Environment: svn trunk activemq tuscnay::policy-transaciton
>            Reporter: gengshaoguang
>            Assignee: Raymond Feng
>         Attachments: DerbyTestCase.java, OutboundJmsTestCase.java
>
>
> Hello, every one:
> I created a TestCase address out-bound jms managed by TransactionManager of the current policy-transaction module.
> I would like to expand this test case to a manageable remote ws referencing over jms.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1874) An outbound jms XA testcase run under policy-transaction

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538688 ] 

Raymond Feng commented on TUSCANY-1874:
---------------------------------------

The TransactionModuleActivator is not designed to the bootstrapper for transaction managers. It's there to register a singleton transaction manager with the Tuscany runtime. 

The way that the ConcurrentXAResourceTestCase.java  is coded doesn't match the purpose of TransactionModuleActivator. For the unit test puprose, we should create a singleton for multiple threads.

For the transaction control, I don't think we should have multiple transaction managers in a SCA node.

Thanks,
Raymond

> An outbound jms XA testcase run under policy-transaction
> --------------------------------------------------------
>
>                 Key: TUSCANY-1874
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1874
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>         Environment: svn trunk activemq tuscnay::policy-transaciton
>            Reporter: gengshaoguang
>            Assignee: Raymond Feng
>         Attachments: ConcurrentXAResourceTestCase.java, DerbyTestCase.java, diff.txt, OutboundJmsTestCase.java
>
>
> Hello, every one:
> I created a TestCase address out-bound jms managed by TransactionManager of the current policy-transaction module.
> I would like to expand this test case to a manageable remote ws referencing over jms.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1874) An outbound jms XA testcase run under policy-transaction

Posted by "gengshaoguang (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

gengshaoguang updated TUSCANY-1874:
-----------------------------------

    Attachment: DerbyTestCase.java

This a manageable XAResource provided by Derby.

The test case run under policy-transaction module.

An XAException thrown from Derby's api when rollback. It is just an info, things go right.

> An outbound jms XA testcase run under policy-transaction
> --------------------------------------------------------
>
>                 Key: TUSCANY-1874
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1874
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>         Environment: svn trunk activemq tuscnay::policy-transaciton
>            Reporter: gengshaoguang
>         Attachments: DerbyTestCase.java, OutboundJmsTestCase.java
>
>
> Hello, every one:
> I created a TestCase address out-bound jms managed by TransactionManager of the current policy-transaction module.
> I would like to expand this test case to a manageable remote ws referencing over jms.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1874) An outbound jms XA testcase run under policy-transaction

Posted by "gengshaoguang (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

gengshaoguang updated TUSCANY-1874:
-----------------------------------

    Attachment: OutboundJmsTestCase.java

This testcase compile under jdk1.6.

And more depend must add to pom:

         <dependency>
			<groupId>org.apache.activemq</groupId>
			<artifactId>activemq-core</artifactId>
			<version>4.1.1</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.activemq</groupId>
			<artifactId>activemq-ra</artifactId>
			<version>4.1.1</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.geronimo.specs</groupId>
			<artifactId>geronimo-jms_1.1_spec</artifactId>
			<version>1.1</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.derby</groupId>
			<artifactId>derby</artifactId>
			<version>10.3.1.4</version>
			<scope>test</scope>
		</dependency>

> An outbound jms XA testcase run under policy-transaction
> --------------------------------------------------------
>
>                 Key: TUSCANY-1874
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1874
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>         Environment: svn trunk activemq tuscnay::policy-transaciton
>            Reporter: gengshaoguang
>         Attachments: OutboundJmsTestCase.java
>
>
> Hello, every one:
> I created a TestCase address out-bound jms managed by TransactionManager of the current policy-transaction module.
> I would like to expand this test case to a manageable remote ws referencing over jms.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1874) An outbound jms XA testcase run under policy-transaction

Posted by "gengshaoguang (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

gengshaoguang updated TUSCANY-1874:
-----------------------------------

    Attachment: ConcurrentXAResourceTestCase.java

Hi Raymond,

You are right, I was wrong.

I attach a updated concurrent test case here. 

Thank you for your review.

> An outbound jms XA testcase run under policy-transaction
> --------------------------------------------------------
>
>                 Key: TUSCANY-1874
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1874
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>         Environment: svn trunk activemq tuscnay::policy-transaciton
>            Reporter: gengshaoguang
>            Assignee: Raymond Feng
>         Attachments: ConcurrentXAResourceTestCase.java, ConcurrentXAResourceTestCase.java, DerbyTestCase.java, diff.txt, OutboundJmsTestCase.java
>
>
> Hello, every one:
> I created a TestCase address out-bound jms managed by TransactionManager of the current policy-transaction module.
> I would like to expand this test case to a manageable remote ws referencing over jms.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Resolved: (TUSCANY-1874) An outbound jms XA testcase run under policy-transaction

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng resolved TUSCANY-1874.
-----------------------------------

    Resolution: Fixed

I have merged the patch into the itest/transaction test case. Thank you for the contribution!

> An outbound jms XA testcase run under policy-transaction
> --------------------------------------------------------
>
>                 Key: TUSCANY-1874
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1874
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>         Environment: svn trunk activemq tuscnay::policy-transaciton
>            Reporter: gengshaoguang
>            Assignee: Raymond Feng
>             Fix For: Java-SCA-Next
>
>         Attachments: ConcurrentXAResourceTestCase.java, ConcurrentXAResourceTestCase.java, DerbyTestCase.java, diff.txt, OutboundJmsTestCase.java
>
>
> Hello, every one:
> I created a TestCase address out-bound jms managed by TransactionManager of the current policy-transaction module.
> I would like to expand this test case to a manageable remote ws referencing over jms.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1874) An outbound jms XA testcase run under policy-transaction

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538651 ] 

Raymond Feng commented on TUSCANY-1874:
---------------------------------------

Hi, Shaoguang.

Thank you for the patches. I'll look into them. 

It seems to me that these resources are more suitable to be used in itest as they may be too heavy for unit tests. 

Raymond

> An outbound jms XA testcase run under policy-transaction
> --------------------------------------------------------
>
>                 Key: TUSCANY-1874
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1874
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>         Environment: svn trunk activemq tuscnay::policy-transaciton
>            Reporter: gengshaoguang
>         Attachments: DerbyTestCase.java, OutboundJmsTestCase.java
>
>
> Hello, every one:
> I created a TestCase address out-bound jms managed by TransactionManager of the current policy-transaction module.
> I would like to expand this test case to a manageable remote ws referencing over jms.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1874) An outbound jms XA testcase run under policy-transaction

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538652 ] 

Raymond Feng commented on TUSCANY-1874:
---------------------------------------

By the way, can you mark "Grant permissions to Apache to include the code"?

> An outbound jms XA testcase run under policy-transaction
> --------------------------------------------------------
>
>                 Key: TUSCANY-1874
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1874
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>         Environment: svn trunk activemq tuscnay::policy-transaciton
>            Reporter: gengshaoguang
>            Assignee: Raymond Feng
>         Attachments: DerbyTestCase.java, OutboundJmsTestCase.java
>
>
> Hello, every one:
> I created a TestCase address out-bound jms managed by TransactionManager of the current policy-transaction module.
> I would like to expand this test case to a manageable remote ws referencing over jms.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1874) An outbound jms XA testcase run under policy-transaction

Posted by "gengshaoguang (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

gengshaoguang updated TUSCANY-1874:
-----------------------------------

    Attachment: diff.txt
                ConcurrentXAResourceTestCase.java

Thanks Raymond:

This testcase addresses concurrent reliablity of the policy-transaction.

First result illustrated the TransactionLog instance in the TransactionModuleActivator has a small problem:
Multi TransactionManager instance can not allocate same lock on the same file.

So to make the test work, replace this instance with UnrecoverableLog, as shown in the diff.txt.

I have a suggestion about the TransactionModuleActivator, the getTransactionManager method returns multi instances with null input, but with an ExtensionPointRegistry, it will return the same TransactionManager, which will cause concurrent problem.

> An outbound jms XA testcase run under policy-transaction
> --------------------------------------------------------
>
>                 Key: TUSCANY-1874
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1874
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>         Environment: svn trunk activemq tuscnay::policy-transaciton
>            Reporter: gengshaoguang
>            Assignee: Raymond Feng
>         Attachments: ConcurrentXAResourceTestCase.java, DerbyTestCase.java, diff.txt, OutboundJmsTestCase.java
>
>
> Hello, every one:
> I created a TestCase address out-bound jms managed by TransactionManager of the current policy-transaction module.
> I would like to expand this test case to a manageable remote ws referencing over jms.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org