title: Camel mina component dropping connections
body: <p>I am hoping that someone can help me with my problem.  I have a client application that sends XML messages to Camel.  I am using Mina2 v2.11.1 component in Camel as a endpoint to consume incoming XML.  I have no control over the client application and in most cases it requires a response to the request.  However there are a 2 messages that do not require a response.  I am finding that if I do not respond to every message then it will drop the connection, this is not desired as it needs to maintain the connection wether a response is sent or not.  I tried to set the <b>disconnectOnNoReply = false</b>, but it does not seem to be working as it continues to drop the connection.  My route in camel is setup as… </p>
  
  <pre><code>&lt;camel:route&gt; 
          &lt;camel:from uri="mina2:tcp://10.5.60.60:9000?codec=#myDecoder&amp;amp;disconnectOnNoReply=false"/&gt; 
          &lt;camel:bean ref="OutputProcessor"/&gt; 
  &lt;/camel:route&gt; 
  </code></pre>
  
  <p>Is it possible that I am doing something wrong in my encoder that is causing this to happen?  My encoder looks like… </p>
  
  <pre><code>@Override 
  public void encode(IoSession is, Object o, ProtocolEncoderOutput peo) throws Exception { 
  
  
      if (o != null) { 
          IoBuffer ioBuffer = IoBuffer.allocate(512, false); 
          ioBuffer.setAutoExpand(true); 
          ioBuffer.setAutoShrink(true); 
          byte[] responseByteArr = (byte[]) o; 
          ioBuffer.put(responseByteArr); 
          ioBuffer.flip();    //Flip it or there will be nothing to send 
          peo.write(ioBuffer); 
          peo.flush(); 
      } 
  } 
  </code></pre>
  
  <p>If anyone can shed some light on this I would really appreciate it! </p>
  
  <p>Thanks! </p>
  
  <ul>
  <li>Tim</li>
  </ul>