Class WASManagedRuntime.WASSynchronization

  extended by
Enclosing class:

static class WASManagedRuntime.WASSynchronization
extends Object

WASSynchronization wrapper. This class translates the WAS proprietary synchronization callback methods to javax.transaction.Synchronization methods.

This class implements the interface. Since SynchronizationCallback is not available at compile time we use Serp to add the interface to the class after all classes have been compiled.

SynchronizationCallback is expected to be available whenever this class is instantiated, therefore this class should only be used when running in WebSphere.

See Also:

Field Summary
(package private)  Synchronization _sync
Constructor Summary
WASManagedRuntime.WASSynchronization(Synchronization sync)
Method Summary
 void afterCompletion(int localTransactionId, byte[] globalTransactionId, boolean committed)
          AfterCompletion wrapper.
 void beforeCompletion(int arg0, byte[] arg1)
          BeforeCompletion wrapper.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


Synchronization _sync
Constructor Detail


WASManagedRuntime.WASSynchronization(Synchronization sync)
Method Detail


public void afterCompletion(int localTransactionId,
                            byte[] globalTransactionId,
                            boolean committed)
AfterCompletion wrapper. Translates the WAS proprietary call to a javax.transaction.Synchronization call.


public void beforeCompletion(int arg0,
                             byte[] arg1)
BeforeCompletion wrapper. Translates WAS proprietary call to a javax.transaction.Synchronization call.

Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.