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 a55b97f + 1ec2daf commit 68772bcCopy full SHA for 68772bc
src/main/java/com/rabbitmq/client/ConnectionFactory.java
@@ -230,7 +230,10 @@ public void setUri(URI uri)
230
// nothing special to do
231
} else if ("amqps".equals(uri.getScheme().toLowerCase())) {
232
setPort(DEFAULT_AMQP_OVER_SSL_PORT);
233
- useSslProtocol();
+ // SSL context not set yet, we use the default one
234
+ if (this.sslContext == null) {
235
+ useSslProtocol();
236
+ }
237
} else {
238
throw new IllegalArgumentException("Wrong scheme in AMQP URI: " +
239
uri.getScheme());
0 commit comments