That was quite easy. We should add header to Spring Integration message:
Code:
<header-enricher input-channel="social-verify-channel-reschedule" output-channel="social-verify-channel">
<!-- schedule message sent to ActiveMQ: it will be processed with delay in 1 hour -->
<header name="AMQ_SCHEDULED_DELAY" value="3600000" />
</header-enricher>
In activemq.xml we have "schedulerSupport" enabled:
Code:
<broker xmlns="http://activemq.apache.org/schema/core" useJmx="true" brokerName="localhost" dataDirectory="${activemq.data}" destroyApplicationContextOnStop="true" schedulerSupport="true">
...