|
Joram ${version} | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.joram.client.connector.ManagedConnectionFactoryImpl
org.objectweb.joram.client.connector.ManagedQueueConnectionFactoryImpl
A ManagedQueueConnectionFactoryImpl instance manages
PTP outbound connectivity to a given JORAM server.
| Field Summary |
| Fields inherited from class org.objectweb.joram.client.connector.ManagedConnectionFactoryImpl |
cnxPendingTimer, connectingTimer, out, txPendingTimer |
| Constructor Summary | |
ManagedQueueConnectionFactoryImpl()
Constructs a ManagedQueueConnectionFactoryImpl instance. |
|
| Method Summary | |
java.lang.Object |
createConnectionFactory()
Method called in the non managed case for creating an OutboundQueueConnectionFactory instance. |
java.lang.Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
Method called by an application server (managed case) for creating an OutboundQueueConnectionFactory instance. |
javax.resource.spi.ManagedConnection |
createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequest)
Creates a new PTP physical connection to the underlying JORAM server, and returns a ManagedConnectionImpl instance for a
managed environment. |
boolean |
equals(java.lang.Object o)
Compares managed factories according to their configuration. |
int |
hashCode()
Returns a code depending on the managed factory configuration. |
javax.resource.spi.ManagedConnection |
matchManagedConnections(java.util.Set connectionSet,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequest)
Finds a matching connection from the candidate set of connections and returns a ManagedConnectionImpl instance. |
| Methods inherited from class org.objectweb.joram.client.connector.ManagedConnectionFactoryImpl |
getCnxPendingTimer, getCollocated, getConnectingTimer, getHostName, getInvalidConnections, getLogWriter, getPassword, getResourceAdapter, getServerPort, getTxPendingTimer, getUserName, setCollocated, setHostName, setLogWriter, setParameters, setPassword, setResourceAdapter, setServerPort, setUserName |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.resource.spi.ManagedConnectionFactory |
getLogWriter, setLogWriter |
| Methods inherited from interface javax.resource.spi.ResourceAdapterAssociation |
getResourceAdapter, setResourceAdapter |
| Methods inherited from interface javax.resource.spi.ValidatingManagedConnectionFactory |
getInvalidConnections |
| Constructor Detail |
public ManagedQueueConnectionFactoryImpl()
ManagedQueueConnectionFactoryImpl instance.
| Method Detail |
public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
throws javax.resource.ResourceException
OutboundQueueConnectionFactory instance.
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactorycreateConnectionFactory in class ManagedConnectionFactoryImplcxManager - Application server's connections pooling manager.
javax.resource.ResourceException - Never thrown.
public java.lang.Object createConnectionFactory()
throws javax.resource.ResourceException
OutboundQueueConnectionFactory instance.
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactorycreateConnectionFactory in class ManagedConnectionFactoryImpljavax.resource.ResourceException - Never thrown.
public javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequest)
throws javax.resource.ResourceException
ManagedConnectionImpl instance for a
managed environment.
createManagedConnection in interface javax.resource.spi.ManagedConnectionFactorycreateManagedConnection in class ManagedConnectionFactoryImplsubject - Security data, not taken into account.cxRequest - User identification data, may be null.
javax.resource.spi.CommException - If the JORAM server is not reachable.
javax.resource.spi.SecurityException - If the connecting is not allowed.
javax.jms.IllegalStateException - If the central Joram adapter state is
invalid.
javax.resource.ResourceException - If the provided user info is invalid,
or if connecting fails for any other
reason.
public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequest)
throws javax.resource.ResourceException
ManagedConnectionImpl instance.
matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactorymatchManagedConnections in class ManagedConnectionFactoryImplconnectionSet - Set of connections to test.subject - Security data, not taken into account.cxRequest - User identification data, may be null.
javax.resource.ResourceException - If the provided connection request info is
invalid.public int hashCode()
hashCode in interface javax.resource.spi.ManagedConnectionFactoryhashCode in class ManagedConnectionFactoryImplpublic boolean equals(java.lang.Object o)
equals in interface javax.resource.spi.ManagedConnectionFactoryequals in class ManagedConnectionFactoryImpl
|
Joram ${version} | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||