Class MessageQueueSender
java.lang.Object
org.frankframework.jndi.JndiBase
org.frankframework.jms.JMSFacade
org.frankframework.jms.JmsSender
org.frankframework.jms.MessageQueueSender
- All Implemented Interfaces:
FrankElement, HasApplicationContext, HasName, HasPhysicalDestination, IConfigurable, ICorrelatedSender, IScopeProvider, ISender, ISenderWithParameters, IWithParameters, IXAEnabled, NameAware, ConfigurableLifecycle, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
Send messages to another
Adapter, including message-metadata
(the MessageContext of the input Message), and optionally
a number of PipeLineSession keys. This is the JMS-based alternative for the database-based
MessageStoreSender.
-
Nested Class Summary
Nested classes/interfaces inherited from class JMSFacade
JMSFacade.AcknowledgeMode, JMSFacade.DeliveryMode, JMSFacade.JmsDestinationType, JMSFacade.MessageClass, JMSFacade.SubscriberTypeNested classes/interfaces inherited from interface ICorrelatedSender
ICorrelatedSender.LinkMethod -
Field Summary
Fields inherited from class JMSFacade
JMS_MESSAGECLASS_KEY, log, messagingSourceFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull jakarta.jms.MessagecreateMessage(@NonNull jakarta.jms.Session session, @Nullable String correlationID, @NonNull Message message, @Nullable PipeLineSession pipeLineSession) @NonNull MessagesendMessage(@NonNull Message message, @NonNull PipeLineSession pipeLineSession, String soapHeader) voidsetMessageClass(JMSFacade.MessageClass messageClass) This sender ignores the Message-Class and always sends messages as JMSObjectMessage.voidsetSessionKeys(String sessionKeys) Comma separated list of sessionKey's to be stored together with the message.Methods inherited from class JmsSender
addParameter, configure, createSession, enhanceMessage, getDestination, getParameterList, sendMessage, setDeliveryMode, setDestinationParam, setEncodingStyleURI, setLinkMethod, setMessageType, setPriority, setReplySoapHeaderSessionKey, setReplyTimeout, setReplyToName, setResponseHeadersToSessionKeys, setServiceNamespaceURI, setSoap, setSoapAction, setSoapHeaderParam, setSynchronous, start, toStringMethods inherited from class JMSFacade
checkTransactionManagerValidity, closeSession, createBytesMessage, createTextMessage, extractMessage, extractMessageBody, getConnectionFactoryName, getContext, getDestination, getDestination, getJmsMessagingSource, getLogPrefix, getMessageConsumer, getMessageConsumer, getMessageConsumerForCorrelationId, getMessageProducer, getMessagingSource, getPhysicalDestinationName, getPhysicalDestinationShortName, getPhysicalDestinationShortName, isRunning, isSessionsArePooled, logMessageDetails, send, send, send, send, send, sendByQueue, sendByTopic, setAcknowledgeMode, setAuthAlias, setCorrelationIdMaxLength, setCorrelationIdToHex, setCorrelationIdToHexPrefix, setDestinationName, setDestinationType, setJndiContextPrefix, setLookupDestination, setMessageCorrelationID, setMessageSelector, setMessageTimeToLive, setName, setQueueConnectionFactoryName, setSubscriberType, setTopicConnectionFactoryName, setTransacted, stopMethods inherited from class JndiBase
getContext, getJndiEnv, setAuthentication, setCredentials, setInitialContextFactoryName, setJmsRealm, setJndiAuthAlias, setJndiProperties, setPrincipal, setProviderURL, setSecurityProtocol, setUrlPkgPrefixesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface ConfigurableLifecycle
getPhase, isAutoStartup, isConfiguredMethods inherited from interface FrankElement
addConfigWarningMethods inherited from interface HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface ICorrelatedSender
getLinkMethodMethods inherited from interface ISender
isSynchronous, sendMessageOrThrow, stopMethods inherited from interface ISenderWithParameters
consumesSessionVariableMethods inherited from interface IXAEnabled
isTransactedMethods inherited from interface org.springframework.context.SmartLifecycle
isPauseable, stop
-
Constructor Details
-
MessageQueueSender
public MessageQueueSender()
-
-
Method Details
-
sendMessage
public @NonNull Message sendMessage(@NonNull Message message, @NonNull PipeLineSession pipeLineSession, String soapHeader) throws SenderException, TimeoutException - Overrides:
sendMessagein classJmsSender- Throws:
SenderExceptionTimeoutException
-
createMessage
public @NonNull jakarta.jms.Message createMessage(@NonNull jakarta.jms.Session session, @Nullable String correlationID, @NonNull Message message, @Nullable PipeLineSession pipeLineSession) throws jakarta.jms.JMSException, SenderException - Overrides:
createMessagein classJMSFacade- Throws:
jakarta.jms.JMSExceptionSenderException
-
setMessageClass
This sender ignores the Message-Class and always sends messages as JMSObjectMessage.- Overrides:
setMessageClassin classJMSFacade
-
setSessionKeys
Comma separated list of sessionKey's to be stored together with the message. In theMessageQueueListener, all these keys and values will be added to thePipeLineSessionon invocation.
-