Permalink
Browse files

[WFLY-7636] Use Endpoint.builder() instead of getting the currently a…

…ctive Remoting endpoint in LazyConnectionContextSelector
  • Loading branch information...
1 parent 812ef96 commit b692151090bb77a29334825debfb71ce0df82a24 @fjuma fjuma committed Nov 21, 2016
@@ -85,7 +85,7 @@ private synchronized void createConnection() {
final AuthenticationContext context = AuthenticationContext.empty().with(MatchRule.ALL, mergedConfiguration);
// open a connection
- endpoint = Endpoint.getCurrent();
+ endpoint = Endpoint.builder().setEndpointName("endpoint").build();
final IoFuture<Connection> futureConnection = endpoint.connect(uri, OptionMap.create(Options.SASL_POLICY_NOANONYMOUS, Boolean.FALSE, Options.SASL_POLICY_NOPLAINTEXT, Boolean.FALSE), context);
connection = IoFutureHelper.get(futureConnection, 30L, TimeUnit.SECONDS);

0 comments on commit b692151

Please sign in to comment.