Package com.sun.enterprise.resource.rm
Class LazyEnlistableResourceManagerImpl
- java.lang.Object
-
- com.sun.enterprise.resource.rm.ResourceManagerImpl
-
- com.sun.enterprise.resource.rm.LazyEnlistableResourceManagerImpl
-
- All Implemented Interfaces:
ResourceManager
public class LazyEnlistableResourceManagerImpl extends ResourceManagerImpl
This class is used for lazy enlistment of a resource- Author:
- Aditya Gore
-
-
Constructor Summary
Constructors Constructor Description LazyEnlistableResourceManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidenlist(JavaEETransactionManager tm, jakarta.transaction.Transaction tran, ResourceHandle h)voidlazyEnlist(jakarta.resource.spi.ManagedConnection mc)This is called by the PoolManager (in turn by the LazyEnlistableConnectionManager) when a lazy enlistment is sought.voidregisterResource(ResourceHandle handle)Overridden to suspend lazyenlistment.-
Methods inherited from class com.sun.enterprise.resource.rm.ResourceManagerImpl
delistResource, enlistResource, getComponent, getTransaction, rollBackTransaction, unregisterResource
-
-
-
-
Method Detail
-
enlist
protected void enlist(JavaEETransactionManager tm, jakarta.transaction.Transaction tran, ResourceHandle h)
- Overrides:
enlistin classResourceManagerImpl
-
registerResource
public void registerResource(ResourceHandle handle) throws PoolingException
Overridden to suspend lazyenlistment.- Specified by:
registerResourcein interfaceResourceManager- Overrides:
registerResourcein classResourceManagerImpl- Parameters:
handle-- Throws:
PoolingException
-
lazyEnlist
public void lazyEnlist(jakarta.resource.spi.ManagedConnection mc) throws jakarta.resource.ResourceExceptionThis is called by the PoolManager (in turn by the LazyEnlistableConnectionManager) when a lazy enlistment is sought.- Parameters:
mc- ManagedConnection- Throws:
jakarta.resource.ResourceException
-
-