title: Does RabbitMQ really work with Amazon MQ (ActiveMQ)?
body: <p>I've got a Java RabbitMQ producer application, and I want to send some messages on ActiveMQ from Amazon MQ (I've created the broker). I follow the step from <a href="https://aws.amazon.com/es/blogs/compute/migrating-from-rabbitmq-to-amazon-mq/" rel="nofollow noreferrer">this page</a>.</p>
  
  <p>I made the Java example for RabbitMQ, at first it seems fine but when I create the connection to my Endpoint (username and password too): <code>amqps://x-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-x.xx.xx-xxxx-x.amazonaws.com:5671</code></p>
  
  <p>in this line:</p>
  
  <pre class="lang-java prettyprint-override"><code>factory.newConnection();
  </code></pre>
  
  <p>I've got these error:</p>
  
  <p>Error in the internal library:</p>
  
  <pre><code>[AMQP Connection xx.xx.xx.xx:5671] ERROR com.rabbitmq.client.impl.ForgivingExceptionHandler - An unexpected connection driver error occured
  com.rabbitmq.client.MalformedFrameException: AMQP protocol version mismatch; we are version 0-9-1, server sent signature 3,1,0,0
      at com.rabbitmq.client.impl.Frame.protocolVersionMismatch(Frame.java:170)
      at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:107)
      at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:184)
      at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:645)
      at java.lang.Thread.run(Thread.java:745)
  </code></pre>
  
  <p>Error I've caught up:</p>
  
  <pre><code>null com.rabbitmq.client.ShutdownSignalException: connection error
  </code></pre>
  
  <p>I understand the principal error was the mismatch version, but is there a way to fix it by changing the version protocol or it is not possible?</p>
  
  <p>Because RabbitMQ uses AMQP 0-9 in the example.</p>