OpenJPA
  1. OpenJPA
  2. OPENJPA-1342

Build a mechanics to test JTA transaction semantics within JSE

    Details

    • Type: Test Test
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-beta
    • Component/s: None
    • Labels:
      None

      Description

      The transaction semantics and flow within container environment or with JTA resource type differs from locally managed transaction.
      OpenJPA test harnesses do not have a facility to test functionality within a managed transaction without a full-blown ejb/application container.
      This issue will develop a simple/basic JTA transaction manager to plug-in to openjpa.ManagedRuntime to exercise codepath for
      managed transaction without needing a full-blown ejb/application container.

        Activity

        Hide
        Donald Woods added a comment -

        There is a lot of code in Apache Geronimo and TranQL that you should be able to reuse for this.
        Geronimo Transaction Manager -
        https://svn.apache.org/repos/asf/geronimo/components/txmanager/branches/geronimo
        -txmanager-parent-2.1
        TranQL DB connectors - http://xircles.codehaus.org/projects/tranql -
        http://svn.codehaus.org/tranql/

        Show
        Donald Woods added a comment - There is a lot of code in Apache Geronimo and TranQL that you should be able to reuse for this. Geronimo Transaction Manager - https://svn.apache.org/repos/asf/geronimo/components/txmanager/branches/geronimo -txmanager-parent-2.1 TranQL DB connectors - http://xircles.codehaus.org/projects/tranql - http://svn.codehaus.org/tranql/
        Hide
        Pinaki Poddar added a comment -

        The idea is to avoid bringing in a heavyweight container within OpenJPA test environment.
        The contract between OpenJPA and a container is thin enough to provide a bare bone lightweight container implementation (which also, btw, many do).

        But please give this one a try and see how it goes. It surely helps me to debug easily.

        Show
        Pinaki Poddar added a comment - The idea is to avoid bringing in a heavyweight container within OpenJPA test environment. The contract between OpenJPA and a container is thin enough to provide a bare bone lightweight container implementation (which also, btw, many do). But please give this one a try and see how it goes. It surely helps me to debug easily.
        Hide
        Donald Woods added a comment -

        Yep, wasn't suggesting that we use the whole Geronimo app server, but just the txmanager component (standalone JAR which Apache Aries is using for JTA support) and possibly the TranQL connectors, if we need to connect to databases other than Derby....

        Show
        Donald Woods added a comment - Yep, wasn't suggesting that we use the whole Geronimo app server, but just the txmanager component (standalone JAR which Apache Aries is using for JTA support) and possibly the TranQL connectors, if we need to connect to databases other than Derby....

          People

          • Assignee:
            Pinaki Poddar
            Reporter:
            Pinaki Poddar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development