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 void
delistResource(ResourceHandle h, int xaresFlag)
delist theResourceHandle
from the transactionvoid
enlistResource(ResourceHandle handle)
Register theResourceHandle
in the transactionObject
getComponent()
Return null for System Resource.jakarta.transaction.Transaction
getTransaction()
Returns the transaction component is participating.void
registerResource(ResourceHandle handle)
Dont do any thing for System Resource.void
rollBackTransaction()
Set the transaction for rolling back.void
unregisterResource(ResourceHandle resource, int xaresFlag)
Dont do any thing for System Resource.
-
-
-
Method Detail
-
getTransaction
public jakarta.transaction.Transaction getTransaction() throws PoolingException
Returns the transaction component is participating.- Specified by:
getTransaction
in interfaceResourceManager
- Returns:
- Handle to the
Transaction
object. - Throws:
PoolingException
- If there is any error in getting the transaction
-
getComponent
public Object getComponent()
Return null for System Resource.- Specified by:
getComponent
in interfaceResourceManager
- Returns:
- object handle
-
enlistResource
public void enlistResource(ResourceHandle handle) throws PoolingException
Register theResourceHandle
in the transaction- Specified by:
enlistResource
in interfaceResourceManager
- Parameters:
handle
-ResourceHandle
object- 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:
registerResource
in interfaceResourceManager
- Parameters:
handle
- Resource to be registered.- Throws:
PoolingException
- If there is any error in registering.
-
rollBackTransaction
public void rollBackTransaction()
Description copied from interface:ResourceManager
Set the transaction for rolling back.- Specified by:
rollBackTransaction
in interfaceResourceManager
-
delistResource
public void delistResource(ResourceHandle h, int xaresFlag)
delist theResourceHandle
from the transaction- Specified by:
delistResource
in interfaceResourceManager
- Parameters:
h
-ResourceHandle
objectxaresFlag
- 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:
unregisterResource
in interfaceResourceManager
- Parameters:
resource
- Resource to be unregistered.xaresFlag
- XA Flag
-
-