<html><body>I'm trying to configure HornetQ on AS 6.1 so it accepts encrypted connections. I coud not find a tutorial on the subject, and only very sparse documentation, but from what I got this should work. But the JavaSE client cannot connect.<br><br>The client works if I lookup for a non-SSL connecton factory. If It looks for an SSL-enabled connenction factory, it gets an<br>javax.jms.JMSException: Failed to create session factory<br><br>When calling createConnection:<br>ConnectionFactory jmsConnectionFactory = (ConnectionFactory)ctx.lookup("SSLXAConnectionFactory");<br>con = jmsConnectionFactory.createConnection();<br><br>I changed hornetq-configuration.xml to add a connector and an acceptor:<br><br> <connector name="netty-ssl"><br> <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class><br> <param key="host" value="${jboss.bind.address:localhost}"/><br> <param key="port" value="${hornetq.remoting.netty.ssl.port:5446}"/><br> <param key="ssl-enabled" value="true"/><br> <param key="ssl-enabled" value="true"/><br> <param key="key-store-path" value="${jboss.server.home.dir}/conf/jms.keystore"/><br> <param key="key-store-password" value="secreta"/><br> </connector><br><br> <acceptor name="netty-ssl"><br> <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class><br> <param key="host" value="${jboss.bind.address:localhost}"/><br> <param key="port" value="${hornetq.remoting.netty.port.ssl:5446}"/><br> <param key="ssl-enabled" value="true"/><br> <param key="key-store-path" value="${jboss.server.home.dir}/conf/jms.keystore"/><br> <param key="key-store-password" value="secreta"/><br> <param key="trust-store-path" value="${jboss.server.home.dir}/conf/cliente.truststore"/><br> <param key="trust-store-password" value="secreta"/><br> </acceptor><br><br>And changed hornetq-jms.xml to bind to JNDI a conection factory using them:<br><br> <connection-factory name="NettySSLConnectionFactory"><br> <xa>true</xa><br> <connectors><br> <connector-ref connector-name="netty-ssl"/><br> </connectors><br> <entries><br> <entry name="/SSLConnectionFactory"/><br> <entry name="/SSLXAConnectionFactory"/><br> </entries><br> </connection-factory><br><br>JBoss AS 6.1 starts without an error in server.log<br><br>jms.keystore and client.truststore were generated using keytool, the same way it works to configure a remoting ssl invoker for EJB3.<br><br>I even download hornetq standalone and looked at the examples, it looks like I did the same as sample "ssl-enabled", but it won't work for me.<br><br>Please, any hint on what I did wrong?<br><br><br>[]s, Fernando Lozano<br><br></body></html>