cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to trigger two poller separately in spring integration?

Former Member
0 Kudos
548

Hi All,

We have a requirement in which we have to trigger two pollers separately after every two hours.

Example:

Suppose the current time is 10:00 AM

Poller1: cron expression has 2 hours time interval

Poller1 will be triggered at 10:00 AM

Poller2: cron expression has 2 hours time interval

Poller2 will be triggered at 12:00 PM

Poller1 will be triggered at 2:00 PM

Poller2 will be triggered at 4:00 PM

and so on

How to configure two pollers in the same spring.xml file?

Thanks,

P Sandhya.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos
        <int:poller fixed-rate="1000" />

You need to have different incoming folder location

Former Member
0 Kudos

Hi ,

Could you please explain in detail regarding your solution?

Thanks, G Gopinath.