|
SAP J2EE Engine Version 6.40 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
IConnectionFactory provides an interface for getting connection to an EIS instance. An implementation of IConnectionFactory interface is provided by a resource adapter. Application code looks up a IConnectionFactory instance from JNDI namespace and uses it to get EIS connections. SAP Connector Framwork IConnectionFactory extends JCA 1.0 to enable clients to get its Connection object and extended metadata.
| Method Summary | |
IConnection |
getConnectionEx(IConnectionSpec connectionSpec)
Gets a connection to an EIS instance. |
IConnectionSpec |
getConnectionSpec()
The interface IConnectionSpec is used by an application component to pass connection request-specific properties to the IConnectionFactory.getConnectionEx method. |
int |
getConnectionTimeOut()
Returns the maximum time to wait for a connection. |
IConnectorMetaData |
getMetaDataEx()
Gets metadata for the Resource Adapter. |
void |
setConnectionTimeOut(int msTimeOut)
Sets the maximum time to wait for a connection. |
| Methods inherited from interface javax.resource.cci.ConnectionFactory |
getConnection, getConnection, getMetaData, getRecordFactory |
| Methods inherited from interface javax.resource.Referenceable |
setReference |
| Methods inherited from interface javax.naming.Referenceable |
getReference |
| Method Detail |
public IConnectorMetaData getMetaDataEx()
throws ConnectorException
ConnectorException - IConnectorMetaDatapublic void setConnectionTimeOut(int msTimeOut)
msTimeOut - The time to wait in milliseconds.public int getConnectionTimeOut()
public IConnectionSpec getConnectionSpec()
throws ConnectorException
IConnectionSpec
public IConnection getConnectionEx(IConnectionSpec connectionSpec)
throws ConnectionFailedException,
ConnectorException
IConnectionSpec - Connection parameters and security information
specified as ConnectionSpec instance.ConnectionFailedException - Failed to get a connection to the EIS
instance. Examples of error cases are: Invalid specification of
input parameters Invalid configuration of
ManagedConnectionFactory-- example: invalid server name
Application server-internal error--example: connection pool
related error Communication error EIS-specific error--example:
EIS not active Resource adapter-internal error Security related
error; example: invalid user Failure to allocate system
resourcesIConnectionSpec,
IConnection
|
SAP J2EE Engine Version 6.40 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||