1 Reply Latest reply on Jun 8, 2010 1:33 PM by Tim Fox

    HornetQ over HTTPS configure

    Alexander Cherpicka Newbie

      Hello, I'm using jboss-5.1.0.GA with  hornetq-2.1.0.Final.

      When I try to connect  in this way everything works fine:

       

      properties.put("java.naming.factory.initial", "org.jboss.naming.NamingContextFactory");
      properties.put("java.naming.provider.url", "localhost");
      properties.put("java.naming.factory.url.pkgs", "org.jboss.naming");
      ctxSocket = new InitialContext(properties);
      ConnectionFactory connectionFactory = (ConnectionFactory)ctxSocket.lookup("ConnectionFactory");
      try{
           Main.topic = (Destination)Main.ctx.lookup(budgetBean.getTopicJNDIName());
      }
      catch(NamingException ex){
           ex.printStackTrace();
      }
      

       

      But I need to connect over HTTPS to the topic created  on the server.
      As far as I understood, I need to properly configure  hornetq and connection.

      Could  someone show a simple example of using HornetQ via HTTPS, and a sample  server configuration for this.