Class FxfListener
- All Implemented Interfaces:
FrankElement,HasApplicationContext,HasName,HasPhysicalDestination,HasSender,IConfigurable,IJmsListener<jakarta.jms.Message>,IKnowsDeliveryCount<jakarta.jms.Message>,IListener<jakarta.jms.Message>,IPortConnectedListener<jakarta.jms.Message>,IPushingListener<jakarta.jms.Message>,IRedeliveringListener<jakarta.jms.Message>,IScopeProvider,IThreadCountControllable,ITransactionRequirements,IWithParameters,IXAEnabled,NameAware,ConfigurableLifecycle,ReceiverAware<jakarta.jms.Message>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
FxF extension of EsbJmsListener.
Configuration (where deviating from EsbJmsListener):
| attributes | description | default |
|---|---|---|
destinationName | name of the JMS destination (queue or topic) to use | "jms/FileTransferAction" |
jmsRealm | "qcf_tibco_p2p_ff" | |
messageProtocol | protocol of ESB service to be called. Possible values
| "FF" |
- Author:
- Peter Leeuwenburgh
-
Nested Class Summary
Nested classes/interfaces inherited from class org.frankframework.extensions.esb.EsbJmsListener
EsbJmsListener.MessageProtocolNested classes/interfaces inherited from class org.frankframework.jms.JMSFacade
JMSFacade.AcknowledgeMode, JMSFacade.DeliveryMode, JMSFacade.JmsDestinationType, JMSFacade.MessageClass, JMSFacade.SubscriberType -
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 TypeMethodDescriptionvoidafterMessageProcessed(PipeLineResult plr, RawMessageWrapper<jakarta.jms.Message> rawMessageWrapper, PipeLineSession pipeLineSession) Called to perform actions (like committing or sending a reply) after a message has been processed by the Pipeline.voidConfigure this component.voidsetCreateProcessedDirectory(boolean b) (only used whenmoveProcessedFile=true) when set totrue, the directory to move processed files in is created if it does not existvoidsetFxfFileSessionKey(String fxfFileSessionKey) name of the session key to store the name of the received file invoidsetMoveProcessedFile(boolean b) If set totrue, the received file is moved after being processedvoidsetProcessedSiblingDirectory(String processedSiblingDirectory) (only used whenmoveProcessedFile=true) sibling directory (related to the parent directory of the file to process) where files are stored after being processedMethods inherited from class org.frankframework.extensions.esb.EsbJmsListener
extractMessageProperties, getMessageProperties, getResultFromXPath, getxPathLogMap, isSynchronous, setCopyAEProperties, setForceMessageIdAsCorrelationId, setMessageProtocol, setUseReplyTo, setxPathLoggingKeys, transactionalAllowed, transactionalRequiredMethods inherited from class org.frankframework.jms.PushingJmsListener
decreaseThreadCount, getCurrentThreadCount, getDeliveryCount, getMaxThreadCount, increaseThreadCount, isThreadCountControllable, isThreadCountReadable, setCacheMode, setDestinationName, setPollGuardInterval, start, stop, wrapRawMessageMethods inherited from class org.frankframework.jms.AbstractJmsListener
addParameter, extractMessage, getParameterList, messageWillBeRedeliveredOnExitStateError, prepareReply, prepareReply, sendReply, setReplyDeliveryMode, setReplyDestinationName, setReplyEncodingStyleURI, setReplyMessageTimeToLive, setReplyMessageType, setReplyNamespaceURI, setReplyPriority, setReplySoapAction, setSender, setSoap, setSoapHeaderSessionKey, 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, 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.IJmsListener
getDestinationName, getQueueConnectionFactoryNameMethods inherited from interface org.frankframework.core.IListener
extractMessage, start, stopMethods inherited from interface org.frankframework.core.IPortConnectedListener
checkTransactionManagerValidity, getExceptionListener, getHandlerMethods inherited from interface org.frankframework.core.IPushingListener
setExceptionListener, setHandlerMethods inherited from interface org.frankframework.core.IXAEnabled
isTransactedMethods inherited from interface org.frankframework.receivers.ReceiverAware
getReceiver, setReceiverMethods inherited from interface org.springframework.context.SmartLifecycle
stop
-
Constructor Details
-
FxfListener
public FxfListener()
-
-
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- Overrides:
configurein classEsbJmsListener- Throws:
ConfigurationException- in case it was not able to configure the component.
-
afterMessageProcessed
public void afterMessageProcessed(PipeLineResult plr, RawMessageWrapper<jakarta.jms.Message> rawMessageWrapper, PipeLineSession pipeLineSession) throws ListenerException Description copied from interface:IListenerCalled to perform actions (like committing or sending a reply) after a message has been processed by the Pipeline.- Specified by:
afterMessageProcessedin interfaceIListener<jakarta.jms.Message>- Overrides:
afterMessageProcessedin classEsbJmsListener- Throws:
ListenerException
-
setFxfFileSessionKey
name of the session key to store the name of the received file in- Default value
- fxfFile
-
setMoveProcessedFile
public void setMoveProcessedFile(boolean b) If set totrue, the received file is moved after being processed- Default value
- true
-
setProcessedSiblingDirectory
(only used whenmoveProcessedFile=true) sibling directory (related to the parent directory of the file to process) where files are stored after being processed- Default value
- processed
-
setCreateProcessedDirectory
public void setCreateProcessedDirectory(boolean b) (only used whenmoveProcessedFile=true) when set totrue, the directory to move processed files in is created if it does not exist- Default value
- false
-