|
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.ManagedTopicConnectionFactoryImpl
A ManagedTopicConnectionFactoryImpl
instance manages
PubSub 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 | |
ManagedTopicConnectionFactoryImpl()
Constructs a ManagedTopicConnectionFactoryImpl instance. |
Method Summary | |
java.lang.Object |
createConnectionFactory()
Method called in the non managed case for creating an OutboundTopicConnectionFactory instance. |
java.lang.Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
Method called by an application server (managed case) for creating an OutboundTopicConnectionFactory instance. |
javax.resource.spi.ManagedConnection |
createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequest)
Creates a new PubSub 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 ManagedTopicConnectionFactoryImpl()
ManagedTopicConnectionFactoryImpl
instance.
Method Detail |
public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager) throws javax.resource.ResourceException
OutboundTopicConnectionFactory
instance.
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
createConnectionFactory
in class ManagedConnectionFactoryImpl
cxManager
- Application server's connections pooling manager.
javax.resource.ResourceException
- Never thrown.public java.lang.Object createConnectionFactory() throws javax.resource.ResourceException
OutboundTopicConnectionFactory
instance.
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
createConnectionFactory
in class ManagedConnectionFactoryImpl
javax.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.ManagedConnectionFactory
createManagedConnection
in class ManagedConnectionFactoryImpl
subject
- 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.ManagedConnectionFactory
matchManagedConnections
in class ManagedConnectionFactoryImpl
connectionSet
- 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.ManagedConnectionFactory
hashCode
in class ManagedConnectionFactoryImpl
public boolean equals(java.lang.Object o)
equals
in interface javax.resource.spi.ManagedConnectionFactory
equals
in class ManagedConnectionFactoryImpl
|
Joram ${version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |