Package com.sun.enterprise.resource.rm
Class SystemResourceManagerImpl
- java.lang.Object
-
- com.sun.enterprise.resource.rm.SystemResourceManagerImpl
-
- All Implemented Interfaces:
ResourceManager
public class SystemResourceManagerImpl extends Object implements ResourceManager
SystemResourceManagerImpl manages the resource requests from system- Author:
- Binod PG
-
-
Constructor Summary
Constructors Constructor Description SystemResourceManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelistResource(ResourceHandle h, int xaresFlag)delist theResourceHandlefrom the transactionvoidenlistResource(ResourceHandle handle)Register theResourceHandlein the transactionObjectgetComponent()Return null for System Resource.jakarta.transaction.TransactiongetTransaction()Returns the transaction component is participating.voidregisterResource(ResourceHandle handle)Dont do any thing for System Resource.voidrollBackTransaction()Set the transaction for rolling back.voidunregisterResource(ResourceHandle resource, int xaresFlag)Dont do any thing for System Resource.
-
-
-
Method Detail
-
getTransaction
public jakarta.transaction.Transaction getTransaction() throws PoolingExceptionReturns the transaction component is participating.- Specified by:
getTransactionin interfaceResourceManager- Returns:
- Handle to the
Transactionobject. - Throws:
PoolingException- If there is any error in getting the transaction
-
getComponent
public Object getComponent()
Return null for System Resource.- Specified by:
getComponentin interfaceResourceManager- Returns:
- object handle
-
enlistResource
public void enlistResource(ResourceHandle handle) throws PoolingException
Register theResourceHandlein the transaction- Specified by:
enlistResourcein interfaceResourceManager- Parameters:
handle-ResourceHandleobject- Throws:
PoolingException- If there is any error in enlisting.
-
registerResource
public void registerResource(ResourceHandle handle) throws PoolingException
Dont do any thing for System Resource.- Specified by:
registerResourcein interfaceResourceManager- Parameters:
handle- Resource to be registered.- Throws:
PoolingException- If there is any error in registering.
-
rollBackTransaction
public void rollBackTransaction()
Description copied from interface:ResourceManagerSet the transaction for rolling back.- Specified by:
rollBackTransactionin interfaceResourceManager
-
delistResource
public void delistResource(ResourceHandle h, int xaresFlag)
delist theResourceHandlefrom the transaction- Specified by:
delistResourcein interfaceResourceManager- Parameters:
h-ResourceHandleobjectxaresFlag- flag indicating transaction success. This can be XAResource.TMSUCCESS or XAResource.TMFAIL
-
unregisterResource
public void unregisterResource(ResourceHandle resource, int xaresFlag)
Dont do any thing for System Resource.- Specified by:
unregisterResourcein interfaceResourceManager- Parameters:
resource- Resource to be unregistered.xaresFlag- XA Flag
-
-