Announcement Announcement Module
Collapse
No announcement yet.
Spring Integration WebService retry pattern Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Integration WebService retry pattern

    Hi,

    Is there any webservice retry component in spring integration?

    Thanks,
    Ben

  • #2
    Are you familiar with Spring Batch's RetyTemplate?

    We use it to apply retry logic to all sorts of different cases.

    Comment


    • #3
      Is there any option in SI for JMS message retry with delayed interval?

      Comment


      • #4
        Are you referring to retry on the consumer side or the producer?

        Comment


        • #5
          Hi Mark,

          Here is the scenario

          I am pulling messages from JMS inbound gateway (destination name ="incomingMessage") using poller with specified interval, and making webservice call if there is any failure, I guess it forwards to errorChannel ( which is default). and pull the message from the errorChannel drop in to same "inboundQueue" with a specified delay.

          <service-activator method="logMessage"
          ref="jmsInboundServiceActivator" input-channel="jmsIncomingChannel"/>

          <channel id="jmsIncomingChannel" />

          <jms:inbound-channel-adapter channel="jmsIncomingChannel"
          destination-name="incomingMessage">
          <poller id="incomingMessagePoller" max-messages-per-poll="-1">
          <cron-trigger expression="5 * * * * ?" />
          </poller>

          </jms:inbound-channel-adapter>


          <delayer input-channel="errorChannel" default-delay="3000" output-channel="jmsOutboundChannel"/>

          <channel id="jmsOutboundChannel" />

          <jms:outbound-channel-adapter channel="jmsOutboundChannel"
          destination-name="incomingMessage">
          </jms:outbound-channel-adapter>

          Comment


          • #6
            Maybe you can retry your service via a Control Bus which allows you to execute your service again.

            Comment

            Working...
            X