|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.rules.RuleServiceProvider | +--org.drools.jsr94.rules.RuleServiceProviderImpl | +--org.drools.jsr94.jca.spi.RuleConnectionFactory
ConnectionFactory provides an interface for getting connection to an EIS instance. An implementation of ConnectionFactory interface is provided by a resource adapter.
Application code looks up a ConnectionFactory instance from JNDI namespace and uses it to get EIS connections.
An implementation class for ConnectionFactory is required to implement java.io.Serializable and javax.resource.Referenceableinterfaces to support JNDI registration.
Constructor Summary | |
RuleConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf,
javax.resource.spi.ConnectionManager cm)
|
Method Summary | |
javax.resource.cci.Connection |
getConnection()
ConnectionFactory provides an interface for getting connection to an EIS instance. |
javax.resource.cci.Connection |
getConnection(javax.resource.cci.ConnectionSpec connectionSpec)
Gets a connection to an EIS instance. |
javax.resource.cci.ResourceAdapterMetaData |
getMetaData()
Gets metadata for the Resource Adapter. |
javax.resource.cci.RecordFactory |
getRecordFactory()
Gets a RecordFactory instance. |
javax.naming.Reference |
getReference()
Retrieves the Reference of this object. |
void |
setReference(javax.naming.Reference reference)
Sets the Reference instance. |
Methods inherited from class org.drools.jsr94.rules.RuleServiceProviderImpl |
getRuleAdministrator, getRuleRuntime |
Methods inherited from class javax.rules.RuleServiceProvider |
createInstance, setClassLoader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RuleConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm) throws javax.resource.ResourceException
Method Detail |
public javax.resource.cci.Connection getConnection() throws javax.resource.ResourceException
Application code looks up a ConnectionFactory instance from JNDI namespace and uses it to get EIS connections.
An implementation class for ConnectionFactory is required to implement java.io.Serializable and javax.resource.Referenceableinterfaces to support JNDI registration.
getConnection
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
public javax.resource.cci.Connection getConnection(javax.resource.cci.ConnectionSpec connectionSpec) throws javax.resource.ResourceException
It is important to note that the properties passed through the getConnection method should be client-specific (example: username, password, language) and not related to the configuration of a target EIS instance (example: port number, server name). The ManagedConnectionFactory instance is configured with complete set of properties required for the creation of a connection to an EIS instance.
getConnection
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
public javax.resource.cci.RecordFactory getRecordFactory() throws javax.resource.ResourceException
getRecordFactory
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
public javax.resource.cci.ResourceAdapterMetaData getMetaData() throws javax.resource.ResourceException
getMetaData
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
public void setReference(javax.naming.Reference reference)
setReference
in interface javax.resource.Referenceable
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |