/** * Get a possibly pre-existing connection to the destination. * * @param destination the destination URI * @return the future (or existing) connection */ @Deprecated default IoFuture<Connection> getConnection(URI destination) { return getConnection(destination, (String) null, null); }
/** * Get a possibly pre-existing connection to the destination. The connection authentication configuration is used * to authenticate * the peer if the connection supports multiple identity switching. The run authentication configuration is used to * authenticate * the peer if the connection does not support multiple identity switching. * * @param destination the destination URI (must not be {@code null}) * @param sslContext the SSL context to use for secure connections (may be {@code null}) * @param connectionConfiguration the connection authentication configuration (must not be {@code null}) * @param operateConfiguration the run authentication configuration (must not be {@code null}) * @return the future (or existing) connection */ @Deprecated default IoFuture<Connection> getConnection(URI destination, SSLContext sslContext, AuthenticationConfiguration connectionConfiguration, AuthenticationConfiguration operateConfiguration) { return getConnection(destination, sslContext, operateConfiguration); }
endpoint.getConnection(uri, "ejb", "jboss");
/** * Get a possibly pre-existing connection to the destination. * * @param destination the destination URI * @return the future (or existing) connection */ @Deprecated default IoFuture<Connection> getConnection(URI destination) { return getConnection(destination, (String) null, null); }
/** * Get a possibly pre-existing connection to the destination. The connection authentication configuration is used * to authenticate * the peer if the connection supports multiple identity switching. The run authentication configuration is used to * authenticate * the peer if the connection does not support multiple identity switching. * * @param destination the destination URI (must not be {@code null}) * @param sslContext the SSL context to use for secure connections (may be {@code null}) * @param connectionConfiguration the connection authentication configuration (must not be {@code null}) * @param operateConfiguration the run authentication configuration (must not be {@code null}) * @return the future (or existing) connection */ @Deprecated default IoFuture<Connection> getConnection(URI destination, SSLContext sslContext, AuthenticationConfiguration connectionConfiguration, AuthenticationConfiguration operateConfiguration) { return getConnection(destination, sslContext, operateConfiguration); }
endpoint.getConnection(uri, "ejb", "jboss");
endpoint.getConnection(uri, "ejb", "jboss");