我尝试将php客户端(使用php-amqplib lib)连接到基于wso2mb的服务器(wso2消息代理版本3.1.0)。
在使用amqp_consumer.php并且始终锁定此错误时,我无法成功:
INFO {org.wso2.andes.server.protocol.AMQProtocolEngine} - 无法在处理时创建SASL服务器:AMQPLAIN:[ConnectionStartOkBodyImpl:clientProperties = {product = [LONG_STRING:AMQPLib],platform = [LONG_STRING:PHP], version = [LONG_STRING:2.6],information = [LONG_STRING:],copyright = [LONG_STRING:],capabilities = [FIELD_TABLE:{authentication_failure_close = [BOOLEAN:true],publisher_confirms = [BOOLEAN:true],consumer_cancel_notify = [BOOLEAN:true] ],exchange_exchange_bindings = [BOOLEAN:true],basic.nack = [BOOLEAN:true],connection.blocked = [BOOLEAN:true]}]},机制= AMQPLAIN,响应= [5,76,79,71,73, 78,83,0,0,0,5,97,100,109,105,110,8,80,65,83,83,87,79,82,68,83,0,0,0,5, 97,100,109,105,110],locale = en_US] [2016-11-04 08:05:26,901] INFO {org.wso2.andes.server.protocol.AMQProtocolEngine} - 由于以下原因导致关闭连接:org.wso2.andes.AMQConnectionException:无法创建SASL服务器:AMQPLAIN [错误代码506:资源错误]
我在confing.php中使用thos params作为conexions params
require_once __DIR__ . '/../vendor/autoload.php';
define('HOST', 'localhost');
define('PORT', 5692);
define('USER', 'admin');
define('PASS', 'admin');
define('VHOST', '/');
我的问题: 你能推荐一些php库/教程来建立一些php代码和wso2mb之间的通信吗? 2. wso2mb允许的连接方法是什么? (PLAIN,AMQPLAIN ......?) 3.帮助PLZ:)