org.objectweb.joram.client.connector

Class ManagedTopicConnectionFactoryImpl

Implemented Interfaces:
javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation, java.io.Serializable, javax.resource.spi.ValidatingManagedConnectionFactory

public class ManagedTopicConnectionFactoryImpl
extends ManagedConnectionFactoryImpl
implements javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation, javax.resource.spi.ValidatingManagedConnectionFactory, java.io.Serializable

A ManagedTopicConnectionFactoryImpl instance manages PubSub outbound connectivity to a given JORAM server.

See Also:
Serialized Form

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

Object
createConnectionFactory()
Method called in the non managed case for creating an OutboundTopicConnectionFactory instance.
Object
createConnectionFactory(ConnectionManager cxManager)
Method called by an application server (managed case) for creating an OutboundTopicConnectionFactory instance.
ManagedConnection
createManagedConnection(Subject subject, ConnectionRequestInfo cxRequest)
Creates a new PubSub 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.

Methods inherited from class org.objectweb.joram.client.connector.ManagedConnectionFactoryImpl

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

Constructor Details

ManagedTopicConnectionFactoryImpl

public ManagedTopicConnectionFactoryImpl()
Constructs a ManagedTopicConnectionFactoryImpl instance.

Method Details

createConnectionFactory

public Object createConnectionFactory()
            throws ResourceException
Method called in the non managed case for creating an OutboundTopicConnectionFactory instance.
Overrides:
createConnectionFactory in interface ManagedConnectionFactoryImpl


createConnectionFactory

public Object createConnectionFactory(ConnectionManager cxManager)
            throws ResourceException
Method called by an application server (managed case) for creating an OutboundTopicConnectionFactory instance.
Overrides:
createConnectionFactory in interface ManagedConnectionFactoryImpl

Parameters:
cxManager - Application server's connections pooling manager.


createManagedConnection

public ManagedConnection createManagedConnection(Subject subject,
                                                 ConnectionRequestInfo cxRequest)
            throws ResourceException
Creates a new PubSub physical connection to the underlying JORAM server, and returns a ManagedConnectionImpl instance for a managed environment.
Overrides:
createManagedConnection in interface ManagedConnectionFactoryImpl

Parameters:
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.
Overrides:
equals in interface ManagedConnectionFactoryImpl


hashCode

public int hashCode()
Returns a code depending on the managed factory configuration.
Overrides:
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.
Overrides:
matchManagedConnections in interface ManagedConnectionFactoryImpl

Parameters:
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