Package org.apache.openjpa.ee
Class WASRegistryManagedRuntime
- java.lang.Object
-
- org.apache.openjpa.ee.RegistryManagedRuntime
-
- org.apache.openjpa.ee.WASRegistryManagedRuntime
-
- All Implemented Interfaces:
ManagedRuntime
public class WASRegistryManagedRuntime extends RegistryManagedRuntime
WASRegistryManagedRuntime provides WebSphere specific extensions toRegistryManagedRuntime
. Currently, these extensions consist of using the WebSphere UOWManager interface to submit non-transactional work.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.openjpa.ee.RegistryManagedRuntime
RegistryManagedRuntime.TransactionManagerRegistryFacade
-
-
Constructor Summary
Constructors Constructor Description WASRegistryManagedRuntime()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doNonTransactionalWork(java.lang.Runnable runnable)
RegistryManagedRuntime cannot suspend transactions, but WebSphere provides an interface to submit work outside of the current tran.-
Methods inherited from class org.apache.openjpa.ee.RegistryManagedRuntime
getRegistryName, getRollbackCause, getTransactionKey, getTransactionManager, setRegistryName, setRollbackOnly
-
-
-
-
Method Detail
-
doNonTransactionalWork
public void doNonTransactionalWork(java.lang.Runnable runnable) throws java.lang.RuntimeException
RegistryManagedRuntime cannot suspend transactions, but WebSphere provides an interface to submit work outside of the current tran.
- Specified by:
doNonTransactionalWork
in interfaceManagedRuntime
- Overrides:
doNonTransactionalWork
in classRegistryManagedRuntime
- Parameters:
runnable
- The runnable wrapper for the work that will be done. The runnable object should be fully initialized with any state needed to execute.- Throws:
java.lang.RuntimeException
-
-