com.sap.mw.jco.jra
Interface SAPConnectionFactory
- All Superinterfaces:
- ConnectionFactory, ConnectionSpecFactory, InteractionSpecFactory, Referenceable, Serializable
public interface SAPConnectionFactory
- extends ConnectionFactory, ConnectionSpecFactory, InteractionSpecFactory
This interface extension comprises several SAP extensions for SAP Java Resource Adapter.
For details see inherited interfaces.
The ConnectionFactory object returned from lookup also implements this
interface. So the cast on SAPConnectionSpecFactory will allow the application
developer to use methods defined in this interface.
Usage of this interface requires referencing the SAPJRA from your application
to compile and to runtime.
How to reference SAPJRA is described in documentation to SAPJRA.
SAP API Classification: - This interface is intended to be used only and may not be implemented by client code.
UNIT_ATTRIBUTE_CLIENT
static final String UNIT_ATTRIBUTE_CLIENT
- See Also:
- Constant Field Values
UNIT_ATTRIBUTE_KERNEL_TRACE
static final String UNIT_ATTRIBUTE_KERNEL_TRACE
- See Also:
- Constant Field Values
UNIT_ATTRIBUTE_UNIT_HISTORY
static final String UNIT_ATTRIBUTE_UNIT_HISTORY
- See Also:
- Constant Field Values
UNIT_ATTRIBUTE_LOCK
static final String UNIT_ATTRIBUTE_LOCK
- See Also:
- Constant Field Values
UNIT_ATTRIBUTE_COMMIT_CHECK
static final String UNIT_ATTRIBUTE_COMMIT_CHECK
- See Also:
- Constant Field Values
UNIT_ATTRIBUTE_USER
static final String UNIT_ATTRIBUTE_USER
- See Also:
- Constant Field Values
UNIT_ATTRIBUTE_PROGRAM_NAME
static final String UNIT_ATTRIBUTE_PROGRAM_NAME
- See Also:
- Constant Field Values
getConnection
@Deprecated
Connection getConnection(String destinationName)
throws ResourceException
- Deprecated. Not part of the official JCA specification. Will
not be supported any longer. Do not use.
- Gets a connection to an EIS instance using the configured destination.
Here all the necessary configuration - especially connection pooling - is made within Destination
Service. No explicit configuration of Resource Adapter or Connection Factory has to be done
Important to note that here connection pooling management is not done by Connector Container,
but by JCo ! With implementing this method there will be a JCo Client connection obtained and after call was
made it is given back to JCo (which put it back to JCo connection pool)
- Parameters:
destinationName - the RFC destination name as configured in the destinations service
- Returns:
- Connection instance
- Throws:
ResourceException - Failed to get a connection to the EIS instance.
getConnection
@Deprecated
Connection getConnection(String destinationName,
Map<SAPConnectionFactory.CustomDestinationProperty,String> customProperties)
throws ResourceException
- Deprecated. Not part of the official JCA specification. Will
not be supported any longer. Do not use.
- Gets a connection to an EIS instance using the configured destination.
Here all the necessary configuration - especially connection pooling - is made within Destination
Service. No explicit configuration of Resource Adapter or Connection Factory has to be done
Important to note that here connection pooling management is not done by Connector Container,
but by JCo ! With implementing this method there will be a JCo Client connection obtained and after call was
made it is given back to JCo (which put it back to JCo connection pool)
- Parameters:
destinationName - the RFC destination name as configured in the destinations servicecustomProperties - to pass additional properties for logon
- Returns:
- Connection instance
- Throws:
ResourceException - Failed to get a connection to the EIS instance.
getRecordFactory
@Deprecated
RecordFactory getRecordFactory(String destinationName)
throws ResourceException
- Deprecated. Not part of the official JCA specification. Will
not be supported any longer. Do not use.
- Gets a RecordFactory instance based on the passed destination. The RecordFactory is used for
creation of generic Record instances. The MetaData of the created Record instances will
be retrieved from the backend on that the passed destination points.
- Parameters:
destinationName - the RFC destination name as configured in the destinations service
- Returns:
- RecordFactory RecordFactory instance
- Throws:
ResourceException - Failed to create a RecordFactory
getUnitState
SAPConnectionFactory.BgRfcUnitState getUnitState(String unitID,
SAPConnectionFactory.BgRfcUnitType type)
throws ResourceException
- Returns the state of the unit with the given ID.
This API allows the client side to ask the server for the current state of a function unit.
Usually this API will be used after failure on the client side, if the state information for
particular units is missing.
- Parameters:
unitID - the unitID of the bgRFC calltype - the BgRfcUnitType of the bgRFC call
- Throws:
ResourceException - thrown if something went wrong during the confirmation
This class can be accessed from:
|
SC
|
DC
|
Public Part
|
ACH
|
[sap.com] ENGFACADE
|
[sap.com] tc/bl/jra/api
|
api
|
BC-JAS
|
Copyright 2011 SAP AG Complete Copyright Notice