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.
There are both SSL and HTTP(s) examples in the distro.
Don't confuse securing the *JNDI lookup* with the actual HornetQ traffic. Rememeber that the JNDI implementation is not even part of the HornetQ codebase.