public class NoTxResourceManagerImpl extends Object implements ResourceManager
| Constructor and Description |
|---|
NoTxResourceManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
delistResource(ResourceHandle resource,
int xaresFlag)
delist the
ResourceHandle from the transaction
This implementation of the method is expected to be a no-op |
void |
enlistResource(ResourceHandle h)
Enlist the
ResourceHandle in the transaction
This implementation of the method is expected to be a no-op |
Object |
getComponent()
Returns the component invoking resource request.
|
Transaction |
getTransaction()
Returns null since this connection is outside any tx context
|
void |
logFine(String message) |
void |
registerResource(ResourceHandle handle)
Register the
ResourceHandle in the transaction
This implementation of the method is expected to be a no-op |
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
This implementation of the method is expected to be a no-op |
public Transaction getTransaction() throws PoolingException
getTransaction in interface ResourceManagerPoolingException - when unable to get current transactionpublic Object getComponent()
getComponent in interface ResourceManagerpublic void enlistResource(ResourceHandle h) throws PoolingException
ResourceHandle in the transaction
This implementation of the method is expected to be a no-openlistResource in interface ResourceManagerh - ResourceHandle objectPoolingException - when unable to enlist resourcepublic void registerResource(ResourceHandle handle) throws PoolingException
ResourceHandle in the transaction
This implementation of the method is expected to be a no-opregisterResource in interface ResourceManagerhandle - ResourceHandle objectPoolingException - when unable to register resourcepublic void rollBackTransaction()
rollBackTransaction in interface ResourceManagerpublic void delistResource(ResourceHandle resource, int xaresFlag)
ResourceHandle from the transaction
This implementation of the method is expected to be a no-opdelistResource in interface ResourceManagerresource - ResourceHandle objectxaresFlag - flag indicating transaction success. This can
be XAResource.TMSUCCESS or XAResource.TMFAILpublic void unregisterResource(ResourceHandle resource, int xaresFlag)
ResourceHandle from the transaction
This implementation of the method is expected to be a no-opunregisterResource in interface ResourceManagerresource - ResourceHandle objectxaresFlag - flag indicating transaction success. This can
be XAResource.TMSUCCESS or XAResource.TMFAILpublic void logFine(String message)
Copyright © 2019. All rights reserved.