|
SAP NetWeaver 7.30 (SP02) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IConnectionFactory
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 |
|---|
IConnectorMetaData getMetaDataEx()
throws ConnectorException
ConnectorExceptionIConnectorMetaDatavoid setConnectionTimeOut(int msTimeOut)
msTimeOut - the time to wait in millisecondsint getConnectionTimeOut()
IConnectionSpec getConnectionSpec()
throws ConnectorException
ConnectorExceptionIConnectionSpec
IConnection getConnectionEx(IConnectionSpec connectionSpec)
throws ConnectionFailedException,
ConnectorException
connectionSpec - 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
resources
ConnectorExceptionIConnectionSpec,
IConnection| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] FRAMEWORK-EXT
|
[sap.com]
|
-
|
EP-CON-CF
|
[sap.com] FRAMEWORK-EXT
|
[sap.com]
|
default
|
EP-CON-CF
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/connectivityfw/api
|
api
|
EP-PIN
|
|
SAP NetWeaver 7.30 (SP02) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||