How to Handle Multiple Implementations of the Same REST Interface in Quarkus? #51162
Unanswered
SnehBratJha
asked this question in
Q&A
Replies: 1 comment
-
|
More details about this exist in https://stackoverflow.com/q/79826533/2504224 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm migrating a JBoss EAP application to Quarkus. My application has multiple implementations of the same REST service interface for failover/fallback scenarios:
ManagerClientImpl- Primary HTTP client (calls external service)ManagerClientBackup- Local fallback implementationBoth classes implement the same interface:
The ErrorWhen building with Quarkus, I get:[ERROR] GET /rate is declared by:
[ERROR] at io.quarkus.resteasy.reactive.server.deployment.ResteasyReactiveProcessor.checkForDuplicateEndpoint(ResteasyReactiveProcessor.java:1504)
[ERROR] at io.quarkus.resteasy.reactive.server.deployment.ResteasyReactiveProcessor.setupEndpoints(ResteasyReactiveProcessor.java:731)
In JBoss, this configuration works fine.
Cannot significantly change existing architecture.
Both implementations must exist in the JAR (for producer pattern to work)
Beta Was this translation helpful? Give feedback.
All reactions