FileDocCategorySizeDatePackage
ResourceManager.javaAPI DocGlassfish v2 API3831Fri May 04 22:35:14 BST 2007com.sun.enterprise.resource

ResourceManager

public interface ResourceManager
Interface definition for the Resource Manager. Depending on the ResourceSpec, PoolManager selects appropriate Resource Manager.
author
Binod PG

Fields Summary
Constructors Summary
Methods Summary
public voiddelistResource(ResourceHandle resource, int xaresFlag)
Delist the resource from the transaction.

param
h Resource to be delisted.

public voidenlistResource(ResourceHandle h)
Enlist the Resource handle to the transaction.

param
h Resource to be enlisted.
exception
PoolingException If there is any error in enlisting.

public java.lang.ObjectgetComponent()
Get the component involved in invocation. Returns null , if there is no component is involved in the current invocation.

return
object handle

public javax.transaction.TransactiongetTransaction()
Returns the current Transaction, resource should be dealing with.

return
An instance of Transaction object.
exception
PoolingException If there is any error in getting the transaction

public voidregisterResource(ResourceHandle handle)
Register the resource for a transaction's house keeping activities.

param
h Resource to be registered.
exception
PoolingException If there is any error in registering.

public voidrollBackTransaction()
Set the transaction for rolling back.

public voidunregisterResource(ResourceHandle resource, int xaresFlag)
Unregister the resource from a transaction's list.

param
h Resource to be unregistered.