-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fault Tolerance support in builder created client #347
Comments
The short answer is yes - FT CDI interceptor bindings should be honored - even for programmatically-created client instances. This is the text I would refer to:
Also:
Neither texts says that FT interceptors are limited only to CDI-injected interfaces. I think it would be good to add a test to CDIInterceptorTest to use a programmatic client in addition to the already-tested CDI-injected client. |
I can understand the CDI interceptors work for injected cases. I am wondering how you expect to get CDI interceptors for instances not created and managed by CDI? |
Open Liberty supports CDI interceptors from programmatic clients. Perhaps you could look at their code (and the CXF code it is built on) to see how it works? That said, CDI has a variety of ways to get interceptors for specified bindings - or you could go all the way of making the programmatically-created instance be managed by CDI. I'm no longer with IBM, and so I haven't been too much involved in MP Rest Client lately, so if the community would prefer that CDI interceptors be limited to CDI-created/managed client instances, it is fine with me. :-) |
This needs further discussion and investigation. |
I would like to ask you, whether it is expected for clients created via builder (not CDI), to support FT CDI interceptor bindings. There is no TCK test which would verify such a behavior and therefore I am not sure whether it is actually required.
The text was updated successfully, but these errors were encountered: