diff --git a/patchfinder/src/main/java/messenger/Messenger.java b/patchfinder/src/main/java/messenger/Messenger.java index e163856d9..48e07bc01 100644 --- a/patchfinder/src/main/java/messenger/Messenger.java +++ b/patchfinder/src/main/java/messenger/Messenger.java @@ -35,6 +35,8 @@ import java.io.IOException; import java.nio.charset.StandardCharsets; +import java.security.KeyManagementException; +import java.security.NoSuchAlgorithmException; import java.sql.ResultSet; import java.util.*; import java.util.concurrent.*; @@ -69,13 +71,13 @@ public Messenger(String host, String vhost, int port, String username, String pa this.factory.setUsername(username); this.factory.setPassword(password); - try { - factory.useSslProtocol(); - } catch (NoSuchAlgorithmException e) { - throw new RuntimeException(e); - } catch (KeyManagementException e) { - throw new RuntimeException(e); - } +// try { +// factory.useSslProtocol(); +// } catch (NoSuchAlgorithmException e) { +// throw new RuntimeException(e); +// } catch (KeyManagementException e) { +// throw new RuntimeException(e); +// } this.inputQueue = inputQueue; } @@ -85,13 +87,13 @@ protected Messenger(ConnectionFactory factory, String inputQueue) { logger.info("Initializing Messenger..."); this.factory = factory; - try { - factory.useSslProtocol(); - } catch (NoSuchAlgorithmException e) { - throw new RuntimeException(e); - } catch (KeyManagementException e) { - throw new RuntimeException(e); - } +// try { +// factory.useSslProtocol(); +// } catch (NoSuchAlgorithmException e) { +// throw new RuntimeException(e); +// } catch (KeyManagementException e) { +// throw new RuntimeException(e); +// } this.inputQueue = inputQueue; }