Class EsbJmsTransactionalStorage<S extends Serializable>
java.lang.Object
org.frankframework.jndi.JndiBase
org.frankframework.jms.JMSFacade
org.frankframework.jms.AbstractJmsMessageBrowser<S,jakarta.jms.ObjectMessage>
org.frankframework.jms.JmsTransactionalStorage<S>
org.frankframework.extensions.esb.EsbJmsTransactionalStorage<S>
- All Implemented Interfaces:
FrankElement,HasApplicationContext,HasName,HasPhysicalDestination,IConfigurable,IMessageBrowser<S>,IScopeProvider,ITransactionalStorage<S>,IXAEnabled,NameAware,ConfigurableLifecycle,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
@Category(NN_SPECIAL)
public class EsbJmsTransactionalStorage<S extends Serializable>
extends JmsTransactionalStorage<S>
ESB (Enterprise Service Bus) extension of
JmsTransactionalStorage.
Depending on the type of the TransactionalStorage
one of the following messages is sent:
errorStore: ESB.Infrastructure.US.Log.BusinessLog.2.ExceptionLog.1.ActionmessageLog: ESB.Infrastructure.US.Log.BusinessLog.2.AuditLog.1.Action
- Author:
- Peter Leeuwenburgh
-
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.JmsTransactionalStorage
FIELD_COMMENTS, FIELD_HOST, FIELD_LABEL, FIELD_ORIGINAL_ID, FIELD_RECEIVED_DATE, FIELD_SLOTID, FIELD_TYPEFields inherited from class org.frankframework.jms.JMSFacade
JMS_MESSAGECLASS_KEY, log, messagingSourceFields inherited from interface org.frankframework.core.ITransactionalStorage
MAXCOMMENTLENFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure this component.intvoidstart()Obtains a connection and a serviceQueue.voidstop()Releases references to serviceQueue and connection.storeMessage(String messageId, String correlationId, Date receivedDate, String comments, String label, S message) Store the message, returns storageKey.Methods inherited from class org.frankframework.jms.JmsTransactionalStorage
browseMessage, consumeMessage, containsMessageId, getSelector, getSlotId, getType, setSlotId, setTypeMethods inherited from class org.frankframework.jms.AbstractJmsMessageBrowser
browseJmsMessage, containsCorrelationId, deleteMessage, doBrowse, doBrowse, getCombinedSelector, getCombinedSelector, getContext, getIterator, getIterator, getJmsMessage, getStorageFields, setTimeoutMethods inherited from class org.frankframework.jms.JMSFacade
checkTransactionManagerValidity, closeSession, 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, 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
containsCorrelationId, deleteMessage, getContext, getHideMethod, getHideRegex, getIterator, getIterator, getStorageFields, setHideMethod, setHideRegexMethods inherited from interface org.frankframework.core.IXAEnabled
isTransactedMethods inherited from interface org.springframework.context.SmartLifecycle
stop
-
Constructor Details
-
EsbJmsTransactionalStorage
public EsbJmsTransactionalStorage()
-
-
Method Details
-
configure
Description copied from interface:IConfigurableConfigure this component.configure()is called once at startup of the framework in the configure method of the owner of thisIConfigurable. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in theconfigure(), to improve performance.In the case of a container, this will propagate the configure signal to all components that apply.
- Specified by:
configurein interfaceIConfigurable- Specified by:
configurein interfaceITransactionalStorage<S extends Serializable>- Overrides:
configurein classJMSFacade- Throws:
ConfigurationException- in case it was not able to configure the component.
-
start
public void start()Description copied from class:JMSFacadeObtains a connection and a serviceQueue.- Specified by:
startin interfaceConfigurableLifecycle- Specified by:
startin interfaceITransactionalStorage<S extends Serializable>- Specified by:
startin interfaceorg.springframework.context.Lifecycle- Overrides:
startin classJMSFacade
-
stop
public void stop()Description copied from class:JMSFacadeReleases references to serviceQueue and connection.- Specified by:
stopin interfaceITransactionalStorage<S extends Serializable>- Specified by:
stopin interfaceorg.springframework.context.Lifecycle- Overrides:
stopin classJMSFacade
-
storeMessage
public String storeMessage(String messageId, String correlationId, Date receivedDate, String comments, String label, S message) throws SenderException Description copied from interface:ITransactionalStorageStore the message, returns storageKey. The messageId should be unique.- Specified by:
storeMessagein interfaceITransactionalStorage<S extends Serializable>- Overrides:
storeMessagein classJmsTransactionalStorage<S extends Serializable>- Throws:
SenderException
-
getMessageCount
public int getMessageCount()- Specified by:
getMessageCountin interfaceIMessageBrowser<S extends Serializable>- Overrides:
getMessageCountin classAbstractJmsMessageBrowser<S extends Serializable,jakarta.jms.ObjectMessage>
-