Forum Stats

  • 3,814,253 Users
  • 2,258,850 Discussions
  • 7,892,637 Comments

Discussions

SOA Retry intervall

User_NUWC8
User_NUWC8 Member Posts: 6 Green Ribbon
edited Dec 29, 2021 10:44AM in SOA Suite Discusssions

Hi,

one question to the Retry mechanism in SOA, in the configuration you can set the retry intervall as Fix value, is it possible to set it as a dynamic value, for example:

First Retry wait 1 Minute,

Second Retry wait 3 Minute

and so on ?

Thanks

Answers

  • dvohra21
    dvohra21 Member Posts: 14,476 Gold Crown

    How is ADF and JDeveloper used.?

    Set a retry delay.


    Retry: Provides the following actions for retrying the activity.

    • Retry a specified number of times.
    • Provide a delay between retries (in seconds).
    • Increase the interval with an exponential back off.
    • Chain to a retry failure action if retry N times fails.
    • Chain to a retry success action if a retry is successful.

    Note: Exponential back off indicates that the next retry attempt is scheduled at 2 x the delay, where delay is the current retry interval. For example, if the current retry interval is 2 seconds, the next retry attempt is scheduled at 4, the next at 8, and the next at 16 seconds until the retryCount value is reached.

    <Action id="ora-retry">
       <Retry>
          <retryCount>3</retryCount>
          <retryInterval>2</retryInterval>
          <exponentialBackoff/>
          <retryFailureAction ref="ora-java"/>
          <retrySuccessAction ref="ora-java"/>
       </Retry>
    </Action>
    

    Note the following details:

    • The framework chains to the retry success action if the retry attempt is successful.
    • If all retry attempts fail, the framewor


  • dvohra21
    dvohra21 Member Posts: 14,476 Gold Crown

    is it possible to set it as a dynamic value

    What is a dynamic value?

  • User_NUWC8
    User_NUWC8 Member Posts: 6 Green Ribbon
    edited Dec 30, 2021 1:28PM

    thanks for your response.

    The aim is, a special JMS Queue must be run into retry if a (special) error comes up,
    configuration for special queue must be like this one:
    
    Retry  Delay
    1       5 sek.
    2       29 sek.
    3       58 sek.
    4       abort
    
    Is this in OSB reliable configurable ?
    
    My known is so, it exists 2 Configurable location for this:
    
    1. osb Server configuration ( under "web services" on Weblogic GUI) with exponentiell Backoff
    2. in the special Queue
    
    But both are not dynamic in setting the delay Parameter, i search a possibility to
    change the Delay seconds depends on retry count dynamically (not Exponentiell or one delay value 
    for all retry counts...)
    
    Thanks.
    
    
    


  • dvohra21
    dvohra21 Member Posts: 14,476 Gold Crown

    The condition for an action may be set in Conditions in fault-policies.xml. Multiple retries may be set.

    <Conditions>
    ...
    ...
    <condition>
    <action ref="ora-retry-1"/>
    </condition>
    <condition>
    <action ref="ora-retry-2"/>
    </condition>
    <condition>
    <action ref="ora-retry-3"/>
    </condition>
    <condition>
    <action ref="ora-retry-4"/>
    </condition>
    ...
    </Conditions>
    <Actions>
    <!--This action will attempt 1 retry with intervals of 5 seconds -->
    <Action id="ora-retry-1">
    <retry>
    <retryCount>1</retryCount>
    <retryInterval>5</retryInterval>
    <retryFailureAction ref="java-fault-handler"/>
    </retry>
    </Action>
    <!--This action will attempt 1 retry with intervals of 29 seconds -->
    <Action id="ora-retry-2">
    <retry>
    <retryCount>1</retryCount>
    <retryInterval>29</retryInterval>
    <retryFailureAction ref="java-fault-handler"/>
    </retry>
    </Action>
    
    <!--This action will attempt 1 retry with intervals of 58 seconds -->
    <Action id="ora-retry-3">
    <retry>
    <retryCount>1</retryCount>
    <retryInterval>58</retryInterval>
    <retryFailureAction ref="java-fault-handler"/>
    </retry>
    </Action>
    
    <!--This action will cause the instance to terminate-->
    <Action id="ora-terminate">
    <abort/>
    </Action>
    


  • User_NUWC8
    User_NUWC8 Member Posts: 6 Green Ribbon
    edited Jan 6, 2022 8:10AM

    Thank you dvohra21.

    Did anyone know how can Configure the Fault Policy on the Weblogic/Console GUI ?

    I know it is via JDeveloper normal way...


    Thank you.