1 Reply Latest reply on Nov 5, 2010 12:38 PM by Yong Hao Gao

    JBM stops reconnection to a remote provider

    Ivan Rododendro Newbie
      Hi
      I have two JBoss 5.1.0 instances running JBM 1.4.3, one is JMS provider, on the other I have a MDB client.
      When I stop the JMS Provider the other instance starts reconnection procedure. If the JMS propvider is re-started quickly the reconnection goes fine but if the provider stays down a few minute no reconnection occurs. In fact the client instance stops reconnection procedure after a few tries.
      Does anyone knows how to configure this behaviour ?
      thanks
      ivan

      Hi

      I have two JBoss 5.1.0 instances running JBM 1.4.3, one is JMS provider, on the other I have a MDB client.

       

      in jbm-ds.xml

       

      {code}

      <mbean code="org.jboss.jms.jndi.JMSProviderLoader"

               name="jboss.messaging:service=JMSProviderLoader,name=ProxyJMSProvider">

        <attribute name="ProviderName">ProxyJMSProvider</attribute>

        <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>

        <attribute name="FactoryRef">XAConnectionFactory</attribute>

        <attribute name="QueueFactoryRef">XAConnectionFactory</attribute>

        <attribute name="TopicFactoryRef">XAConnectionFactory</attribute>

        <attribute name="Properties">

           java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory

           java.naming.factory.url.pkgs=org.jnp.interfaces

           java.naming.provider.url=jnp://172.20.21.54:1099

        </attribute>

      </mbean>

      {code}

       

       

      MDB activations properties

       

      @ActivationConfigProperty(propertyName = "destination", propertyValue = "topic/requestTopic"),

      @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),

      @ActivationConfigProperty(propertyName = "providerAdapterJNDI", propertyValue = "java:/ProxyJMSProvider"),

      @ActivationConfigProperty(propertyName = "subscriptionName", propertyValue = JMSSubscription.ID),

      @ActivationConfigProperty(propertyName = "reconnectInterval", propertyValue = "10"),

      @ActivationConfigProperty(propertyName = "subscriptionDurability", propertyValue = "NonDurable")})

       

      When I stop the JMS Provider the other instance starts reconnection procedure. If the JMS propvider is re-started quickly the reconnection goes fine but if the provider stays down a few minute no reconnection occurs. In fact the client instance stops reconnection procedure after a few tries.

       

      Does anyone knows how to configure this behaviour ?

       

      thanks

      ivan