We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e288093 + 54299d9 commit 1ec2dafCopy full SHA for 1ec2daf
src/main/java/com/rabbitmq/client/ConnectionFactory.java
@@ -226,7 +226,10 @@ public void setUri(URI uri)
226
// nothing special to do
227
} else if ("amqps".equals(uri.getScheme().toLowerCase())) {
228
setPort(DEFAULT_AMQP_OVER_SSL_PORT);
229
- useSslProtocol();
+ // SSL context not set yet, we use the default one
230
+ if (this.sslContext == null) {
231
+ useSslProtocol();
232
+ }
233
} else {
234
throw new IllegalArgumentException("Wrong scheme in AMQP URI: " +
235
uri.getScheme());
0 commit comments