|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.connector.framework.util.JndiJCAObject com.stc.connector.framework.jca.system.STCManagedConnectionFactory
Class implementing the ManagedConnectionFactory interface. The 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.
Constructor Summary | |
STCManagedConnectionFactory()
Constructor for STCManagedConnectionFactory. |
Method Summary | |
java.lang.Object |
createConnectionFactory()
Creates a Connection Factory instance. |
java.lang.Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cm)
Creates a Connection Factory instance. |
STCPropertiesInfo |
createCRI()
Creates a new ConnectionRequestInfo instance out of the common properties in the ManagedConnectionFactory instance and the provided ConnectionRequestInfo instance. |
javax.resource.spi.ManagedConnection |
createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.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. |
void |
createMBean(java.lang.String mbeanClassName,
java.lang.String mbeanName)
Creates the MBean |
java.lang.String |
getApplicationConnectionFactoryClass()
Gets the value of the ApplicationConnectionFactoryClass property. |
java.lang.String |
getConfigurationInstance()
Gets the value of the ConfigurationInstance property. |
com.stc.configuration.IConfiguration |
getConfigurationModel()
Gets the configuration model for the instance of the ManagedConnectionFactory. |
java.lang.String |
getConfigurationTemplate()
Gets the value of the ConfigurationTemplate property. |
java.lang.String |
getEwayConnectionClass()
Gets the value of the EwayConnectionClass property. |
java.lang.String |
getEwayManagedConnectionMBeanClass()
Gets the value of the EwayMCFMBeanClass property. |
java.lang.String |
getEwayMCFDescription()
|
java.lang.String |
getEwayMCFMBeanClass()
Gets the value of the EwayMCFMBeanClass property. |
java.lang.String |
getEwayMCFMBeanName()
Gets the value of the EwayMCFMBeanName property. |
java.lang.String |
getEwayMCFName()
|
java.io.PrintWriter |
getLogWriter()
Get the log writer for this ManagedConnectionFactory instance. |
java.lang.Object |
getMBean()
Getter for ManagedConnectionFactory's MBean |
java.lang.String |
getProcessConfigurationParameters()
Gets the value of the ProcessConfigurationParameters property. |
javax.resource.spi.ManagedConnection |
matchManagedConnections(java.util.Set connectionSet,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
Returns a matched connection from the candidate set of connections. |
void |
setApplicationConnectionFactoryClass(java.lang.String className)
Sets the value of the ApplicationConnectionFactoryClass property. |
void |
setConfigurationInstance(java.lang.String configInstance)
Sets the value of the ConfigurationInstance property. |
void |
setConfigurationTemplate(java.lang.String configTemplate)
Sets the value of the ConfigurationTemplate property. |
void |
setEwayConnectionClass(java.lang.String className)
Sets the value of the EwayConnectionClass property. |
void |
setEwayManagedConnectionMBeanClass(java.lang.String className)
Sets the value of the EwayManagedConnMBeanClass property. |
void |
setEwayMCFDescription(java.lang.String asDescription)
|
void |
setEwayMCFMBeanClass(java.lang.String className)
Sets the value of the EwayMCFMBeanClass property. |
void |
setEwayMCFMBeanName(java.lang.String mbeanName)
Sets the value of the EwayMCFMBeanName property. |
void |
setEwayMCFName(java.lang.String asName)
|
void |
setLogWriter(java.io.PrintWriter out)
Set the log writer for this ManagedConnectionFactory instance. |
void |
setProcessConfigurationParameters(java.lang.String value)
Sets the value of the ProcessConfigurationParameters property. |
java.lang.String |
toString()
Gets the String-ified form of the ManagedConnectionFactory instance. |
Methods inherited from class com.stc.connector.framework.util.JndiJCAObject |
getReference, getVersion, setReference |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.resource.spi.ManagedConnectionFactory |
equals, hashCode |
Constructor Detail |
public STCManagedConnectionFactory()
Method Detail |
public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager cm) throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
cm
- ConnectionManager to be associated with created EIS
connection factory instance .
javax.resource.ResourceException
- upon error.public java.lang.Object createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
- upon error.public javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
createManagedConnection
in interface javax.resource.spi.ManagedConnectionFactory
subject
- The Subject provided by the container which may contain
credentials for authenticating to the EIS.cxRequestInfo
- The ConnectionRequestInfo containing information
which can be used for creating the EIS connection.
javax.resource.ResourceException
- upon error.public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
matchManagedConnections
in interface javax.resource.spi.ManagedConnectionFactory
connectionSet
- The candidate connection set.subject
- The Subject provided by the container which may contain
credentials for authenticating to the EIS.cxRequestInfo
- The ConnectionRequestInfo containing information
which can be used for creating the EIS connection.
javax.resource.ResourceException
- upon error.public void setLogWriter(java.io.PrintWriter out) throws javax.resource.ResourceException
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
out
- Character output stream associated with this
ManagedConnectionFactory instance.
javax.resource.ResourceException
- upon error.public java.io.PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
- upon error.public java.lang.String toString()
public com.stc.configuration.IConfiguration getConfigurationModel()
public java.lang.String getConfigurationTemplate()
public void setConfigurationTemplate(java.lang.String configTemplate) throws java.lang.Exception
configTemplate
- String containing the value to be assigned to
ConfigurationTemplate.
java.lang.Exception
- upon error.public java.lang.String getConfigurationInstance()
public void setConfigurationInstance(java.lang.String configInstance) throws java.lang.Exception
configInstance
- String containing the value to be assigned to
ConfigurationInstance.
java.lang.Exception
- upon error.public java.lang.String getEwayConnectionClass()
public void setEwayConnectionClass(java.lang.String className)
className
- String containing the value to be assigned to
EwayConnectionClass.public java.lang.String getApplicationConnectionFactoryClass()
public void setApplicationConnectionFactoryClass(java.lang.String className) throws java.lang.Exception
className
- String containing the value to be assigned to
ApplicationConnectionFactoryClass.
java.lang.Exception
- upon error.public java.lang.String getProcessConfigurationParameters()
public void setProcessConfigurationParameters(java.lang.String value) throws java.lang.Exception
java.lang.Exception
- upon error.public STCPropertiesInfo createCRI()
public void setEwayMCFMBeanClass(java.lang.String className) throws java.lang.Exception
className
- String containing the value to be assigned to
EwayMCFMBeanClass.
java.lang.Exception
- upon error.public java.lang.String getEwayMCFMBeanClass()
public void setEwayMCFMBeanName(java.lang.String mbeanName) throws java.lang.Exception
java.lang.Exception
- upon error.public java.lang.String getEwayMCFMBeanName()
public void setEwayManagedConnectionMBeanClass(java.lang.String className) throws java.lang.Exception
className
- String containing the value to be assigned to
EwayManagedConnMBeanClass.
java.lang.Exception
- upon error.public java.lang.String getEwayManagedConnectionMBeanClass()
public void setEwayMCFName(java.lang.String asName) throws java.lang.Exception
java.lang.Exception
public java.lang.String getEwayMCFName()
public void setEwayMCFDescription(java.lang.String asDescription) throws java.lang.Exception
java.lang.Exception
public java.lang.String getEwayMCFDescription()
public java.lang.Object getMBean()
getMBean
in interface STCManagedMaster
public void createMBean(java.lang.String mbeanClassName, java.lang.String mbeanName) throws STCCreateMBeanException
createMBean
in interface STCManagedMaster
mbeanClassName
- classname of MBean impl classmbeanName
- name of MBean
STCCreateMBeanException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |