public abstract class SapSenderBase extends SapFunctionFacade implements ISenderWithParameters
SapSystemImpl
to use; required when attribute sapSystemName
is emptyModifier and Type | Field and Description |
---|---|
protected ParameterList |
paramList |
log
Constructor and Description |
---|
SapSenderBase() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(Parameter p) |
void |
close()
Stop/close the sender and deallocate resources.
|
void |
configure()
configure() is called once at startup of the framework in the configure method of the owner of this sender. |
com.sap.conn.jco.JCoDestination |
getDestination(PipeLineSession session,
SapSystemImpl sapSystem) |
ParameterList |
getParameterList() |
SapSystemImpl |
getSystem(ParameterValueList pvl) |
String |
getTid(com.sap.conn.jco.JCoDestination destination,
SapSystemImpl sapSystem) |
void |
open()
This method will be called to start the sender.
|
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 the
SapSystem used by this object if the attribute sapSystemName is empty |
protected void |
setSynchronous(boolean b)
If
false , the sender operates in RR mode: the a reply is expected from SAP, and the sender does not participate in a transaction. |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
consumesSessionVariable
isSynchronous, sendMessage, sendMessageOrThrow
getName, setName
getApplicationContext, getName
getConfigurationClassLoader
setApplicationContext
getDomain
protected ParameterList paramList
public void configure() throws ConfigurationException
ISender
configure()
is called once at startup of the framework in the configure method of the owner of this sender.
Purpose of this method is to check whether the static configuration of the sender is correct.
As much as possible class-instantiating should take place in the configure()
or open()
method, to improve performance.configure
in interface IConfigurable
configure
in interface ISender
configure
in class SapFunctionFacade
ConfigurationException
public void open() throws SenderException
ISender
sendMessage()
method.open
in interface ISender
SenderException
public void close()
ISender
public SapSystemImpl getSystem(ParameterValueList pvl) throws SapException
SapException
public com.sap.conn.jco.JCoDestination getDestination(PipeLineSession session, SapSystemImpl sapSystem) throws SenderException, SapException, com.sap.conn.jco.JCoException
SenderException
SapException
com.sap.conn.jco.JCoException
public String getTid(com.sap.conn.jco.JCoDestination destination, SapSystemImpl sapSystem) throws SapException, com.sap.conn.jco.JCoException
SapException
com.sap.conn.jco.JCoException
public void addParameter(Parameter p)
addParameter
in interface IWithParameters
public ParameterList getParameterList()
getParameterList
in interface IWithParameters
public void setLuwHandleSessionKey(String string)
public void setSapSystemNameParam(String string)
SapSystem
used by this object if the attribute sapSystemName
is emptyprotected void setSynchronous(boolean b)
false
, the sender operates in RR mode: the a reply is expected from SAP, and the sender does not participate in a transaction. When false
, 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.Copyright © 2023 Frank!Framework. All rights reserved.