Class SapSenderBase
java.lang.Object
org.frankframework.extensions.sap.jco3.SapFunctionFacade
org.frankframework.extensions.sap.jco3.SapSenderBase
- All Implemented Interfaces:
FrankElement, HasApplicationContext, HasName, HasPhysicalDestination, IConfigurable, IScopeProvider, ISender, ISenderWithParameters, IWithParameters, NameAware, ISapFunctionFacade, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
IdocSenderImpl, SapSenderImpl
Base class for functions that call SAP.
- Since:
- 5.0
- Author:
- Gerrit van Brakel, Jaco de Groot
- Specific parameters
- sapSystemName points to
SapSystemImplto use; required when attributesapSystemNameis empty
-
Field Summary
FieldsFields inherited from class SapFunctionFacade
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidConfigure this component.com.sap.conn.jco.JCoDestinationgetDestination(PipeLineSession session, SapSystemImpl sapSystem) @NonNull ParameterListgetTid(com.sap.conn.jco.JCoDestination destination, SapSystemImpl sapSystem) voidsetLuwHandleSessionKey(String string) Session key in which LUW information is stored.voidsetSapSystemNameParam(String string) Name of the parameter used to indicate the name of theSapSystemused by this object if the attributesapSystemNameis emptyprotected voidsetSynchronous(boolean b) Iffalse, the sender operates in RR mode: the a reply is expected from SAP, and the sender does not participate in a transaction.voidstart()This method will be called to start the sender.voidstop()Stop/close the sender and deallocate resources.Methods inherited from class SapFunctionFacade
calculateStaticFieldIndices, closeFacade, findFieldIndex, functionCall2message, functionResult2message, getCorrelationIdFromField, getFunctionName, getFunctionTemplate, getFunctionTemplate, getLogPrefix, getPhysicalDestinationName, getSapSystem, getSapSystem, message2FunctionCall, message2FunctionResult, openFacade, setCorrelationIdFieldIndex, setCorrelationIdFieldName, setName, setParameters, setReplyFieldIndex, setReplyFieldName, setRequestFieldIndex, setRequestFieldName, setSapSystemNameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface FrankElement
addConfigWarningMethods inherited from interface HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface ISender
isSynchronous, sendMessage, sendMessageOrThrowMethods inherited from interface ISenderWithParameters
consumesSessionVariable
-
Field Details
-
paramList
-
-
Constructor Details
-
SapSenderBase
public SapSenderBase()
-
-
Method Details
-
configure
Description copied from interface:IConfigurableConfigure this component.configure()is called once at startup of the framework in the configure method of the owner of thisIConfigurable. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in theconfigure(), to improve performance.In the case of a container, this will propagate the configure signal to all components that apply.
- Specified by:
configurein interfaceIConfigurable- Overrides:
configurein classSapFunctionFacade- Throws:
ConfigurationException- in case it was not able to configure the component.
-
start
public void start()Description copied from interface:ISenderThis method will be called to start the sender. After this method is called the sendMessage method may be called. Purpose of this method is to reduce creating connections to databases etc. in thesendMessage()method. -
stop
-
getSystem
- Throws:
SapException
-
getDestination
public com.sap.conn.jco.JCoDestination getDestination(PipeLineSession session, SapSystemImpl sapSystem) throws SenderException, SapException, com.sap.conn.jco.JCoException - Throws:
SenderExceptionSapExceptioncom.sap.conn.jco.JCoException
-
getTid
public String getTid(com.sap.conn.jco.JCoDestination destination, SapSystemImpl sapSystem) throws SapException, com.sap.conn.jco.JCoException - Throws:
SapExceptioncom.sap.conn.jco.JCoException
-
addParameter
- Specified by:
addParameterin interfaceIWithParameters
-
getParameterList
- Specified by:
getParameterListin interfaceIWithParameters
-
setLuwHandleSessionKey
Session key in which LUW information is stored. If set, actions that share a LUW-handle will be executed using the same destination. Can only be used for synchronous functions -
setSapSystemNameParam
-
setSynchronous
protected void setSynchronous(boolean b) Iffalse, the sender operates in RR mode: the a reply is expected from SAP, and the sender does not participate in a transaction. Whenfalse, the sender operates in FF mode: no reply is expected from SAP, and the sender joins the transaction, that must be present. The SAP transaction is committed right after the XA transaction is completed.- Default value
- false
-