Methods Summary |
---|
public java.lang.Object | createConnectionFactory(ConnectionManager cxManager)Creates a Connection Factory instance. The Connection Factory
instance gets initialized with the passed ConnectionManager. In
the managed scenario, ConnectionManager is provided by the
application server.
|
public java.lang.Object | createConnectionFactory()Creates a Connection Factory instance. The Connection Factory
instance gets initialized with a default ConnectionManager provided
by the resource adapter.
|
public ManagedConnection | createManagedConnection(javax.security.auth.Subject subject, ConnectionRequestInfo cxRequestInfo)Creates a new physical connection to the underlying EIS
resource manager.
ManagedConnectionFactory uses the security information (passed as
Subject) and additional ConnectionRequestInfo (which is specific to
ResourceAdapter and opaque to application server) to create this new
connection.
|
public boolean | equals(java.lang.Object other)Check if this ManagedConnectionFactory is equal to another
ManagedConnectionFactory.
|
public java.io.PrintWriter | getLogWriter()Get the log writer for this ManagedConnectionFactory instance.
The log writer is a character output stream to which all logging and
tracing messages for this ManagedConnectionFactory instance will be
printed
ApplicationServer manages the association of output stream with the
ManagedConnectionFactory. When a ManagedConnectionFactory object is
created the log writer is initially null, in other words, logging is
disabled.
|
public int | hashCode()Returns the hash code for the ManagedConnectionFactory
|
public ManagedConnection | matchManagedConnections(java.util.Set connectionSet, javax.security.auth.Subject subject, ConnectionRequestInfo cxRequestInfo)Returns a matched connection from the candidate set of connections.
ManagedConnectionFactory uses the security info (as in Subject)
and information provided through ConnectionRequestInfo and additional
Resource Adapter specific criteria to do matching. Note that criteria
used for matching is specific to a resource adapter and is not
prescribed by the Connector specification.
This method returns a ManagedConnection instance that is the best
match for handling the connection allocation request.
|
public void | setLogWriter(java.io.PrintWriter out)Set the log writer for this ManagedConnectionFactory instance.
The log writer is a character output stream to which all logging and
tracing messages for this ManagedConnectionfactory instance will be
printed.
ApplicationServer manages the association of output stream with the
ManagedConnectionFactory. When a ManagedConnectionFactory object is
created the log writer is initially null, in other words, logging is
disabled. Once a log writer is associated with a
ManagedConnectionFactory, logging and tracing for
ManagedConnectionFactory instance is enabled.
The ManagedConnection instances created by ManagedConnectionFactory
"inherits" the log writer, which can be overridden by ApplicationServer
using ManagedConnection.setLogWriter to set ManagedConnection specific
logging and tracing.
|