c++ - Change qpid Protocol version number using c++ api
问题描述
While running through the qpid c++ api tutorial I ran into "Session ended by peer with amqp:internal-error" which i assume is because of different versions of the qpid api and my broker (Rabbitmq).
I have changed the rabbitmq to use protocol 1.0, but it looks like qpid defaults to 0-10. I have found a bunch of articles saying I should move up to version 1.0 of the api, but I have not been able to find out how. Does anyone know how to do this?
解决方案
找出解决方案,创建连接时,您可以在那里设置协议,但我认为您可能还需要安装 qpid-proton。
Connection connection("rabbitmq-serv:5672","{protocol: 'amqp1.0'}");
它仍然失败,但 rabbitmq 似乎承认它的存在
另外qpid-proton好像连接rabbitmq没问题,默认使用amqp1.0
推荐阅读
- redash - Redash:从其他实例导入查询
- java - 是否有任何 java 插件可以自动使用 getter setter(如果提供)而不是 object.field?
- python - 使用python和通配符在目录中查找文件
- r - 在 R 中绘制宾夕法尼亚县的热图
- geb - 在 Geb 中指定多个环境
- django - Django:不支持的操作数类型 - :'NoneType'和'NoneType'
- google-sheets - 具有多个条件的 ARRAYFORMULA 总和
- python - 遍历字符串列表并替换某些字符
- java - 匿名内部类的 ClassName 相同 - obj.getClass().getName()
- python - 张量流中通过 3D 张量乘法得到的 3D 张量的形状是什么?