How to route messages based on message Timestamp using spring integration -
my use case follows: 1. read message queue 2. if message timestamp older 60 mins want processing 3. else other processing
my integration graph follows:
<jms:message-driven-channel-adapter connection-factory="jmsconnectionfactory" destination-name="${mq.queues}" channel="mqchannel" id="aomqinbound" /> <channel id="mqchannel" /> <si-xml:xpath-router input-channel="mqchannel" default-output-channel="lessthanorequalto60mins"> <si-xml:xpath-expression expression="timestamp > 60 mins" /> <si-xml:mapping value="true" channel="greaterthan60mins" /> </si-xml:xpath-router>
but not sure how provide message timestamp greater 60mins in expression attribute.
please in regard. let me know, if there better way this.
Comments
Post a Comment