Injection of SOAP client without using CXFClient #952
Replies: 7 comments 1 reply
-
No, it is currently not possible, unless you implement a bean |
Beta Was this translation helpful? Give feedback.
-
and I suppose native support also is out of question. Why did you say "currently" ? Thank you in advance |
Beta Was this translation helpful? Give feedback.
-
Not really, but I am open to discuss the idea. The main problem to solve would be the configuration. The current |
Beta Was this translation helpful? Give feedback.
-
I was curious, how other Quarkus extensions having named config sets solve the bean mapping problem. I found Argoal and Caffeine which both have their own annotations to set the key: |
Beta Was this translation helpful? Give feedback.
-
I can/want to contribute on this. If you want to use JPA you can use the official annotation PersistenceUnit to switch between multiple configurations : So you are not forced to use Argoal specific annotation. If you want I can make a contribution when there is an extra/optional boolean config to enable/support the Named annotation alongside the CXFClient. So enabling this configuration you will able to inject both this :
and this :
I think this is an elegant solution, Named is a standard CDI qualifier used in situations like this. |
Beta Was this translation helpful? Give feedback.
-
I give up. Nevermind, probably to make this clean, more support on spec side is required (maybe a combination of jakarta ws and jakarta config). |
Beta Was this translation helpful? Give feedback.
-
Thanks for trying this @amoscatelli! I created a follow up issue for the non-ambiguous cases #961 |
Beta Was this translation helpful? Give feedback.
-
Hi everybody,
Thank you for your work !
All I want to know is :
Can I inject an instance of the SEI without using the io.quarkiverse.cxf.annotation.CXFClient annotation ?
I would like not to use quarkus/quarkiverse specific API to use standard JAX-WS api ...
Please let me know,
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions