Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-10165

Message Driven Beans Need an Infinite Re-Connection Retry Setting

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: EAP_EWP 5.1.2
    • Fix Version/s: EAP_EWP 5.2.0
    • Component/s: Other
    • Labels:
      None
    • Affects:
      Documentation (Ref Guide, User Guide, etc.), Release Notes
    • Workaround Description:
      Hide

      Set the reconnectAttempts to Integer.MAX_VALUE

      Show
      Set the reconnectAttempts to Integer.MAX_VALUE
    • Release Notes Text:
      Hide
      An infinite number of reconnection attempts can be specified by setting the value of the <systemitem>reconnectAttempts</systemitem> property of a message driven bean to <literal>-1</literal>:

      <programlisting>
      @ActivationConfigProperty(propertyName="reconnectAttempts", propertyValue="-1")
      </programlisting>

      However, this was previously functional only with HornetQ. With JBoss Messaging, no reconnection attempts were performed when the <literal>-1</literal> value was used. With this update, the underlying JBoss Messaging source code has been modified to support this value. As a result, an infinite number of reconnection attempts is now performed when the value is set to <literal>-1</literal>.
      Show
      An infinite number of reconnection attempts can be specified by setting the value of the <systemitem>reconnectAttempts</systemitem> property of a message driven bean to <literal>-1</literal>: <programlisting> @ActivationConfigProperty(propertyName="reconnectAttempts", propertyValue="-1") </programlisting> However, this was previously functional only with HornetQ. With JBoss Messaging, no reconnection attempts were performed when the <literal>-1</literal> value was used. With this update, the underlying JBoss Messaging source code has been modified to support this value. As a result, an infinite number of reconnection attempts is now performed when the value is set to <literal>-1</literal>.
    • Release Notes Docs Status:
      Documented as Resolved Issue
    • Docs QE Status:
      NEW

      Description

      In an MDB, a reconnection interval and number of connection attempts can be specified:

      // **** RECONNECT PARAMETERS *****************************
      @ActivationConfigProperty(propertyName="reconnectAttempts", propertyValue="10"),
      @ActivationConfigProperty(propertyName="reconnectInterval", propertyValue="60")

      Providing a value of "-1" for "reconnectAttempts" should indicate an infinite number of retry attempts.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bmaxwell Brad Maxwell
                Reporter:
                dgrove_redhat.com Doug Grove
                Writer:
                Petr Penicka
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: