public class ResourceManagerImpl extends Object implements ResourceManager
| Constructor and Description |
|---|
ResourceManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
delistResource(ResourceHandle resource,
int xaresFlag)
delist the
ResourceHandle from the transaction |
protected void |
enlist(JavaEETransactionManager tm,
Transaction tran,
ResourceHandle h) |
void |
enlistResource(ResourceHandle h)
Enlist the
ResourceHandle in the transaction |
Object |
getComponent()
Returns the component invoking resource request.
|
Transaction |
getTransaction()
Returns the transaction component is participating.
|
void |
registerResource(ResourceHandle handle)
Register the
ResourceHandle in the transaction |
void |
rollBackTransaction()
Get's the component's transaction and marks it for rolling back.
|
void |
unregisterResource(ResourceHandle resource,
int xaresFlag)
Unregister the
ResourceHandle from the transaction |
public Transaction getTransaction() throws PoolingException
getTransaction in interface ResourceManagerTransaction object.PoolingExceptionPoolingException - If there is any error in getting the
transactionpublic Object getComponent()
getComponent in interface ResourceManagerpublic void enlistResource(ResourceHandle h) throws PoolingException
ResourceHandle in the transactionenlistResource in interface ResourceManagerh - ResourceHandle objectPoolingExceptionPoolingException - If there is any error in enlisting.public void registerResource(ResourceHandle handle) throws PoolingException
ResourceHandle in the transactionregisterResource in interface ResourceManagerhandle - ResourceHandle objectPoolingExceptionPoolingException - If there is any error in registering.protected void enlist(JavaEETransactionManager tm, Transaction tran, ResourceHandle h) throws PoolingException
PoolingExceptionpublic void rollBackTransaction()
rollBackTransaction in interface ResourceManagerpublic void delistResource(ResourceHandle resource, int xaresFlag)
ResourceHandle from the transactiondelistResource in interface ResourceManagerresource - ResourceHandle objectxaresFlag - flag indicating transaction success. This can
be XAResource.TMSUCCESS or XAResource.TMFAILPoolingExceptionpublic void unregisterResource(ResourceHandle resource, int xaresFlag)
ResourceHandle from the transactionunregisterResource in interface ResourceManagerresource - ResourceHandle objectxaresFlag - flag indicating transaction success. This can
be XAResource.TMSUCCESS or XAResource.TMFAILPoolingExceptionCopyright © 2017. All rights reserved.