public abstract class IdocSenderImpl extends SapSenderBase
sender
that sends an IDoc to SAP.
N.B. The sending of the iDoc is committed right after the XA transaction is completed.paramList
log
Constructor and Description |
---|
IdocSenderImpl() |
Modifier and Type | Method and Description |
---|---|
protected String |
getFunctionName()
Listeners and IdocSenders don't use a functionName
|
protected com.sap.conn.idoc.IDocDocument |
parseIdoc(SapSystemImpl sapSystem,
Message message) |
SenderResult |
sendMessage(Message message,
PipeLineSession session)
Send a message to some destination (as configured in the Sender object).
|
addParameter, close, configure, getDestination, getParameterList, getSystem, getTid, open, setLuwHandleSessionKey, setSapSystemNameParam, setSynchronous
calculateStaticFieldIndices, closeFacade, findFieldIndex, functionCall2message, functionResult2message, getCorrelationIdFromField, 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, sendMessageOrThrow
getName, setName
getApplicationContext, getName
getConfigurationClassLoader
setApplicationContext
getDomain
protected com.sap.conn.idoc.IDocDocument parseIdoc(SapSystemImpl sapSystem, Message message) throws SenderException
SenderException
public SenderResult sendMessage(Message message, PipeLineSession session) throws SenderException, TimeoutException
ISender
configure()
method is called.
The following table shows the difference between synchronous and a-synchronous senders:
synchronous | a-synchronous | |
---|---|---|
ISender.isSynchronous() returns | true | false |
return value of sendMessage() is | the reply-message | the messageId of the message sent |
the correlationID specified with sendMessage() | may be ignored | is sent with the message |
a {link TimeOutException} | may be thrown if a timeout occurs waiting for a reply | should not be expected |
Multiple objects may try to call this method at the same time, from different threads.
Implementations of this method should therefore be thread-safe, or synchronized
.
SenderException
TimeoutException
protected String getFunctionName()
SapFunctionFacade
getFunctionName
in class SapFunctionFacade
Copyright © 2023 Frank!Framework. All rights reserved.