[jbossts-issues] [JBoss JIRA] Commented: (JBTM-505) refactor jca subordinate transaction support

Jonathan Halliday (JIRA) jira-events at lists.jboss.org
Thu Mar 5 12:35:25 EST 2009


    [ https://jira.jboss.org/jira/browse/JBTM-505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12455681#action_12455681 ] 

Jonathan Halliday commented on JBTM-505:
----------------------------------------

Both jca.SubordinateTransaction versions should implement a common interface, SubordinateTransaction, with the methods needed to drive 2PC phases individually.  The TxImporter classes should make methods non-static and the classes each implement the new TransactionImporter interface. Add SubordinationManager factory class to return appropriate instances of TransactionImporter and XATerminator based on the configured TransactionManager type. Ensure the SubordinateTransaction unit tests are made generic and that they run in both JTA and JTAX modes.

> refactor jca subordinate transaction support
> --------------------------------------------
>
>                 Key: JBTM-505
>                 URL: https://jira.jboss.org/jira/browse/JBTM-505
>             Project: JBoss Transaction Manager
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: Application Server Integration, JTA Implementation, JTS Implementation, Testing
>    Affects Versions: 4.5
>            Reporter: Jonathan Halliday
>            Assignee: Jonathan Halliday
>             Fix For: 4.6
>
>
> The JTA and JTAX both have similar support for JCA tx inflow, using TxImporter, XATerminator and TransactionImple classes. However, these have little in common beyond the name, making it difficult for user code to switch between running the JTA or JTAX versions. Refactor to introduce common interfaces & such, so that client code can exploit polymorphism rather than using way too many if/else constructs.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossts-issues mailing list