Results 1 to 4 of 4

Thread: Spring Integration and ActiveMQ's AMQ_SCHEDULED_DELAY property

  1. #1
    Join Date
    Mar 2010
    Location
    Tallinn, Estonia
    Posts
    25

    Question Spring Integration and ActiveMQ's AMQ_SCHEDULED_DELAY property

    Hello,

    I would like to use ActiveMQ's scheduled processing feature (http://activemq.apache.org/delay-and...-delivery.html). I can set the value to AMQ_SCHEDULED_DELAY header of JMS message and it is passed to ActiveMQ, but JMS is processed by Spring Integration's "jms:message-driven-channel-adapter" right away. Does anybody implemented scheduling of JMS with Spring Integration and ActiveMQ? Please, give me some advice.

    Thank you in advance!

  2. #2
    Join Date
    Mar 2010
    Location
    Tallinn, Estonia
    Posts
    25

    Default

    I set "schedulerSupport" to "true" in broker's configuration's and now scheduling is working.

  3. #3
    Join Date
    Jul 2012
    Posts
    4

    Default

    Hi,
    I have the same requirement of using AMQ_SCHEDULED_DELAY feature with Spring INtegration and Active MQ..

    it would be great if you could share the broker confifuration and SI configuration for the same..

    Appreciate your help..

    Thanks,

  4. #4
    Join Date
    Mar 2010
    Location
    Tallinn, Estonia
    Posts
    25

    Default

    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">
    ...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •