-
Notifications
You must be signed in to change notification settings - Fork 81
MessageStoreListener
BonnoSmeele edited this page Oct 14, 2024
·
3 revisions
Example configuration:
<listener
name="MyListener"
className="nl.nn.adapterframework.jdbc.MessageStoreListener"
jmsRealm="jdbc"
slotId="${instance.name}/MyService"
sessionKeys="key1,key2"
/>
<!-- DummyTransactionalStorage to enable messagelog browser in the console (messages are moved to messagelog by MessageStoreListener hence JdbcTransactionalStorage isn't needed) -->
<messageLog
className="nl.nn.adapterframework.jdbc.DummyTransactionalStorage"
jmsRealm="jdbc"
slotId="${instance.name}/ServiceName"
/>
<!-- On error the message is moved to the errorStorage. And when moveToMessageLog="true" also to the messageLog (after manual resend the messageLog doesn't change). -->
<errorStorage
className="nl.nn.adapterframework.jdbc.JdbcTransactionalStorage"
jmsRealm="jdbc"
slotId="${instance.name}/ServiceName"
/>
listener with selectcondition
<Receiver correlationIDXPath="concat(//*:ConversationId,'-shadow')" maxRetries="0">
<MessageStoreListener slotId="${ApplicationId.name}/messagestorename"
statusValueInProcess="I"
selectCondition="MESSAGEDATE < ADDDATE(NOW(), INTERVAL -10 MINUTE)"/>
</Receiver>