|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ManagedConnectionFactory
ManagedConnectionFactory instance is a factory of both ManagedConnection and EIS-specific connection factory instances. This interface supports connection pooling by providing methods for matching and creation of ManagedConnection instance. A ManagedConnectionFactory instance is required to be a JavaBean.
| Method Summary | |
|---|---|
Object |
createConnectionFactory()
Creates a Connection Factory instance. |
Object |
createConnectionFactory(ConnectionManager cxManager)
Creates a Connection Factory instance. |
ManagedConnection |
createManagedConnection(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. |
boolean |
equals(Object other)
Check if this ManagedConnectionFactory is equal to another ManagedConnectionFactory. |
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. |
int |
hashCode()
Returns the hash code for the ManagedConnectionFactory |
ManagedConnection |
matchManagedConnections(Set connectionSet,
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. |
void |
setLogWriter(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. |
| Method Detail |
|---|
Object createConnectionFactory(ConnectionManager cxManager)
throws ResourceException
cxManager - ConnectionManager to be associated with created
EIS connection factory instance
ResourceException - Generic exception
ResourceAdapterInternalException - Resource adapter related
error condition
Object createConnectionFactory()
throws ResourceException
ResourceException - Generic exception
ResourceAdapterInternalException - Resource adapter related
error condition
ManagedConnection createManagedConnection(Subject subject,
ConnectionRequestInfo cxRequestInfo)
throws ResourceException
subject - Caller's security informationcxRequestInfo - Additional resource adapter specific connection
request information
ResourceException - generic exception
SecurityException - security related error
ResourceAllocationException - failed to allocate system resources
for connection request
ResourceAdapterInternalException - resource adapter related
error condition
EISSystemException - internal error condition in EIS instance
ManagedConnection matchManagedConnections(Set connectionSet,
Subject subject,
ConnectionRequestInfo cxRequestInfo)
throws ResourceException
connectionSet - candidate connection setsubject - caller's security informationcxRequestInfo - additional resource adapter specific connection
request information
ResourceException - generic exception
SecurityException - security related error
ResourceAdapterInternalException - resource adapter related
error condition
NotSupportedException - if operation is not supported
void setLogWriter(PrintWriter out)
throws ResourceException
out - PrintWriter - an out stream for error logging and tracing
ResourceException - generic exception
ResourceAdapterInternalException - resource adapter related error
condition
PrintWriter getLogWriter()
throws ResourceException
PrintWriter
ResourceException - generic exceptionint hashCode()
hashCode in class Objectboolean equals(Object other)
equals in class Objectother -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||