Details

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

      Description

      Follow-on to OPENJPA-1524 to create a generic OSGiManagedRuntime class that would work for vendors/frameworks other than Apache Aries.

      Tim's original suggestion was - One implementation suggestion would be to use a ServiceTracker to keep track of the JTA services. This would allow for lazy lookup and also provide a notification if the service is unregistered.
      This should then be possible to implement as a relatively simple subclass of RegistryManagedRuntime that overrides getTransactionManager(). I don't know if you have a nice mechanism to pass a BundleContext yet, but I don't think that should pose a significant problem.

      Now that we have a BundleUtils.java to require OSGi classes in our runtime, we should be able to lookup "javax.transaction.TransactionSynchronizationRegistry" from the ServiceRegistry to use, instead of relying on the current JNDI lookup which is Aries specific.

      1. OPENJPA-1593-1.patch
        9 kB
        Wolfgang Glas
      2. OPENJPA-1593-2.patch
        9 kB
        Wolfgang Glas
      3. OPENJPA-1593-3.patch
        9 kB
        Wolfgang Glas
      4. OPENJPA-1593-4.patch
        26 kB
        Wolfgang Glas

        Issue Links

          Activity

          Donald Woods created issue -
          Donald Woods made changes -
          Field Original Value New Value
          Link This issue is related to OPENJPA-1524 [ OPENJPA-1524 ]
          Wolfgang Glas made changes -
          Attachment OPENJPA-1593-1.patch [ 12468175 ]
          Michael Dick made changes -
          Fix Version/s 2.2.0 [ 12315910 ]
          Fix Version/s 2.1.0 [ 12314542 ]
          Wolfgang Glas made changes -
          Attachment OPENJPA-1593-2.patch [ 12468303 ]
          Wolfgang Glas made changes -
          Attachment OPENJPA-1593-3.patch [ 12468356 ]
          Wolfgang Glas made changes -
          Attachment OPENJPA-1593-4.patch [ 12468378 ]
          Michael Dick made changes -
          Assignee Donald Woods [ drwoods ] Michael Dick [ mikedd ]
          Michael Dick made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Michael Dick made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Michael Dick
              Reporter:
              Donald Woods
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development