org.objectweb.joram.client.connector
Class ManagedQueueConnectionFactoryImpl
- javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation, java.io.Serializable, javax.resource.spi.ValidatingManagedConnectionFactory
public class ManagedQueueConnectionFactoryImpl
implements javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation, javax.resource.spi.ValidatingManagedConnectionFactory, java.io.Serializable
A ManagedQueueConnectionFactoryImpl
instance manages
PTP outbound connectivity to a given JORAM server.
- Serialized Form
Object | createConnectionFactory() - Method called in the non managed case for creating an
OutboundQueueConnectionFactory instance.
|
Object | createConnectionFactory(ConnectionManager cxManager) - Method called by an application server (managed case) for creating an
OutboundQueueConnectionFactory instance.
|
ManagedConnection | createManagedConnection(Subject subject, ConnectionRequestInfo cxRequest) - Creates a new PTP physical connection to the underlying JORAM server,
and returns a
ManagedConnectionImpl instance for a
managed environment.
|
boolean | equals(Object o) - Compares managed factories according to their configuration.
|
int | hashCode() - Returns a code depending on the managed factory configuration.
|
ManagedConnection | matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo cxRequest) - Finds a matching connection from the candidate set of connections and
returns a
ManagedConnectionImpl instance.
|
createConnectionFactory , createConnectionFactory , createManagedConnection , equals , getCnxPendingTimer , getCollocated , getConnectingTimer , getHostName , getInvalidConnections , getLogWriter , getPassword , getResourceAdapter , getServerPort , getTxPendingTimer , getUserName , hashCode , matchManagedConnections , setCollocated , setHostName , setLogWriter , setParameters , setPassword , setResourceAdapter , setServerPort , setUserName |
ManagedQueueConnectionFactoryImpl
public ManagedQueueConnectionFactoryImpl()
Constructs a ManagedQueueConnectionFactoryImpl
instance.
createConnectionFactory
public Object createConnectionFactory()
throws ResourceException
Method called in the non managed case for creating an
OutboundQueueConnectionFactory
instance.
- createConnectionFactory in interface ManagedConnectionFactoryImpl
createConnectionFactory
public Object createConnectionFactory(ConnectionManager cxManager)
throws ResourceException
Method called by an application server (managed case) for creating an
OutboundQueueConnectionFactory
instance.
- createConnectionFactory in interface ManagedConnectionFactoryImpl
cxManager
- Application server's connections pooling manager.
createManagedConnection
public ManagedConnection createManagedConnection(Subject subject,
ConnectionRequestInfo cxRequest)
throws ResourceException
Creates a new PTP physical connection to the underlying JORAM server,
and returns a ManagedConnectionImpl
instance for a
managed environment.
- createManagedConnection in interface ManagedConnectionFactoryImpl
subject
- Security data, not taken into account.cxRequest
- User identification data, may be null
.
equals
public boolean equals(Object o)
Compares managed factories according to their configuration.
- equals in interface ManagedConnectionFactoryImpl
hashCode
public int hashCode()
Returns a code depending on the managed factory configuration.
- hashCode in interface ManagedConnectionFactoryImpl
matchManagedConnections
public ManagedConnection matchManagedConnections(Set connectionSet,
Subject subject,
ConnectionRequestInfo cxRequest)
throws ResourceException
Finds a matching connection from the candidate set of connections and
returns a ManagedConnectionImpl
instance.
- matchManagedConnections in interface ManagedConnectionFactoryImpl
connectionSet
- Set of connections to test.subject
- Security data, not taken into account.cxRequest
- User identification data, may be null
.
Copyright B) 2004 Scalagent - All rights reserved