public interface ResourceManager
Modifier and Type | Method and Description |
---|---|
void |
delistResource(ResourceHandle resource,
int xaresFlag)
Delist the resource from the transaction.
|
void |
enlistResource(ResourceHandle h)
Enlist the Resource handle to the transaction.
|
Object |
getComponent()
Get the component involved in invocation.
|
Transaction |
getTransaction()
Returns the current Transaction, resource should be dealing with.
|
void |
registerResource(ResourceHandle handle)
Register the resource for a transaction's house keeping activities.
|
void |
rollBackTransaction()
Set the transaction for rolling back.
|
void |
unregisterResource(ResourceHandle resource,
int xaresFlag)
Unregister the resource from a transaction's list.
|
Transaction getTransaction() throws PoolingException
PoolingException
- If there is any error in getting the
transactionObject getComponent()
void enlistResource(ResourceHandle h) throws PoolingException
h
- Resource to be enlisted.PoolingException
- If there is any error in enlisting.void registerResource(ResourceHandle handle) throws PoolingException
handle
- Resource to be registered.PoolingException
- If there is any error in registering.void rollBackTransaction()
void delistResource(ResourceHandle resource, int xaresFlag)
resource
- Resource to be delisted.xaresFlag
- XA Flagvoid unregisterResource(ResourceHandle resource, int xaresFlag)
resource
- Resource to be unregistered.xaresFlag
- XA FlagCopyright © 2021. All rights reserved.