title: Spring Integration poller hangs or stop after a while
body: <p>I have an application which reads JMS message coming from a HornetQ.</p>
  
  <pre><code>&lt;int-jms:message-driven-channel-adapter
              id="myJmsChannelAdapter"
              channel="myJmsChannel"
              connection-factory="myCredentialsConnectionFactory"
              destination-name="${my.jms.topic}"
              pub-sub-domain="true"
              subscription-durable="${my.jms.subscription.durable}"
              client-id="${my.jms.client.id}"
              durable-subscription-name="${my.jms.subscription.name}"
              /&gt;
  </code></pre>
  
  <p>When a message arrive, I treat them via a poller</p>
  
  <pre><code>&lt;!-- Send Jms message one by one to creation --&gt;
  &lt;int:bridge input-channel="myJmsChannel" output-channel="jmsMessageCreateInputChannel"&gt;
      &lt;int:poller max-messages-per-poll="1" fixed-delay="100"&gt;
          &lt;int:transactional transaction-manager="transactionManager" propagation="REQUIRES_NEW"/&gt;
      &lt;/int:poller&gt;
  &lt;/int:bridge&gt;
  </code></pre>
  
  <p>The poller call a chain which store the content of the message in my DB</p>
  
  <pre><code>&lt;chain id="jmsMessageCreate" input-channel="jmsMessageCreateInputChannel"&gt;
      &lt;!-- extract the operation from the message itself --&gt;
      &lt;int-xml:xpath-header-enricher&gt;
          &lt;int-xml:header name="operation" xpath-expression="name(./node())" overwrite="true"/&gt;
      &lt;/int-xml:xpath-header-enricher&gt;
  
      &lt;service-activator expression="@jmsMessageService.createNewJmsMessage(payload, headers['operation'])"/&gt;
      &lt;!-- have a JPA entity in the payload --&gt;
      &lt;gateway request-channel="persistEntityChannel"/&gt;
      &lt;logging-channel-adapter logger-name="JmsLogger" expression="'JMS message with operation ['+headers['operation']+'] created in DB'"/&gt;
  &lt;/chain&gt;
  </code></pre>
  
  <p>My problem is the following, sometimes, for no apparent reason and without any error message in the logs, my messages are no treated anymore. The chain id jmsMessageCreate is not called anymore like if the poller stopped working.
  If the server is restarted, it works well again but I have lost the JMS messages that were sent between the moment the poller stopped and the moment the server is restarted.</p>
  
  <p>I really don't know where to look or what to do to prevent that. Maybe a change in the config?</p>
  
  <p>Thanks in advance for your help.</p>