System.setProperty("javax.net.ssl.keyStore", certBase + sep + "client.ks");
System.setProperty("javax.net.ssl.keyStorePassword", "password");
System.setProperty("javax.net.ssl.keyStoreType", "jks");
SocketFactory factory = SSLSocketFactory.getDefault();
return factory.createSocket(host, port);
}
public void stompConnectTo(String connectorName, String extraHeaders) throws Exception {
String host = broker.getConnectorByName(connectorName).getConnectUri().getHost();
int port = broker.getConnectorByName(connectorName).getConnectUri().getPort();