@Deprecated @ConfigurationWarning(value="Please change to JmsSender combined with BisWrapperPipe") public class BisJmsSender extends JmsSender
BisJmsListener
.
Configuration:
attributes | description | default |
---|---|---|
className | nl.nn.adapterframework.extensions.bis.BisSoapJmsSender | |
soap | when true , messages sent are put in a SOAP envelope | true |
responseXPath | xpath expression to extract the message from the reply which is passed to the pipeline. When soap=true the initial message is the content of the soap body. If empty, the content of the soap body is passed (without the root body) | |
responseNamespaceDefs | namespace defintions for responseXPath. Must be in the form of a comma or space separated list of prefix=namespaceuri -definitions | |
messageHeaderInSoapBody | when true , the MessageHeader of the request is put in the SOAP body instead of in the SOAP header (first one is the old BIS standard) | false |
resultInPayload | when true , the Result tag in the reply will be put in the payload (as last child in root tag) instead of in the SOAP body as sibling of the payload (last one is the old BIS standard) | true |
errorListSessionKey | key of session variable to store ErrorList in when Result/Status in the reply equals 'ERROR' | bisErrorList |
conversationIdSessionKey | key of session variable in which ConversationId is stored; used in the MessageHeader of the request | bisConversationId |
externalRefToMessageIdSessionKey | key of session variable in which ExternalRefToMessageId is stored; used in the MessageHeader of the request | bisExternalRefToMessageId |
requestNamespace | if not empty, this namespace is added to the request (this functionality will be used during migration from IFSA to TIBCO) | |
removeResponseNamespaces | when set true namespaces (and prefixes) in the response are removed (this functionality will be used during migration from IFSA to TIBCO) | false |
Constructor and Description |
---|
BisJmsSender()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
configure()
Deprecated.
Configures the sender
|
Message |
extractMessageBody(Message message,
Map<String,Object> context,
SoapWrapper soapWrapper)
Deprecated.
|
String |
getConversationIdSessionKey()
Deprecated.
|
String |
getErrorListSessionKey()
Deprecated.
|
String |
getExternalRefToMessageIdSessionKey()
Deprecated.
|
String |
getRequestNamespace()
Deprecated.
|
String |
getResponseNamespaceDefs()
Deprecated.
|
String |
getResponseXPath()
Deprecated.
|
boolean |
isMessageHeaderInSoapBody()
Deprecated.
|
boolean |
isRemoveResponseNamespaces()
Deprecated.
|
boolean |
isResultInPayload()
Deprecated.
|
SenderResult |
sendMessage(Message input,
PipeLineSession session)
Deprecated.
Send a message to some destination (as configured in the Sender object).
|
void |
setConversationIdSessionKey(String conversationIdSessionKey)
Deprecated.
|
void |
setErrorListSessionKey(String errorListSessionKey)
Deprecated.
|
void |
setExternalRefToMessageIdSessionKey(String externalRefToMessageIdSessionKey)
Deprecated.
|
void |
setMessageHeaderInSoapBody(boolean b)
Deprecated.
|
void |
setRemoveResponseNamespaces(boolean b)
Deprecated.
|
void |
setRequestNamespace(String requestNamespace)
Deprecated.
|
void |
setResponseNamespaceDefs(String responseNamespaceDefs)
Deprecated.
|
void |
setResponseXPath(String responseXPath)
Deprecated.
|
void |
setResultInPayload(boolean b)
Deprecated.
|
addParameter, getDestination, getParameterList, open, sendMessage, setDeliveryMode, setDestinationParam, setEncodingStyleURI, setLinkMethod, setMessageType, setPriority, setReplySoapHeaderSessionKey, setReplyTimeout, setReplyToName, setResponseHeadersToSessionKeys, setServiceNamespaceURI, setSoap, setSoapAction, setSoapHeaderParam, setSynchronous, toString
checkTransactionManagerValidity, close, closeSession, createMessage, createSession, extractMessage, getAcknowledgeModeEnum, getConnectionFactoryInfo, getConnectionFactoryName, getContext, getDestination, getDestination, getJmsMessagingSource, getLogPrefix, getManagedConnectionFactory, getMessageConsumer, getMessageConsumer, getMessageConsumerForCorrelationId, getMessageProducer, getMessagingSource, getMessagingSourceFactory, getPhysicalDestinationName, getPhysicalDestinationShortName, getPhysicalDestinationShortName, isSessionsArePooled, send, send, send, send, send, send, send, sendByQueue, sendByTopic, setAckMode, setAcknowledgeMode, setAuthAlias, setCorrelationIdMaxLength, setCorrelationIdToHex, setCorrelationIdToHexPrefix, setDestinationName, setDestinationType, setJmsTransacted, setLookupDestination, setMessageCorrelationID, setMessageSelector, setMessageTimeToLive, setPersistent, setQueueConnectionFactoryName, setSubscriberType, setTopicConnectionFactoryName, setTransacted, useJms102
getContext, getJndiEnv, setAuthentication, setCredentials, setInitialContextFactoryName, setJmsRealm, setJndiAuthAlias, setJndiContextPrefix, setJndiProperties, setName, setPrincipal, setProviderURL, setSecurityProtocol, setUrlPkgPrefixes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
consumesSessionVariable
close, isSynchronous, sendMessageOrThrow
getName, setName
getApplicationContext, getName
getConfigurationClassLoader
setApplicationContext
getDomain
isTransacted
public void configure() throws ConfigurationException
JmsSender
configure
in interface IConfigurable
configure
in interface ISender
configure
in class JmsSender
ConfigurationException
public Message extractMessageBody(Message message, Map<String,Object> context, SoapWrapper soapWrapper) throws TransformerException, IOException
extractMessageBody
in class JMSFacade
TransformerException
IOException
public SenderResult sendMessage(Message input, 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
.
sendMessage
in interface ISender
sendMessage
in class JmsSender
SenderException
TimeoutException
public void setResponseXPath(String responseXPath)
public String getResponseXPath()
public void setResponseNamespaceDefs(String responseNamespaceDefs)
public String getResponseNamespaceDefs()
public void setMessageHeaderInSoapBody(boolean b)
public boolean isMessageHeaderInSoapBody()
public void setResultInPayload(boolean b)
public boolean isResultInPayload()
public void setErrorListSessionKey(String errorListSessionKey)
public String getErrorListSessionKey()
public void setExternalRefToMessageIdSessionKey(String externalRefToMessageIdSessionKey)
public String getExternalRefToMessageIdSessionKey()
public void setConversationIdSessionKey(String conversationIdSessionKey)
public String getConversationIdSessionKey()
public void setRequestNamespace(String requestNamespace)
public String getRequestNamespace()
public void setRemoveResponseNamespaces(boolean b)
public boolean isRemoveResponseNamespaces()
Copyright © 2023 Frank!Framework. All rights reserved.