title: Spring Integration XMPP - Unable to send messages to Chat Server if the property autoStartup of XmppConnectionFactoryBean is configured to false
body: <p>I'm unable to send messages to Chat Server if the property autoStartup of XmppConnectionFactoryBean is configured to false.</p>
  
  <p>All is OK and messages are sent when I'm configure autoStartup = true.</p>
  
  <p>Configure autoStartup = false is useful in order to avoid deployment failure if the ApplicationContext is started when the Chat Server is unreacheable.</p>
  
  <p>The version of Spring Integration that I'm using is 4.1.1-RELEASE</p>
  
  <p>I'm configuring an XMPP Message Outbound Channel Adapter using a Spring ApplicationContext as described in the following code block:</p>
  
  <pre><code>    &lt;bean id="my-xmpp-connection" class="org.springframework.integration.xmpp.config.XmppConnectionFactoryBean"&gt; 
          &lt;constructor-arg&gt;
              &lt;bean class="org.jivesoftware.smack.ConnectionConfiguration"&gt;
                  &lt;constructor-arg value="myHost"/&gt;
                  &lt;constructor-arg value="myport"/&gt;
                  &lt;constructor-arg value="myService"/&gt;                
                  &lt;property name="securityMode" value="disabled" /&gt;
              &lt;/bean&gt;
          &lt;/constructor-arg&gt;
          &lt;property name="user"        value="myUser" /&gt;
          &lt;property name="password"    value="myPassword" /&gt;
          &lt;property name="autoStartup" value="false" /&gt; 
      &lt;/bean&gt;
  
      &lt;int-xmpp:outbound-channel-adapter id="my-xmpp-outbound-adapter"
          channel="my-input-channel"
          xmpp-connection="my-xmpp-connection"/&gt;
  </code></pre>
  
  <p>Someone else has noticed the same behavior?</p>
  
  <p>Thank you in advance.
  Massimo</p>