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 ResourceManager
PoolingException
- when unable to get current transactionpublic Object getComponent()
getComponent
in interface ResourceManager
public void enlistResource(ResourceHandle h) throws PoolingException
ResourceHandle
in the transaction
This implementation of the method is expected to be a no-openlistResource
in interface ResourceManager
h
- 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 ResourceManager
handle
- ResourceHandle
objectPoolingException
- when unable to register resourcepublic void rollBackTransaction()
rollBackTransaction
in interface ResourceManager
public void delistResource(ResourceHandle resource, int xaresFlag)
ResourceHandle
from the transaction
This implementation of the method is expected to be a no-opdelistResource
in interface ResourceManager
resource
- 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 ResourceManager
resource
- ResourceHandle
objectxaresFlag
- flag indicating transaction success. This can
be XAResource.TMSUCCESS or XAResource.TMFAILpublic void logFine(String message)
Copyright © 2018. All rights reserved.