title: MQ reconnect does not work with Wildfly. How to configure it correctly?
body: <p>MQ reconnect does not work. Can you suggest ways to fix it?</p>
  
  <p>I use Wildfly 12.0.0.Final</p>
  
  <p>Driver is wmq.jmsra-9.1.2.0.rar</p>
  
  <p>Tried to use this ways to configure reconnect</p>
  
  <p>First</p>
  
  <pre><code>&lt;subsystem xmlns="urn:jboss:domain:resource-adapters:5.0"&gt;
              &lt;resource-adapters&gt;
                  &lt;resource-adapter id="wmq.jmsra.rar" statistics-enabled="false"&gt;
                      &lt;archive&gt;
                          wmq.jmsra-9.1.2.0.rar
                      &lt;/archive&gt;
                      &lt;transaction-support&gt;NoTransaction&lt;/transaction-support&gt;
                      &lt;config-property name="startupRetryInterval"&gt;
                          300
                      &lt;/config-property&gt;
                      &lt;config-property name="reconnectionRetryCount"&gt;
                          9000
                      &lt;/config-property&gt;
                      &lt;config-property name="startupRetryCount"&gt;
                          9000
                      &lt;/config-property&gt;
                      &lt;config-property name="reconnectionRetryInterval"&gt;
                          300
                      &lt;/config-property&gt;
                  &lt;/resource-adapter&gt;
              &lt;/resource-adapters&gt;
          &lt;/subsystem&gt;
  </code></pre>
  
  <p>Second (two last properties)</p>
  
  <pre><code>    private JMSContext createJmsContext() throws JMSException {
          JmsConnectionFactory cf;
          JmsFactoryFactory ff = JmsFactoryFactory.getInstance(WMQConstants.WMQ_PROVIDER);
          cf = ff.createConnectionFactory();
          cf.setStringProperty(WMQConstants.WMQ_HOST_NAME, props.getProperty(Q_HOST));
          cf.setIntProperty(WMQConstants.WMQ_PORT, Integer.valueOf(props.getProperty(Q_PORT)));
          cf.setStringProperty(WMQConstants.WMQ_CHANNEL, props.getProperty(Q_CHANNEL));
          cf.setIntProperty(WMQConstants.WMQ_CONNECTION_MODE, WMQConstants.WMQ_CM_CLIENT);
          cf.setStringProperty(WMQConstants.WMQ_QUEUE_MANAGER, props.getProperty(Q_MANAGER));
          cf.setStringProperty(WMQConstants.WMQ_APPLICATIONNAME, "JmsPutGet (JMS)");
          cf.setBooleanProperty(WMQConstants.USER_AUTHENTICATION_MQCSP, true);
          cf.setIntProperty(WMQConstants.WMQ_CLIENT_RECONNECT_OPTIONS, WMQConstants.WMQ_CLIENT_RECONNECT_Q_MGR);
          cf.setIntProperty(WMQConstants.WMQ_CLIENT_RECONNECT_TIMEOUT, 60000);
          return cf.createContext();
      }
  </code></pre>