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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -