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
SapSystemImpl
to use; required when attributesapSystemName
is empty
-
Field Summary
FieldsFields inherited from class org.frankframework.extensions.sap.jco3.SapFunctionFacade
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Configure this component.com.sap.conn.jco.JCoDestination
getDestination
(PipeLineSession session, SapSystemImpl sapSystem) getTid
(com.sap.conn.jco.JCoDestination destination, SapSystemImpl sapSystem) void
setLuwHandleSessionKey
(String string) Session key in which LUW information is stored.void
setSapSystemNameParam
(String string) Name of the parameter used to indicate the name of theSapSystem
used by this object if the attributesapSystemName
is emptyprotected 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.void
start()
This method will be called to start the sender.void
stop()
Stop/close the sender and deallocate resources.Methods inherited from class org.frankframework.extensions.sap.jco3.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, setSapSystemName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
Methods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoader
Methods inherited from interface org.frankframework.core.HasPhysicalDestination
getDomain
Methods inherited from interface org.frankframework.core.ISender
isSynchronous, sendMessage, sendMessageOrThrow
Methods inherited from interface org.frankframework.core.ISenderWithParameters
consumesSessionVariable
-
Field Details
-
paramList
-
-
Constructor Details
-
SapSenderBase
public SapSenderBase()
-
-
Method Details
-
configure
Description copied from interface:IConfigurable
Configure 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:
configure
in interfaceIConfigurable
- Overrides:
configure
in classSapFunctionFacade
- Throws:
ConfigurationException
- in case it was not able to configure the component.
-
start
public void start()Description copied from interface:ISender
This 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
public void stop()Description copied from interface:ISender
Stop/close the sender and deallocate resources. -
getSystem
- Throws:
SapException
-
getDestination
public com.sap.conn.jco.JCoDestination getDestination(PipeLineSession session, SapSystemImpl sapSystem) throws SenderException, SapException, com.sap.conn.jco.JCoException - Throws:
SenderException
SapException
com.sap.conn.jco.JCoException
-
getTid
public String getTid(com.sap.conn.jco.JCoDestination destination, SapSystemImpl sapSystem) throws SapException, com.sap.conn.jco.JCoException - Throws:
SapException
com.sap.conn.jco.JCoException
-
addParameter
- Specified by:
addParameter
in interfaceIWithParameters
-
getParameterList
- Specified by:
getParameterList
in 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
Name of the parameter used to indicate the name of theSapSystem
used by this object if the attributesapSystemName
is empty- Default value
- sapSystemName
-
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
-