ManagedConnectionFactory
public interface javax.resource.spi.ManagedConnectionFactory
- Note:
- Normally, applications do not use this class; it is intended for use by implementations of ConnectionManager.
WebSphere MQ classes for Java provides an implementation of this interface to ConnectionManagers. A ManagedConnectionFactory is used to construct ManagedConnections and to select suitable ManagedConnections from a set of candidates. For more details about this interface, see the J2EE Connector Architecture specification (refer to Sun's Web site at http://java.sun.com).
Methods
- createConnectionFactory
public Object createConnectionFactory()Throws ResourceException.
WebSphere MQ classes for Java does not currently support the createConnectionFactory methods. This method throws a javax.resource.NotSupportedException.
- createConnectionFactory
public Object createConnectionFactory ConnectionManager(cxManager)Throws ResourceException.
WebSphere MQ classes for Java does not currently support the createConnectionFactory methods. This method throws a javax.resource.NotSupportedException.
- createManagedConnection
public ManagedConnection createManagedConnection javax.security.auth.Subject(subject, ConnectionRequestInfo cxRequestInfo)Throws ResourceException.
Creates a new physical connection to a WebSphere MQ Queue Manager, and returns a ManagedConnection object that represents this connection. WebSphere MQ ignores the subject parameter.
- equals
public boolean equals(Object other)Checks whether this ManagedConnectionFactory is equal to another ManagedConnectionFactory. Returns true if both ManagedConnectionFactories describe the same target Queue Manager.
- getLogWriter
public java.io.PrintWriter getLogWriter()Throws ResourceException.
Returns the log writer for this ManagedConnectionFactory.
WebSphere MQ classes for Java does not currently use the log writer. See MQException.log for more information about logging.
- hashCode
public int hashCode()Returns the hash code for this ManagedConnectionFactory.
- matchManagedConnection
public ManagedConnection matchManagedConnection java.util.Set(connectionSet, javax.security.auth.Subject subject, ConnectionRequestInfo cxRequestInfo)Throws ResourceException.
Searches the supplied set of candidate ManagedConnections for an appropriate ManagedConnection. Returns either null, or a suitable ManagedConnection from the set that meets the criteria for connection.
- setLogWriter
public void setLogWriter java.io.PrintWriter(out)Throws ResourceException.
Sets the log writer for this ManagedConnectionFactory. When a ManagedConnection is created, it inherits the log writer from its ManagedConnectionFactory.
WebSphere MQ classes for Java does not currently use the log writer. See MQException.log for more information about logging.
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.