@Category(value="NN-Special") public class EsbJmsListener extends JmsListener implements ITransactionRequirements
Modifier and Type | Class and Description |
---|---|
static class |
EsbJmsListener.MessageProtocol |
JMSFacade.AcknowledgeMode, JMSFacade.DeliveryMode, JMSFacade.DestinationType, JMSFacade.SubscriberType
messagingSource
Constructor and Description |
---|
EsbJmsListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterMessageProcessed(PipeLineResult plr,
Object rawMessageOrWrapper,
Map<String,Object> threadContext)
Called to perform actions (like committing or sending a reply) after a message has been processed by the
Pipeline.
|
void |
configure()
configure() is called once at startup of the framework in the configure() method
of the owner of this listener. |
protected Map<String,Object> |
getMessageProperties(Map<String,Object> threadContext)
Set additional message headers/properties on the JMS response, read after message has been processed!
|
protected String |
getResultFromxPath(String message,
String xPathExpression) |
protected Map<String,String> |
getxPathLogMap() |
boolean |
isSynchronous() |
protected String |
retrieveIdFromMessage(javax.jms.Message message,
Map<String,Object> threadContext) |
void |
setCopyAEProperties(boolean b)
if true, all JMS properties in the request starting with "ae_" are copied to the reply.
|
void |
setForceMessageIdAsCorrelationId(boolean force)
By default, the JmsListener takes the Correlation-ID (if present) as the ID that has to be used as Correlation-ID of the reply.
|
void |
setMessageProtocol(EsbJmsListener.MessageProtocol string)
protocol of ESB service to be called
|
void |
setUseReplyTo(boolean newUseReplyTo) |
void |
setxPathLoggingKeys(String string)
Comma separated list of all XPath keys that need to be logged.
|
boolean |
transactionalAllowed() |
boolean |
transactionalRequired() |
close, decreaseThreadCount, getCurrentThreadCount, getDeliveryCount, getListenerPortConnector, getMaxThreadCount, increaseThreadCount, isThreadCountControllable, isThreadCountReadable, open, setCacheMode, setDestinationName, setPollGuardInterval
addParameter, extractMessage, getIdFromRawMessage, getParameterList, messageWillBeRedeliveredOnExitStateError, prepareReply, prepareReply, sendReply, setReplyDeliveryMode, setReplyDestinationName, setReplyEncodingStyleURI, setReplyMessageTimeToLive, setReplyMessageType, setReplyNamespaceURI, setReplyPriority, setReplySoapAction, setSender, setSoap, setSoapHeaderSessionKey, setTimeout, setTimeOut
checkTransactionManagerValidity, closeSession, createMessage, createSession, extractMessage, extractMessageBody, 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, 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
extractMessage, getIdFromRawMessage
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
protected String retrieveIdFromMessage(javax.jms.Message message, Map<String,Object> threadContext) throws ListenerException
retrieveIdFromMessage
in class JmsListenerBase
ListenerException
public void afterMessageProcessed(PipeLineResult plr, Object rawMessageOrWrapper, Map<String,Object> threadContext) throws ListenerException
IListener
afterMessageProcessed
in interface IListener<javax.jms.Message>
afterMessageProcessed
in class JmsListenerBase
ListenerException
protected Map<String,Object> getMessageProperties(Map<String,Object> threadContext)
JmsListenerBase
getMessageProperties
in class JmsListenerBase
threadContext
- which has been build during the pipeline@Mandatory public void setMessageProtocol(EsbJmsListener.MessageProtocol string)
public boolean isSynchronous()
public boolean transactionalRequired()
transactionalRequired
in interface ITransactionRequirements
public boolean transactionalAllowed()
transactionalAllowed
in interface ITransactionRequirements
public void setCopyAEProperties(boolean b)
@Default(value="if messageProtocol=<code>RR</code>: </td><td><code>true</code>") public void setForceMessageIdAsCorrelationId(boolean force)
JmsListenerBase
true
, the messageID is used as Correlation-ID of the reply.setForceMessageIdAsCorrelationId
in class JmsListenerBase
@Default(value="if messageProtocol=<code>FF</code>: <code>false</code>") public void setUseReplyTo(boolean newUseReplyTo)
setUseReplyTo
in class JmsListenerBase
public void setxPathLoggingKeys(String string)
msg.log.keys
property)Copyright © 2023 Frank!Framework. All rights reserved.