Issue Details (XML | Word | Printable)

Key: OPENJPA-61
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Kevin Sutter
Reporter: Kevin Sutter
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenJPA

Missing usage of TransactionSynchronizationRegistry

Created: 28/Sep/06 01:29 PM   Updated: 31/Jul/07 06:56 PM
Return to search
Component/s: jdbc
Affects Version/s: None
Fix Version/s: 1.0.0

Time Tracking:
Issue & Sub-Tasks
Issue Only
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works OPENJPA-61.patch 2007-04-22 09:24 PM Marc Prud'hommeaux 9 kB

Resolution Date: 26/Jun/07 06:26 PM

Sub-Tasks  All   Open   
No sub-tasks match this view.

 Description  « Hide
A discussion on the dev mailing list indicates that OpenJPA currently does not utilize the TransactionSynchronizationRegistry. Although OpenJPA does provide other means of finding and accessing the various TransactionManagers, we should update OpenJPA to use the standard interfaces. Following are the two notes on this subject...

========================================================================================
o David Jencks <david_jencks@yahoo.com> to open-jpa-dev More options Sep 27 (19 hours ago)
I'm trying to get openjpa running in geronimo and wonder how openjpa
locates the TransactionSynchronizationRegistry. Grep'ing for
TransactionSynchronizationRegistry I don't see it used anywhere in
the code base. What am I missing?

thanks
david jencks
========================================================================================
o Marc Prud'hommeaux to open-jpa-dev More options Sep 27 (19 hours ago)
David-

We don't use TransactionSynchronizationRegistry (not yet, at least).
Instead, we manually locate the TransactionManager via appserver-
specific heuristics defined in openjpa-kernel/src/main/java/org/
apache/openjpa/ee/AutomaticManagedRuntime.java

If the Geronimo TransactionManager is accessible from JNDI or some
method invocation, you can just add it into AutomaticManagedRuntime
as a default (you can test it out by specifying the
"openjpa.ManagedRuntime" property to "jndi
(TransactionManagerName=java:/GeronimoJNDINameForTransactionManager)".

We may add support for integration via
TransactionSynchronizationRegistry in the future, but the fact that
it doesn't provide support for accessing the current Transaction
would mean that we would need to rework some OpenJPA internals.
========================================================================================

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.