-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.2
-
None
-
%
I set up mq-gateway with following properties:
Configuration details ---------------------------- PID: io.fabric8.gateway.detecting port 61619 zooKeeperPath /fabric/registry/clusters/amq mqttEnabled true stompEnabled true openWireEnabled true sslEnabled true keyStoreURL file:/home/avano/work/ssl/broker.ks keyStorePassword password keyAlias broker keyPassword password1234 trustStoreURL file:/home/avano/work/ssl/broker.ts trustStorePassword password loadBalancerType roundrobin defaultVirtualHost test stickyLoadBalancerCacheSize 10000 amqpEnabled true httpEnabled true
Establishing a connection using following snippet works OK:
System.setProperty("javax.net.ssl.trustStore","/home/avano/work/ssl/client.ts"); System.setProperty("javax.net.ssl.trustStorePassword", "password"); System.setProperty("javax.net.ssl.keyStore","/home/avano/work/ssl/client.ks"); System.setProperty("javax.net.ssl.keyStorePassword", "password"); ConnectionFactory cf = new ActiveMQConnectionFactory("admin", "admin", "ssl://localhost:61619");
but this connection is closed after 5 seconds and I can see in the log:
2015-06-02 09:54:21,532 | INFO | entloop-thread-0 | DetectingGateway | ? ? | 279 - io.fabric8.gateway-core - 1.2.0.redhat-121 | SSL Connection from '/127.0.0.1:57423' 2015-06-02 09:54:21,768 | INFO | entloop-thread-0 | DetectingGateway | ? ? | 279 - io.fabric8.gateway-core - 1.2.0.redhat-121 | Connecting client from '/127.0.0.1:57423' requesting virtual host 'test' to '10.40.3.34:56361' using the openwire protocol 2015-06-02 09:54:26,515 | INFO | entloop-thread-0 | DetectingGateway | ? ? | 279 - io.fabric8.gateway-core - 1.2.0.redhat-121 | Gateway client '/127.0.0.1:57423' protocol detection timeout.