Open giftig opened 6 years ago
I just spotted the clue in the error message, com.rabbitmq.client.MalformedFrameException
. I take it the AMQP support is more specifically aimed at rabbitmq. I don't see anything about using a different underlying client, though, so is ActiveMQ simply not supported?
The RabbitMQ client that we use works for any AMQP 0.9.1-compliant server, not only RabbitMQ.
However, it seems that ActiveMQ is using AMQP 1.0 and that's not supported at the moment.
Indeed, I also checked it from the other direction but it appears AMQ doesn't support 0.9.1 and has no intention of back-porting older protocol versions: http://activemq.2283324.n4.nabble.com/jira-Closed-AMQ-5332-Support-AMQP-0-9-1-td4686862.html
Since I'm playing around with alpakka in a new project and can choose whichever message queue I want, I simply used RabbitMQ instead of ActiveMQ. It'd be nice to have the more recent AMQP version supported, though.
It would be nice indeed.
I think that the problem is that AMQP 1.0 is not "just the next version". It's pretty much a new protocol. So some brokers like RabbitMQ decided to stay on 0.9.
Maybe you can change the title to Add Support for AMQP 1.0
or something like that to make the issue more clear.
I'm not sure why AMQ announces its version as 3,1,0,0 if it's AMPQ 1.0, but done. I guess the numbering totally changed with specification v1, and it's not "just a new version", like you said.
Good to get this discussed. The least we can do for now is to add a section on supported versions in the docs for the AMQP connector.
Hi, after a bit of playing around with using alpakka to connect to ActiveMQ, I discovered that the AMQP protocol used by
alpakka-stream-alpakka-amqp
doesn't match the protocol version used by ActiveMQ:It seems AMQ doesn't support AMQP version 0.9.1, and I don't see anything in the alpakka documentation about different versions. Is this a known issue? Am I using the wrong connector?