|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbitronix.tm.resource.common.ResourceBean
bitronix.tm.resource.jms.PoolingConnectionFactory
Implementation of a JMS ConnectionFactory wrapping vendor's XAConnectionFactory implementation.
© Bitronix 2005, 2006, 2007
| Constructor Summary | |
PoolingConnectionFactory()
|
|
| Method Summary | |
void |
close()
Release this XAResourceProducer's internal resources. |
javax.jms.Connection |
createConnection()
|
javax.jms.Connection |
createConnection(java.lang.String userName,
java.lang.String password)
|
XAStatefulHolder |
createPooledConnection(java.lang.Object xaFactory,
ResourceBean bean)
Create a XAStatefulHolder that will be placed in an XAPool. |
XAResourceProducer |
createResource()
Create the resource wrapper described by this bean. |
void |
endRecovery()
Release internal resources held after call to startRecovery(). |
XAResourceHolder |
findXAResourceHolder(javax.transaction.xa.XAResource xaResource)
Find in the XAResourceHolders created by this XAResourceProducer the one which this
XAResource belongs to. |
boolean |
getCacheProducersConsumers()
|
java.lang.String |
getPassword()
|
javax.naming.Reference |
getReference()
PoolingConnectionFactory must alway have a unique name so this method builds a reference to this object
using the unique name as RefAddr. |
java.util.Properties |
getServerSessionPool()
|
boolean |
getTestConnections()
|
java.lang.String |
getUser()
|
void |
init()
Initialize the pool by creating the initial amount of connections. |
void |
setCacheProducersConsumers(boolean cacheProducersConsumers)
|
void |
setPassword(java.lang.String password)
|
void |
setServerSessionPool(java.util.Properties serverSessionPool)
|
void |
setTestConnections(boolean testConnections)
|
void |
setUser(java.lang.String user)
|
XAResourceHolderState |
startRecovery()
Prepare the recoverable XAResource producer for recovery. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface bitronix.tm.resource.common.XAResourceProducer |
getUniqueName |
| Constructor Detail |
public PoolingConnectionFactory()
| Method Detail |
public void init()
init in interface XAResourceProducerpublic XAResourceProducer createResource()
ResourceBean
createResource in class ResourceBeanpublic java.util.Properties getServerSessionPool()
public void setServerSessionPool(java.util.Properties serverSessionPool)
public boolean getCacheProducersConsumers()
public void setCacheProducersConsumers(boolean cacheProducersConsumers)
public boolean getTestConnections()
public void setTestConnections(boolean testConnections)
public java.lang.String getUser()
public void setUser(java.lang.String user)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public javax.jms.Connection createConnection()
throws javax.jms.JMSException
createConnection in interface javax.jms.ConnectionFactoryjavax.jms.JMSException
public javax.jms.Connection createConnection(java.lang.String userName,
java.lang.String password)
throws javax.jms.JMSException
createConnection in interface javax.jms.ConnectionFactoryjavax.jms.JMSExceptionpublic java.lang.String toString()
public XAResourceHolderState startRecovery()
XAResourceProducerXAResource producer for recovery.
startRecovery in interface XAResourceProducerXAResourceHolderState object that can be used to call recover().public void endRecovery()
XAResourceProducerstartRecovery().
endRecovery in interface XAResourceProducerpublic void close()
XAResourceProducerXAResourceProducer's internal resources.
close in interface XAResourceProducer
public XAStatefulHolder createPooledConnection(java.lang.Object xaFactory,
ResourceBean bean)
throws java.lang.Exception
XAResourceProducerXAStatefulHolder that will be placed in an XAPool.
createPooledConnection in interface XAResourceProducerxaFactory - the vendor's resource-specific XA factory.bean - the resource-specific bean describing the resource parameters.
XAStatefulHolder that will be placed in an XAPool.
java.lang.Exception - thrown when the XAStatefulHolder cannot be created.public XAResourceHolder findXAResourceHolder(javax.transaction.xa.XAResource xaResource)
XAResourceProducerXAResourceHolders created by this XAResourceProducer the one which this
XAResource belongs to.
findXAResourceHolder in interface XAResourceProducerxaResource - the XAResource to look for.
XAResourceHolder or null if the XAResource does not belong to this
XAResourceProducer.
public javax.naming.Reference getReference()
throws javax.naming.NamingException
PoolingConnectionFactory must alway have a unique name so this method builds a reference to this object
using the unique name as RefAddr.
getReference in interface javax.naming.ReferenceablePoolingConnectionFactory.
javax.naming.NamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||