Announcement Announcement Module
Collapse
No announcement yet.
using ssl protocol Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • using ssl protocol

    Good afternoon.
    RabbitMq Java Client's ConnectionFactory facilitates using ssl protocol. Is CachingConnectionFactory in future will provide this option.

    Thanks
    Venkat

  • #2
    CachingConnectionFactory is basically a "wrapper" and can be configured with any instance of com.rabbitmq.client.ConnectionFactory as its target, so that should allow you to use any functionality you want on that target.

    Comment


    • #3
      Good afternoon Mark. I appreciate and thank you for your feedback.
      I could make use of ssl protocol. Following is the code snippet:

      try {
      ConnectionFactory cf = new ConnectionFactory();
      cf.setHost("localhost");
      cf.setUsername("guest");
      cf.setPassword("guest");
      cf.setPort(5672);
      cf.useSslProtocol();
      CachingConnectionFactory ccf = new CachingConnectionFactory(cf);
      } catch (KeyManagementException e) {
      e.printStackTrace();
      } catch (NoSuchAlgorithmException e) {
      e.printStackTrace();
      }

      Comment

      Working...
      X