com.sap.aii.af.service.resource
Interface SAPAdapterResources
public interface SAPAdapterResources
The methods of this interface are intended to be invoked by SAP Adapters within the SAP Adapter Framework. In the
future adapters will have access to the methods defined in Sun's JCA 1.5 specification. Until that specification
becomes final and is implemented in the server adapters can use this class, which should partially fulfill the server
contract required in the specification by exposing some low level application server features to the resource adapter
writers.
Access to an instance of an implementation of this class should be retrieved via JNDI, using the lookup name
"SAPAdapterResources".
For example:
InitialContext ctx = new InitialContext();
SAPAdapterResources resources =
(SAPAdapterResources)ctx.lookup("SAPAdapterResources");
resources.startRunnable(myRunnable);
This fragment starts the execution of a thread that is supplied by the adapter developer (as long as it implements
the Runnable interface.
|
Method Summary |
com.sap.aii.af.service.util.transaction.api.TxManager |
getTransactionManager()
Retrieves an instance of the SAP Transaction Manager to be used by resource adapters instead of JTA. |
void |
startRunnable(Runnable runner)
Allows resource adapters to start their own threads. |
startRunnable
void startRunnable(Runnable runner)
- Allows resource adapters to start their own threads.
- Parameters:
runner - a runnable implementation provided by the resource adapter provider.
getTransactionManager
com.sap.aii.af.service.util.transaction.api.TxManager getTransactionManager()
- Retrieves an instance of the SAP Transaction Manager to be used by resource adapters instead of JTA.
- Returns:
- the transaction manager instance
This class can be accessed from:
|
SC
|
DC
|
Public Part
|
ACH
|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.af.svc.facade
|
api
|
BC-XI
|
Copyright 2014 SAP AG Complete Copyright Notice