Results 1 to 6 of 6

Thread: Spring Integration WebService retry pattern

  1. #1
    Join Date
    Jun 2011
    Posts
    29

    Default Spring Integration WebService retry pattern

    Hi,

    Is there any webservice retry component in spring integration?

    Thanks,
    Ben

  2. #2
    Join Date
    Mar 2006
    Posts
    312

    Default

    Are you familiar with Spring Batch's RetyTemplate?

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

  3. #3
    Join Date
    Jun 2011
    Posts
    29

    Default

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

  4. #4
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

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

  5. #5
    Join Date
    Jun 2011
    Posts
    29

    Default

    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>

  6. #6
    Join Date
    Dec 2010
    Posts
    315

    Default

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

Posting Permissions

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