【发布时间】:2019-09-27 02:21:35
【问题描述】:
我目前正在使用activemq-cpp c++客户端连接后端服务器。使用 TCP 协议时,可以进行通信。我在https://activemq.apache.org/components/cms/example 使用上面的示例。但现在我需要使用 SSL 协议。我的代码如下:
brokerURI ="failover:(ssl://xxxx:61617)";
auto connectionFactory = new ActiveMQConnectionFactory(brokerURI);
connectionFactory->setUsername(用户名);
connectionFactory->setPassword(密码);
connection = connectionFactory->createConnection();
连接->start();
我卡在了启动函数中,没有抛出任何异常。我不知道为什么。能给我一个简单的c++ ssl代码连接demo让我学习吗?谢谢。
【问题讨论】:
标签: ssl activemq-cpp