title: How do I init a spring integration:gateway at startup?
body: <p>I'm using spring integration to communicate via active mq. I've got the following config.</p>
  
  <pre><code>&lt;integration:channel id="riskApprovalRequestChannel"/&gt;
      &lt;integration:channel id="riskApprovalResponseChannel"/&gt;
  
      &lt;jms:outbound-gateway id="riskApprovalServiceGateway"
                            request-destination-name="${risk.approval.queue.request}"
                            reply-destination-name="${risk.approval.queue.response}"
                            request-channel="riskApprovalRequestChannel"
                            reply-channel="riskApprovalResponseChannel"
                            connection-factory="jmsConnectionFactory"
                            receive-timeout="1000"/&gt;
  
      &lt;integration:gateway id="riskApprovalService" service-interface="com.my.ServiceInterface"
                           default-request-channel="riskApprovalRequestChannel"
                           default-reply-channel="riskApprovalResponseChannel"/&gt;
  </code></pre>
  
  <p>This works well except for the 1st request, which is slow. I always hit the 1 second timeout on the 1st request. There's obviously some lazy loading going on somewhere.</p>
  
  <p>My question is, how do I do a full initialisation at start up to avoid the 1st request always timing out?</p>
  
  <p>Cheers,</p>
  
  <p>Peter</p>