Pathfinder
Pathfinder

Reputation: 994

Mule ActiveMQ at particular time interval

I have a scenario wherein I need to start receiving messages from Queue after a particular time interval irrespective of time the message is placed in queue.

For example Flow A process some service calls and then place the below message in queue

{
   filename:"blahblah.pdf"
}

Now Flow B need to start recieving the messages from queue after 9PM(or some time) daily and then process it.

I wonder is it possible to achieve this scenario in Mule.

Upvotes: 0

Views: 100

Answers (1)

AnupamBhusari
AnupamBhusari

Reputation: 2415

You can achieve this in Mulesoft using Poll Scope or Quartz Schedular. Code will be some thing like

<quartz:inbound-endpoint jobName="ReadQIN"
    cronExpression="* * * * * ?"  doc:name="Quartz">
    <quartz:endpoint-polling-job>
        <quartz:job-endpoint address="jms://QIN" />
    </quartz:endpoint-polling-job>
</quartz:inbound-endpoint>

Upvotes: 2

Related Questions