Hi, I need a little help with the right way to poll to an external json based HTTP service using http gateway. I have requirement where I have to poll an external http json based service every minute and get the data into the messaging system. I would have assumed that an http inbound adapter/gateway would have been the right fit, but it behaves differently, it essentially exposes an http endpoint and expect the calls to come in.
So it sounds like a http outbound gateway is what I have to use. However, since it is a outbound gateway which gets triggered based on the availability of a message in a channel, I have to artificially put a dummy message in a channel to trigger the outbound http gateway to get a message in, this way:
So my question is - Is there a better way to do this?
<int:inbound-channel-adapter channel="quakeinfotrigger.channel" expression="@triggerChannelAdapter.trigger()">