title: ActiveMQ vs AMQP .NET Lite versions
body: <p>ActiveMQ, as per <a href="http://activemq.apache.org/maven/5.14.4/apidocs/src-html/org/apache/activemq/transport/amqp/AmqpWireFormat.html" rel="nofollow noreferrer">line 151 in AmqpWireFormat</a>, refuses connections with a AMQP protocol version other than 1.0.0.</p>
  
  <p>AMQP .NET Lite, as per <a href="https://github.com/Azure/amqpnetlite/blob/master/src/Connection.cs#L411" rel="nofollow noreferrer">line 411 in Connection</a>, sends 0.1.0.0. At the same time it claims to do <a href="https://github.com/Azure/amqpnetlite" rel="nofollow noreferrer">Full control of AMQP 1.0 protocol behavior</a>.</p>
  
  <p>Obviously ActiveMQ refuses connections from AMQP .NET Lite with "Connection attempt from non AMQP v1.0 client. AMQP,0,1,0,0".</p>
  
  <p>The client does:</p>
  
  <pre><code>Address address = new Address("amqp://localhost:5672");
  Connection connection = new Connection(address);
  Session session = new Session(connection);
  </code></pre>
  
  <p>And ActiveMQ logs:</p>
  
  <pre><code>2017-03-28 09:11:28,403 | DEBUG | Transport Connection to: tcp://0:0:0:0:0:0:0:1:54352 failed: org.apache.activemq.transport.amqp.AmqpProtocolException: Connection from client using unsupported AMQP attempted | org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ Transport: tcp:///0:0:0:0:0:0:0:1:54352@5672
  org.apache.activemq.transport.amqp.AmqpProtocolException: Connection from client using unsupported AMQP attempted
          at org.apache.activemq.transport.amqp.protocol.AmqpConnection.onAMQPData(AmqpConnection.java:339)[activemq-amqp-5.14.4.jar:5.14.4]
          at org.apache.activemq.transport.amqp.AmqpProtocolDiscriminator.onAMQPData(AmqpProtocolDiscriminator.java:96)[activemq-amqp-5.14.4.jar:5.14.4]
          at org.apache.activemq.transport.amqp.AmqpTransportFilter.onCommand(AmqpTransportFilter.java:107)[activemq-amqp-5.14.4.jar:5.14.4]
          at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)[activemq-client-5.14.4.jar:5.14.4]
          at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:233)[activemq-client-5.14.4.jar:5.14.4]
          at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:215)[activemq-client-5.14.4.jar:5.14.4]
          at java.lang.Thread.run(Thread.java:745)[:1.8.0_112]
  </code></pre>
  
  <p>On the command line it says:</p>
  
  <pre><code> WARN | Connection attempt from non AMQP v1.0 client. AMQP,0,1,0,0
  </code></pre>
  
  <p>ActiveMQ then aborts the connection.</p>
  
  <p>The ActiveMQ configuration includes:</p>
  
  <pre><code>&lt;transportConnectors&gt;
      &lt;transportConnector name="amqp" uri="amqp://0.0.0.0:5672" /&gt;
  &lt;/transportConnectors&gt;
  </code></pre>
  
  <p>This all looks to me like ActiveMQ expects version 1.0.0.0 and amqpnetlite sends 0.1.0.0.</p>
  
  <p>Where to, from here?</p>