activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daleCooper <>
Subject Support for stomp over ws support? (Withouth port)
Date Wed, 17 May 2017 15:15:44 GMT

I was trying to make a stomp over websocket java client to connect me to url 
ws//my-ws-server/stomp (withouth port) with user/pwd credentials to
subscribe me to topic/hello topic.

To make this i was making an activeconnectionFactory this way:

        ActiveMQConnectionFactory connectionFactory = new
ActiveMQConnectionFactory("user", "pwd", "stomp://my-ws-server/stomp");

but it crashes when i launch it due to i have not specified the port:

Caught exception!:Could not connect to broker URL:
stomp:// Reason:
java.lang.IllegalArgumentException: port out of range:-1

Isn't there any way to use a ActiveMQConnectionFactory withouth port?


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message