此问题可能由于SSL握手失败或驱动程序未正确配置而导致。以下是可能的解决方案:
    std::string trustedCerts("ssl/trustedCerts");
    // Set location of SSL trusted certificates
    cms::ssl::SSLContext::setDefaultTrustedCertsLocation(trustedCerts);
    std::string trustedCerts("ssl/trustedCerts");
    std::string password("password");
    std::string type("jks");
    // Set location of SSL trusted certificates
    cms::ssl::SSLContext::setDefaultTrustedCertsLocation(trustedCerts);
    // Create the trust store
    cms::ssl::SSLContext* sslContext = new cms::ssl::SSLContext(cms::ssl::SSLContext::TLS);
    std::string trustStore(trustedCerts);
    sslContext->setTrustStore(trustStore, type, password);
    // Set SSL context
    connectionFactory->setSSLContext(sslContext);
通过检查ActiveMQ服务器日志来查看是否有任何有关连接问题的详细信息。
考虑尝试在ActiveMQ安装包中提供的示例代码中查找关于SSL配置的示例。
通过尝试这些解决方案,您应该能够正确配置ActiveMQ C++ SSL连接并解决此问题。
                    上一篇:acid图数据库的研发上
                
下一篇:ACI未接收到UDP通信