biz.hammurapi.jms.adapter.jca
Class ManagedConnectionImpl

java.lang.Object
  extended by biz.hammurapi.jms.adapter.jca.ManagedConnectionImpl
All Implemented Interfaces:
javax.resource.spi.ManagedConnection

public class ManagedConnectionImpl
extends java.lang.Object
implements javax.resource.spi.ManagedConnection


Constructor Summary
ManagedConnectionImpl(ManagedConnectionFactoryImpl factory, java.lang.String productName, java.lang.String version, int maxConnections)
           
 
Method Summary
 void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
           
 void associateConnection(java.lang.Object connection)
           
 void cleanup()
           
 void close()
           
 void destroy()
           
 java.lang.Object get(java.lang.String name)
           
 java.lang.Object getConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
           
 javax.resource.spi.LocalTransaction getLocalTransaction()
           
 java.io.PrintWriter getLogWriter()
           
 javax.resource.spi.ManagedConnectionMetaData getMetaData()
           
 javax.transaction.xa.XAResource getXAResource()
           
 void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
           
 void setLogWriter(java.io.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 factory,
                             java.lang.String productName,
                             java.lang.String version,
                             int maxConnections)
                      throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException
Method Detail

getConnection

public java.lang.Object getConnection(javax.security.auth.Subject subject,
                                      javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
                               throws javax.resource.ResourceException
Specified by:
getConnection in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException
See Also:
ManagedConnection.getConnection(Subject, ConnectionRequestInfo)

destroy

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

close

public void close()

associateConnection

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

addConnectionEventListener

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

removeConnectionEventListener

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

getXAResource

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

getLocalTransaction

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

getMetaData

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

setLogWriter

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

getLogWriter

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

cleanup

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

get

public java.lang.Object get(java.lang.String name)


Copyright © 2006 Hammurapi Group. All Rights Reserved.