Apache CXF API

org.apache.cxf.jca.outbound
Class ManagedConnectionImpl

java.lang.Object
  extended by org.apache.cxf.jca.outbound.ManagedConnectionImpl
All Implemented Interfaces:
javax.resource.spi.ManagedConnection

public class ManagedConnectionImpl
extends Object
implements 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
ManagedConnectionImpl(ManagedConnectionFactoryImpl mcf, javax.resource.spi.ConnectionRequestInfo connReqInfo, Subject subject)
           
 
Method Summary
 void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
           
 void associateConnection(Object connection)
           
 void cleanup()
           
 void destroy()
           
 Object getConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
           
 javax.resource.spi.LocalTransaction getLocalTransaction()
           
 PrintWriter getLogWriter()
           
 ManagedConnectionFactoryImpl getManagedConnectionFactoryImpl()
           
 javax.resource.spi.ManagedConnectionMetaData getMetaData()
           
 javax.resource.spi.ConnectionRequestInfo getRequestInfo()
           
 XAResource getXAResource()
           
 void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
           
 void setLogWriter(PrintWriter out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedConnectionImpl

public ManagedConnectionImpl(ManagedConnectionFactoryImpl mcf,
                             javax.resource.spi.ConnectionRequestInfo connReqInfo,
                             Subject subject)
Method Detail

addConnectionEventListener

public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
Specified by:
addConnectionEventListener in interface javax.resource.spi.ManagedConnection

associateConnection

public void associateConnection(Object connection)
                         throws javax.resource.ResourceException
Specified by:
associateConnection in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

cleanup

public void cleanup()
             throws javax.resource.ResourceException
Specified by:
cleanup in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

destroy

public void destroy()
             throws javax.resource.ResourceException
Specified by:
destroy in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

getConnection

public Object getConnection(Subject subject,
                            javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
                     throws javax.resource.ResourceException
Specified by:
getConnection in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

getLocalTransaction

public javax.resource.spi.LocalTransaction getLocalTransaction()
                                                        throws javax.resource.ResourceException
Specified by:
getLocalTransaction in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

getLogWriter

public PrintWriter getLogWriter()
                         throws javax.resource.ResourceException
Specified by:
getLogWriter in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

getMetaData

public javax.resource.spi.ManagedConnectionMetaData getMetaData()
                                                         throws javax.resource.ResourceException
Specified by:
getMetaData in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

getXAResource

public XAResource getXAResource()
                         throws javax.resource.ResourceException
Specified by:
getXAResource in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

removeConnectionEventListener

public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
Specified by:
removeConnectionEventListener in interface javax.resource.spi.ManagedConnection

setLogWriter

public void setLogWriter(PrintWriter out)
                  throws javax.resource.ResourceException
Specified by:
setLogWriter in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

getRequestInfo

public javax.resource.spi.ConnectionRequestInfo getRequestInfo()

getManagedConnectionFactoryImpl

public ManagedConnectionFactoryImpl getManagedConnectionFactoryImpl()

Apache CXF API

Apache CXF