Package org.frankframework.jms
Class AbstractJmsMessageBrowser<M,J extends jakarta.jms.Message>
java.lang.Object
org.frankframework.jndi.JndiBase
org.frankframework.jms.JMSFacade
org.frankframework.jms.AbstractJmsMessageBrowser<M,J>
- Type Parameters:
M- the payload message type as used by IMessageBrowser.J- the physical JMS message to carry the payload.
- All Implemented Interfaces:
FrankElement,HasApplicationContext,HasName,HasPhysicalDestination,IConfigurable,IMessageBrowser<M>,IScopeProvider,IXAEnabled,NameAware,ConfigurableLifecycle,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
- Direct Known Subclasses:
JmsBrowser,JmsTransactionalStorage
public abstract class AbstractJmsMessageBrowser<M,J extends jakarta.jms.Message>
extends JMSFacade
implements IMessageBrowser<M>
Basic browser of JMS Messages.
- Author:
- Johan Verrips
-
Nested Class Summary
Nested classes/interfaces inherited from class org.frankframework.jms.JMSFacade
JMSFacade.AcknowledgeMode, JMSFacade.DeliveryMode, JMSFacade.JmsDestinationType, JMSFacade.MessageClass, JMSFacade.SubscriberTypeNested classes/interfaces inherited from interface org.frankframework.core.IMessageBrowser
IMessageBrowser.HideMethod, IMessageBrowser.SortOrder, IMessageBrowser.StorageType -
Field Summary
Fields inherited from class org.frankframework.jms.JMSFacade
JMS_MESSAGECLASS_KEY, log, messagingSourceFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbrowseJmsMessage(String messageId) booleancontainsCorrelationId(String correlationId) booleancontainsMessageId(String originalMessageId) Check if the storage contains message with the given original messageId (as passed to storeMessage).voiddeleteMessage(String messageId) Deletes the message.protected jakarta.jms.Messageprotected jakarta.jms.Messageprotected StringgetCombinedSelector(String messageId) protected StringgetCombinedSelector(Map<String, String> selectors) getContext(String messageId) Retrieves the message context as an iteratorItem.Gets an enumeration of messages.getIterator(Date startTime, Date endTime, IMessageBrowser.SortOrder order) getJmsMessage(String messageId) intRetrieves the field names of the storagevoidsetTimeout(long newTimeOut) Timeout in milliseconds for receiving a message from the queueMethods inherited from class org.frankframework.jms.JMSFacade
checkTransactionManagerValidity, closeSession, configure, createBytesMessage, createMessage, createMessage, createSession, 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, setMessageClass, setMessageCorrelationID, setMessageSelector, setMessageTimeToLive, setName, setPersistent, setQueueConnectionFactoryName, setSubscriberType, setTopicConnectionFactoryName, setTransacted, start, stop, toStringMethods inherited from class org.frankframework.jndi.JndiBase
getContext, getJndiEnv, setAuthentication, setCredentials, setInitialContextFactoryName, setJmsRealm, setJndiAuthAlias, setJndiProperties, setPrincipal, setProviderURL, setSecurityProtocol, setUrlPkgPrefixesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.frankframework.lifecycle.ConfigurableLifecycle
getPhase, isAutoStartup, isConfiguredMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface org.frankframework.core.IMessageBrowser
browseMessage, getHideMethod, getHideRegex, setHideMethod, setHideRegexMethods inherited from interface org.frankframework.core.IXAEnabled
isTransactedMethods inherited from interface org.springframework.context.SmartLifecycle
stop
-
Constructor Details
-
AbstractJmsMessageBrowser
public AbstractJmsMessageBrowser() -
AbstractJmsMessageBrowser
-
-
Method Details
-
getIterator
Description copied from interface:IMessageBrowserGets an enumeration of messages. This includes setting up connections, sessions etc.- Specified by:
getIteratorin interfaceIMessageBrowser<M>- Throws:
ListenerException
-
getIterator
public IMessageBrowsingIterator getIterator(Date startTime, Date endTime, IMessageBrowser.SortOrder order) throws ListenerException - Specified by:
getIteratorin interfaceIMessageBrowser<M>- Throws:
ListenerException
-
containsMessageId
Description copied from interface:IMessageBrowserCheck if the storage contains message with the given original messageId (as passed to storeMessage).- Specified by:
containsMessageIdin interfaceIMessageBrowser<M>- Throws:
ListenerException
-
containsCorrelationId
- Specified by:
containsCorrelationIdin interfaceIMessageBrowser<M>- Throws:
ListenerException
-
getMessageCount
- Specified by:
getMessageCountin interfaceIMessageBrowser<M>- Throws:
ListenerException
-
getJmsMessage
- Throws:
ListenerException
-
getContext
Description copied from interface:IMessageBrowserRetrieves the message context as an iteratorItem. The result can be used in the methods above that use an iteratorItem. Use this method as try-with-resources to close the connections.- Specified by:
getContextin interfaceIMessageBrowser<M>- Throws:
ListenerException
-
browseJmsMessage
- Throws:
ListenerException
-
doBrowse
- Throws:
ListenerException
-
doBrowse
protected jakarta.jms.Message doBrowse(String selectorKey, String selectorValue) throws ListenerException - Throws:
ListenerException
-
deleteMessage
Description copied from interface:IMessageBrowserDeletes the message.- Specified by:
deleteMessagein interfaceIMessageBrowser<M>- Throws:
ListenerException
-
getStorageFields
Description copied from interface:IMessageBrowserRetrieves the field names of the storage- Specified by:
getStorageFieldsin interfaceIMessageBrowser<M>
-
getCombinedSelector
-
getCombinedSelector
-
setTimeout
public void setTimeout(long newTimeOut) Timeout in milliseconds for receiving a message from the queue- Default value
- 3000
-