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 void
enlist(JavaEETransactionManager tm, jakarta.transaction.Transaction tran, ResourceHandle h)
void
lazyEnlist(jakarta.resource.spi.ManagedConnection mc)
This is called by the PoolManager (in turn by the LazyEnlistableConnectionManager) when a lazy enlistment is sought.void
registerResource(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:
enlist
in classResourceManagerImpl
-
registerResource
public void registerResource(ResourceHandle handle) throws PoolingException
Overridden to suspend lazyenlistment.- Specified by:
registerResource
in interfaceResourceManager
- Overrides:
registerResource
in classResourceManagerImpl
- Parameters:
handle
-- Throws:
PoolingException
-
lazyEnlist
public void lazyEnlist(jakarta.resource.spi.ManagedConnection mc) throws jakarta.resource.ResourceException
This is called by the PoolManager (in turn by the LazyEnlistableConnectionManager) when a lazy enlistment is sought.- Parameters:
mc
- ManagedConnection- Throws:
jakarta.resource.ResourceException
-
-