Skip to content

LRA: expose WebClient configurations #4682

Open
@rmacario

Description

Environment Details

  • Helidon Version: 2.5.1
  • Helidon MP
  • JDK version: 15.0.2
  • OS: Linux
  • Docker version (if applicable):

Problem Description

It seems to be impossible to override default configurations in the global WebClient (io.helidon.webclient.NettyClient) and without that I can't use LRA with a proxy, because his WebClient instantiation is transparent to the dev (io.helidon.lra.coordinator.client.narayana.NarayanaClient#prepareWebClient).

So, after some investigation I ended with the follow doubts:
1- Is it possible to overrides the default configurations defineds on NettyClient ?

        Config globalConfig = Contexts.globalContext().get(Config.class).orElseGet(Config::empty);
        GLOBAL_CLIENT_CONFIG = globalConfig.get("client");

2- Would not be better to accept the default systems properties like http.proxyHost, etc ?
3- Assuming that it is possible to override these configurations (proxy, timeout, etc) programatically, is it possible also to define it by the property files ?

Metadata

Assignees

Labels

P2bugSomething isn't workinglraquestionFurther information is requested

Type

No type

Projects

  • Status

    In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions