|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XAResourceProducer
A XAResourceProducer
is a XAStatefulHolder
factory. It must be implemented by any class that is
able to produce pooled XA connections.
Method Summary | |
---|---|
void |
close()
Release this XAResourceProducer 's internal resources. |
XAStatefulHolder |
createPooledConnection(Object xaFactory,
ResourceBean bean)
Create a XAStatefulHolder that will be placed in an XAPool . |
void |
endRecovery()
Release internal resources held after call to startRecovery() . |
XAResourceHolder |
findXAResourceHolder(XAResource xaResource)
Find in the XAResourceHolder s created by this XAResourceProducer the one which this
XAResource belongs to. |
String |
getUniqueName()
Get the resource name as registered in the transactions journal. |
void |
init()
Initialize this XAResourceProducer 's internal resources. |
void |
setFailed(boolean failed)
Mark this resource producer as failed or not. |
XAResourceHolderState |
startRecovery()
Prepare the recoverable XAResource producer for recovery. |
Methods inherited from interface javax.naming.Referenceable |
---|
getReference |
Method Detail |
---|
String getUniqueName()
XAResourceHolderState startRecovery() throws RecoveryException
XAResource
producer for recovery.
XAResourceHolderState
object that can be used to call recover()
.
RecoveryException
- thrown when a XAResourceHolderState
cannot be acquired.void endRecovery() throws RecoveryException
startRecovery()
.
RecoveryException
- thrown when an error occured while releasing reserved resources.void setFailed(boolean failed)
failed
- true is the resource must be considered failed, false it it must be considered sane.XAResourceHolder findXAResourceHolder(XAResource xaResource)
XAResourceHolder
s created by this XAResourceProducer
the one which this
XAResource
belongs to.
xaResource
- the XAResource
to look for.
XAResourceHolder
or null if the XAResource
does not belong to this
XAResourceProducer
.void init()
XAResourceProducer
's internal resources.
void close()
XAResourceProducer
's internal resources.
XAStatefulHolder createPooledConnection(Object xaFactory, ResourceBean bean) throws Exception
XAStatefulHolder
that will be placed in an XAPool
.
xaFactory
- the vendor's resource-specific XA factory.bean
- the resource-specific bean describing the resource parameters.
XAStatefulHolder
that will be placed in an XAPool
.
Exception
- thrown when the XAStatefulHolder
cannot be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |