|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.emp.cci.eci.ECIManagedConnectionFactory
The ECI Managed Connection Factory.
This class is the root of all connection management for both managed and unmanaged environments.
For a managed environment, an instance of this class is created
by the container, and it is used by that container to create
ConnectionFactory
s. This process is hidden from the
application.
For this environment, the application should deal with the
ConnectionFactory
obtained from a JNDI lookup.
For an unmanaged environment, the application is responsible for the construction and configuration of an object of this class. It is from this object that the application creates a connection factory and thus obtains a connection.
The default values for the properties of this object are:
Constructor Summary | |
ECIManagedConnectionFactory()
Default constructor. |
Method Summary | |
Object |
createConnectionFactory()
Create a connection factory using a default connection manager. |
Object |
createConnectionFactory(ConnectionManager connectionManager)
Create a connection factory. |
ManagedConnection |
createManagedConnection(Subject subject,
ConnectionRequestInfo cri)
This method is not useful in an unmanaged environment. |
boolean |
equals(Object other)
|
PrintWriter |
getLogWriter()
Get the destination for debug information. |
String |
getNameServiceHost()
Get the name of the host upon which the COD Name Service is located. |
Integer |
getNameServicePort()
Get the port number upon which the COS Name Service is listening. |
String |
getRegionName()
Get the name of the region to communicate with. |
int |
hashCode()
|
ManagedConnection |
matchManagedConnections(Set connectionSet,
Subject subject,
ConnectionRequestInfo cxRequestInfo)
This method is not useful in an unmanaged environment. |
void |
setLogWriter(PrintWriter out)
Set the destination for debug information. |
void |
setNameServiceHost(String nameServiceHost)
Set the name of the host upon which the COS Name Service is located. |
void |
setNameServicePort(Integer nameServicePort)
Set the port number upon which the COS Name Service is listening. |
void |
setRegionName(String regionName)
Set the name of the region to communicate with. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ECIManagedConnectionFactory()
Method Detail |
public void setRegionName(String regionName)
This name is that registered by the CCI Gateway in the COS Name Server.
regionName
- The name of the regionpublic String getRegionName()
public void setNameServiceHost(String nameServiceHost)
nameServiceHost
- The name of hostpublic String getNameServiceHost()
public void setNameServicePort(Integer nameServicePort)
nameServicePort
- The port numberpublic Integer getNameServicePort()
public Object createConnectionFactory(ConnectionManager connectionManager) throws ResourceException
createConnectionFactory
in interface ManagedConnectionFactory
connectionManager
- The connection manager controlling the
creation of connections.
ECIConnectionFactory
ResourceException
ECIConnectionFactory
public Object createConnectionFactory() throws ResourceException
createConnectionFactory
in interface ManagedConnectionFactory
ECIConnectionFactory
ResourceException
ECIConnectionFactory
public ManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo cri) throws ResourceException
createManagedConnection
in interface ManagedConnectionFactory
ResourceException
public ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException
matchManagedConnections
in interface ManagedConnectionFactory
ResourceException
public boolean equals(Object other)
equals
in interface ManagedConnectionFactory
equals
in class Object
public int hashCode()
hashCode
in interface ManagedConnectionFactory
hashCode
in class Object
public void setLogWriter(PrintWriter out) throws ResourceException
setLogWriter
in interface ManagedConnectionFactory
out
- The destination
ResourceException
public PrintWriter getLogWriter() throws ResourceException
getLogWriter
in interface ManagedConnectionFactory
ResourceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |