1 Reply Latest reply on Nov 5, 2010 12:38 PM by gaohoward

    JBM stops reconnection to a remote provider

    rododendro.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.
      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

        • 1. Re: JBM stops reconnection to a remote provider
          gaohoward

          I think it is one of MDB configurations "reconnectAttempts". However this is not part of JBM, you need to verify yourself or go to JBoss JCA forum for more help.

           

          By the way, JBM is in maintenance mode only, meaning there won't be regular community release, only EAP releases. I'd suggest you consider HornetQ.