@Deprecated @ConfigurationWarning(value="Please change to JmsListener combined with BisWrapperPipe") public class BisJmsListener extends JmsListener
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<bis:MessageHeader xmlns:bis="http://www.ing.com/CSP/XSD/General/Message_2">
<bis:From>
<bis:Id>PolicyConversion_01_ServiceAgents_01</bis:Id>
</bis:From>
<bis:HeaderFields>
<bis:ConversationId>1790257_10000050_04</bis:ConversationId>
<bis:MessageId>1790257</bis:MessageId>
<bis:Timestamp>2011-03-02T10:26:31.464+01:00</bis:Timestamp>
</bis:HeaderFields>
</bis:MessageHeader>
</soap:Header>
<soap:Body>
<pcr:GetRequest xmlns:pcr="http://www.ing.com/nl/pcretail/ts/migrationauditdata_01">
<pcr:PolicyDetails>
<pcr:RVS_PARTY_ID>1790257</pcr:RVS_PARTY_ID>
<pcr:RVS_POLICY_NUMBER>10000050</pcr:RVS_POLICY_NUMBER>
<pcr:RVS_BRANCH_CODE>04</pcr:RVS_BRANCH_CODE>
</pcr:PolicyDetails>
</pcr:GetRequest>
</soap:Body>
</soap:Envelope>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<bis:MessageHeader xmlns:bis="http://www.ing.com/CSP/XSD/General/Message_2">
<bis:From>
<bis:Id>IJA_DB4CONV</bis:Id>
</bis:From>
<bis:HeaderFields>
<bis:ConversationId>1790257_10000050_04</bis:ConversationId>
<bis:MessageId>rn09ce_0a3b8d2d--33192359_12e588118c1_-612f</bis:MessageId>
<bis:ExternalRefToMessageId>1790257</bis:ExternalRefToMessageId>
<bis:Timestamp>2011-03-02T10:26:31</bis:Timestamp>
</bis:HeaderFields>
</bis:MessageHeader>
</soap:Header>
<soap:Body>
<GetResponse xmlns="http://www.ing.com/nl/pcretail/ts/migrationcasedata_01">
<CaseData>...</CaseData>
<bis:Result xmlns:bis="http://www.ing.com/CSP/XSD/General/Message_2">
<bis:Status>OK</bis:Status>
</bis:Result>
</GetResponse>
</soap:Body>
</soap:Envelope>
<bis:Result xmlns:bis="http://www.ing.com/CSP/XSD/General/Message_2">
<bis:Status>ERROR</bis:Status>
<bis:ErrorList>
<bis:Error>
<bis:Code>ERR6003</bis:Code>
<bis:Reason>Invalid Request Message</bis:Reason>
<bis:Service>
<bis:Name>migrationauditdata_01</bis:Name>
<bis:Context>1</bis:Context>
<bis:Action>
<bis:Name>SetPolicyDetails_Action</bis:Name>
<bis:Version>1</bis:Version>
</bis:Action>
</bis:Service>
<bis:DetailList>
<bis:Detail>
<bis:Code/>
<bis:Text>Pipe [Validate tibco request] msgId [Test Tool correlation id] got invalid xml according to schema [....</bis:Text>
</bis:Detail>
</bis:DetailList>
</bis:Error>
</bis:ErrorList>
</bis:Result>
Configuration:
attributes | description | default | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
className | nl.nn.adapterframework.extensions.bis.BisSoapJmsListener | |||||||||||||
soap | when true , messages sent are put in a SOAP envelope | true | ||||||||||||
requestXPath | xpath expression to extract the message 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) | |||||||||||||
requestNamespaceDefs | namespace defintions for requestXPath. Must be in the form of a comma or space separated list of prefix=namespaceuri -definitions | |||||||||||||
messageHeaderInSoapBody | when true , the MessageHeader 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 is 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 | ||||||||||||
omitResult | when true , the Result is omitted and instead of Result/Status 'ERROR' a ListenerException is thrown (this functionality will be used during migration from IFSA to TIBCO) | false | ||||||||||||
removeRequestNamespaces | when set true namespaces (and prefixes) in the request are removed (this functionality will be used during migration from IFSA to TIBCO) | false | ||||||||||||
layByNamespace | when true , the namespace of the request is laid by and afterwards added to the reply (this functionality will be used during migration from IFSA to TIBCO) | false | ||||||||||||
errorCodeSessionKey | key of session variable to store error code in (if an error occurs) | bisErrorCode | ||||||||||||
errorTextSessionKey | key of session variable to store error text in (if an error occurs). If not specified, the following error text is derived from the error code:
| |||||||||||||
errorReasonSessionKey | key of session variable to store error reason in (if an error occurs) | bisErrorReason | ||||||||||||
serviceName | name of the service; used in the error reply | |||||||||||||
actionName | name of the operation; used in the error reply |
Constructor and Description |
---|
BisJmsListener()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
configure()
Deprecated.
configure() is called once at startup of the framework in the configure() method
of the owner of this listener. |
Message |
extractMessageBody(Message message,
Map<String,Object> context,
SoapWrapper soapWrapper)
Deprecated.
|
String |
getActionName()
Deprecated.
|
String |
getErrorCodeSessionKey()
Deprecated.
|
String |
getErrorReasonSessionKey()
Deprecated.
|
String |
getErrorTextSessionKey()
Deprecated.
|
String |
getRequestNamespaceDefs()
Deprecated.
|
String |
getRequestXPath()
Deprecated.
|
String |
getServiceName()
Deprecated.
|
boolean |
isLayByNamespace()
Deprecated.
|
boolean |
isMessageHeaderInSoapBody()
Deprecated.
|
boolean |
isOmitResult()
Deprecated.
|
boolean |
isRemoveRequestNamespaces()
Deprecated.
|
boolean |
isResultInPayload()
Deprecated.
|
Message |
prepareReply(Message rawReply,
Map<String,Object> threadContext)
Deprecated.
|
String |
prepareResult(String errorCode,
Map<String,Object> threadContext)
Deprecated.
|
void |
setActionName(String actionName)
Deprecated.
|
void |
setErrorCodeSessionKey(String errorCodeSessionKey)
Deprecated.
|
void |
setErrorReasonSessionKey(String errorReasonSessionKey)
Deprecated.
|
void |
setErrorTextSessionKey(String errorTextSessionKey)
Deprecated.
|
void |
setLayByNamespace(boolean b)
Deprecated.
|
void |
setMessageHeaderInSoapBody(boolean b)
Deprecated.
|
void |
setOmitResult(boolean b)
Deprecated.
|
void |
setRemoveRequestNamespaces(boolean b)
Deprecated.
|
void |
setRequestNamespaceDefs(String requestNamespaceDefs)
Deprecated.
|
void |
setRequestXPath(String requestXPath)
Deprecated.
|
void |
setResultInPayload(boolean b)
Deprecated.
|
void |
setServiceName(String serviceName)
Deprecated.
|
close, decreaseThreadCount, getCurrentThreadCount, getDeliveryCount, getListenerPortConnector, getMaxThreadCount, increaseThreadCount, isThreadCountControllable, isThreadCountReadable, open, setCacheMode, setDestinationName, setPollGuardInterval, wrapRawMessage
addParameter, afterMessageProcessed, extractMessage, extractMessageProperties, getMessageProperties, getParameterList, messageWillBeRedeliveredOnExitStateError, prepareReply, sendReply, setForceMessageIdAsCorrelationId, setReplyDeliveryMode, setReplyDestinationName, setReplyEncodingStyleURI, setReplyMessageTimeToLive, setReplyMessageType, setReplyNamespaceURI, setReplyPriority, setReplySoapAction, setSender, setSoap, setSoapHeaderSessionKey, setTimeout, setTimeOut, setUseReplyTo
checkTransactionManagerValidity, closeSession, createMessage, createSession, extractMessage, getAcknowledgeModeEnum, getConnectionFactoryInfo, getConnectionFactoryName, getContext, getDestination, getDestination, getJmsMessagingSource, getLogPrefix, getManagedConnectionFactory, getMessageConsumer, getMessageConsumer, getMessageConsumerForCorrelationId, getMessageProducer, getMessagingSource, getMessagingSourceFactory, getPhysicalDestinationName, getPhysicalDestinationShortName, getPhysicalDestinationShortName, isSessionsArePooled, logMessageDetails, send, send, send, send, send, send, send, sendByQueue, sendByTopic, setAckMode, setAcknowledgeMode, setAuthAlias, setCorrelationIdMaxLength, setCorrelationIdToHex, setCorrelationIdToHexPrefix, setDestinationType, setJmsTransacted, setLookupDestination, setMessageCorrelationID, setMessageSelector, setMessageTimeToLive, setPersistent, setQueueConnectionFactoryName, setSubscriberType, setTopicConnectionFactoryName, setTransacted, toString, 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
checkTransactionManagerValidity, getExceptionListener, getHandler, getReceiver, setReceiver
setExceptionListener, setHandler
afterMessageProcessed, extractMessage
getName, setName
getApplicationContext, getName
getConfigurationClassLoader
setApplicationContext
getDomain
isTransacted
public void configure() throws ConfigurationException
IListener
configure()
is called once at startup of the framework in the configure()
method
of the owner of this listener.
Purpose of this method is to reduce creating connections to databases etc. in the IPullingListener.getRawMessage(Map)
method.
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 IListener<javax.jms.Message>
configure
in class PushingJmsListener
ConfigurationException
public Message extractMessageBody(Message message, Map<String,Object> context, SoapWrapper soapWrapper) throws SAXException, TransformerException, IOException
extractMessageBody
in class JMSFacade
SAXException
TransformerException
IOException
public Message prepareReply(Message rawReply, Map<String,Object> threadContext) throws ListenerException
prepareReply
in class JmsListenerBase
ListenerException
public String prepareResult(String errorCode, Map<String,Object> threadContext) throws DomBuilderException, IOException, TransformerException
public void setRequestXPath(String requestXPath)
public String getRequestXPath()
public void setRequestNamespaceDefs(String requestNamespaceDefs)
public String getRequestNamespaceDefs()
public void setMessageHeaderInSoapBody(boolean b)
public boolean isMessageHeaderInSoapBody()
public void setResultInPayload(boolean b)
public boolean isResultInPayload()
public void setOmitResult(boolean b)
public boolean isOmitResult()
public void setRemoveRequestNamespaces(boolean b)
public boolean isRemoveRequestNamespaces()
public void setLayByNamespace(boolean b)
public boolean isLayByNamespace()
public void setErrorCodeSessionKey(String errorCodeSessionKey)
public String getErrorCodeSessionKey()
public void setErrorTextSessionKey(String errorTextSessionKey)
public String getErrorTextSessionKey()
public void setErrorReasonSessionKey(String errorReasonSessionKey)
public String getErrorReasonSessionKey()
public void setServiceName(String serviceName)
public String getServiceName()
public void setActionName(String actionName)
public String getActionName()
Copyright © 2023 Frank!Framework. All rights reserved.