title: Java WSS Connection Could not create transport exception
body: <p>I'm so stuck about this.</p>
  <p>I want to subscribe an ActiveMQ topic. ActiveMQ works on Centos machine, <strong>NOT LOCALHOST</strong>. I can consume messages with tcp, http protocols. Code;</p>
  <pre class="lang-java prettyprint-override"><code>public static void main(String[] args) throws JMSException {
      PropertyUtils.loadPropertyFile();
      Properties receiverProperties = PropertyUtils.getreceiverProperties();
  
      // URL of the JMS server
      String url = (String) receiverProperties.get(&quot;receiver.connection.url&quot;);
  
      // Name of the queue we will receive messages from
      String subject = (String) receiverProperties.get(&quot;receiver.topic.name&quot;);
  
      // Getting JMS connection from the server
      ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(url);
      Connection connection = connectionFactory.createConnection();
      connection.start();
  
      // Creating session for getting messages
      Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
  
      // Getting the topic
      Destination destination = session.createTopic(subject);
  
      // MessageConsumer is used for receiving (consuming) messages
      MessageConsumer consumer = session.createConsumer(destination);
      Message message = null;
  
      // Here we receive the message.
      while (true) {
          message = consumer.receive();
          if (message instanceof TextMessage) {
              TextMessage textMessage = (TextMessage) message;
              System.out.println(&quot;Received message '&quot; + textMessage.getText() + &quot;'&quot;);
          }
      }
  
      // We will be using TestMessage in our example. MessageProducer sent us a
      // TextMessage
      // so we must cast to it to get access to its .getText() method.
      // connection.close();
  }
  </code></pre>
  <p>I want to use wss protocol. This is a must for me. When I changed url with wss://host:port getting;</p>
  <pre><code>Could not create Transport. Reason: java.io.IOException: createTransport() method not implemented!
  </code></pre>
  <p>So I checked the alternatives. People figure this out with Stomp over WS. My first achievement is wss connection.</p>
  <p><strong>Any</strong> recommendation will be appreciated!</p>