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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • EAP_EWP 5.2.0
    • EAP_EWP 5.1.2
    • Other
    • None
    • Documentation (Ref Guide, User Guide, etc.), Release Notes
    • Hide

      Set the reconnectAttempts to Integer.MAX_VALUE

      Show
      Set the reconnectAttempts to Integer.MAX_VALUE
    • 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>.
    • Documented as Resolved Issue
    • NEW

      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.

              rhn-support-bmaxwell Brad Maxwell
              rhn-support-dgrove Doug Grove (Inactive)
              Petr Penicka Petr Penicka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: