com.sun.enterprise.transaction.spi
Interface TransactionalResource
public interface TransactionalResource
TransactionalResource interface to be implemented by the resource handlers
to be able to communicate with used the transaction manager components
- Author:
- Marina Vatkina
isTransactional
boolean isTransactional()
isEnlistmentSuspended
boolean isEnlistmentSuspended()
getXAResource
XAResource getXAResource()
supportsXA
boolean supportsXA()
getComponentInstance
java.lang.Object getComponentInstance()
setComponentInstance
void setComponentInstance(java.lang.Object instance)
closeUserConnection
void closeUserConnection()
throws java.lang.Exception
- Throws:
java.lang.Exception
isEnlisted
boolean isEnlisted()
isShareable
boolean isShareable()
destroyResource
void destroyResource()
getName
java.lang.String getName()
- Returns:
- the String that can identify this resource
enlistedInTransaction
void enlistedInTransaction(Transaction tran)
throws java.lang.IllegalStateException
- Indicates that a resource has been enlisted in the transaction.
- Parameters:
tran - Transaction to which the resource is enlisted
- Throws:
java.lang.IllegalStateException - when unable to enlist the resource
Copyright © 2012 GlassFish Community. All Rights Reserved.