|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.genericra.outbound.ManagedConnection
public class ManagedConnection
Represents the ManagedConnection of the Generic JMS resource
adapter.
| Constructor Summary | |
|---|---|
ManagedConnection(AbstractManagedConnectionFactory factory,
javax.resource.spi.security.PasswordCredential pc,
ConnectionRequestInfo info,
javax.jms.Connection physicalCon)
|
|
| Method Summary | |
|---|---|
void |
addConnectionEventListener(javax.resource.spi.ConnectionEventListener cel)
Adds a connection event listener to the ManagedConnection instance. |
void |
associateConnection(java.lang.Object connectionHandle)
|
boolean |
canSessionsBeCreated()
|
void |
cleanup()
Application server calls this method to force any cleanup on the ManagedConnection instance. |
javax.jms.Session |
createLocalSession(boolean transacted,
int acknowledgeMode,
int sessionType)
|
void |
destroy()
Destroys the physical connection to the underlying resource manager. |
java.lang.Object |
getConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
|
javax.resource.spi.LocalTransaction |
getLocalTransaction()
|
java.io.PrintWriter |
getLogWriter()
|
java.lang.Object |
getManagedConnectionFactory()
|
javax.resource.spi.ManagedConnectionMetaData |
getMetaData()
|
javax.resource.spi.security.PasswordCredential |
getPasswordCredential()
|
javax.jms.Connection |
getPhysicalConnection()
|
javax.jms.Session |
getPhysicalJMSSession(boolean transacted,
int ack,
int sessionType)
|
javax.transaction.xa.XAResource |
getXAResource()
|
boolean |
isDestroyed()
|
boolean |
isTransactionInProgress()
|
void |
isValid()
|
void |
removeConnectionEventListener(javax.resource.spi.ConnectionEventListener cel)
|
void |
sendConnectionClosedEvent(ConnectionHandle handle)
|
void |
sendConnectionErrorEvent(ConnectionHandle handle)
|
void |
sendConnectionEvent(int eventType,
java.lang.Exception ex)
|
void |
sendConnectionEvent(int eventType,
java.lang.Exception ex,
java.lang.Object connectionHandle)
|
void |
setLogWriter(java.io.PrintWriter pw)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ManagedConnection(AbstractManagedConnectionFactory factory,
javax.resource.spi.security.PasswordCredential pc,
ConnectionRequestInfo info,
javax.jms.Connection physicalCon)
throws javax.resource.ResourceException
javax.resource.ResourceException| Method Detail |
|---|
public javax.jms.Session getPhysicalJMSSession(boolean transacted,
int ack,
int sessionType)
throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.Session createLocalSession(boolean transacted,
int acknowledgeMode,
int sessionType)
throws javax.jms.JMSException
javax.jms.JMSException
public void cleanup()
throws javax.resource.ResourceException
ManagedConnection instance. This method calls the
invalidate method on all logical connection handles associated with this
ManagedConnection.
cleanup in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException - if the physical connection is no more valid
public void destroy()
throws javax.resource.ResourceException
destroy in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException - if there is an error in closing the physical connection
public java.io.PrintWriter getLogWriter()
throws javax.resource.ResourceException
getLogWriter in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public void setLogWriter(java.io.PrintWriter pw)
throws javax.resource.ResourceException
setLogWriter in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public void associateConnection(java.lang.Object connectionHandle)
throws javax.resource.ResourceException
associateConnection in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic void addConnectionEventListener(javax.resource.spi.ConnectionEventListener cel)
addConnectionEventListener in interface javax.resource.spi.ManagedConnectionlistener - ConnectionEventListenerremoveConnectionEventListenerpublic void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener cel)
removeConnectionEventListener in interface javax.resource.spi.ManagedConnection
public void sendConnectionEvent(int eventType,
java.lang.Exception ex)
public void sendConnectionEvent(int eventType,
java.lang.Exception ex,
java.lang.Object connectionHandle)
public javax.resource.spi.LocalTransaction getLocalTransaction()
throws javax.resource.ResourceException
getLocalTransaction in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public javax.resource.spi.ManagedConnectionMetaData getMetaData()
throws javax.resource.ResourceException
getMetaData in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public javax.transaction.xa.XAResource getXAResource()
throws javax.resource.ResourceException
getXAResource in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public java.lang.Object getConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
throws javax.resource.ResourceException
getConnection in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic boolean isTransactionInProgress()
public javax.jms.Connection getPhysicalConnection()
public java.lang.Object getManagedConnectionFactory()
public boolean isDestroyed()
public void isValid()
throws javax.resource.ResourceException
javax.resource.ResourceExceptionpublic javax.resource.spi.security.PasswordCredential getPasswordCredential()
public boolean canSessionsBeCreated()
public void sendConnectionClosedEvent(ConnectionHandle handle)
handle - public void sendConnectionErrorEvent(ConnectionHandle handle)
handle - public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||