Package org.apache.cxf.jca.outbound
Class ManagedConnectionImpl
java.lang.Object
org.apache.cxf.jca.outbound.ManagedConnectionImpl
- All Implemented Interfaces:
javax.resource.spi.ManagedConnection
Represents a "physical" connection to EIS, which provides access to target
web service. ManagedConnectionImpl creates connection handles for
applications to use the connection backed by this object.
-
Constructor Summary
ConstructorsConstructorDescriptionManagedConnectionImpl(ManagedConnectionFactoryImpl mcf, javax.resource.spi.ConnectionRequestInfo connReqInfo, Subject subject) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConnectionEventListener(javax.resource.spi.ConnectionEventListener listener) voidassociateConnection(Object connection) voidcleanup()voiddestroy()getConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) javax.resource.spi.LocalTransactionjavax.resource.spi.ManagedConnectionMetaDatajavax.resource.spi.ConnectionRequestInfovoidremoveConnectionEventListener(javax.resource.spi.ConnectionEventListener listener) voidsetLogWriter(PrintWriter out)
-
Constructor Details
-
ManagedConnectionImpl
public ManagedConnectionImpl(ManagedConnectionFactoryImpl mcf, javax.resource.spi.ConnectionRequestInfo connReqInfo, Subject subject)
-
-
Method Details
-
addConnectionEventListener
public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener) - Specified by:
addConnectionEventListenerin interfacejavax.resource.spi.ManagedConnection
-
associateConnection
- Specified by:
associateConnectionin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
cleanup
public void cleanup() throws javax.resource.ResourceException- Specified by:
cleanupin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
destroy
public void destroy() throws javax.resource.ResourceException- Specified by:
destroyin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
getConnection
public Object getConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException - Specified by:
getConnectionin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
getLocalTransaction
public javax.resource.spi.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException- Specified by:
getLocalTransactionin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
getLogWriter
- Specified by:
getLogWriterin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
getMetaData
public javax.resource.spi.ManagedConnectionMetaData getMetaData() throws javax.resource.ResourceException- Specified by:
getMetaDatain interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
getXAResource
- Specified by:
getXAResourcein interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
removeConnectionEventListener
public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener) - Specified by:
removeConnectionEventListenerin interfacejavax.resource.spi.ManagedConnection
-
setLogWriter
- Specified by:
setLogWriterin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
getRequestInfo
public javax.resource.spi.ConnectionRequestInfo getRequestInfo() -
getManagedConnectionFactoryImpl
-