Can't implement quarkus-rest-client-reactive in Quarkus 3.17.6 (It worked alright in 3.11.2) #45573
Closed
skthodoris
started this conversation in
Community
Replies: 1 comment 4 replies
-
quarkus-rest-client is the reactive one. see https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.9 |
Beta Was this translation helpful? Give feedback.
4 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.
-
I also posted this on https://stackoverflow.com/questions/79354885/cant-implement-quarkus-rest-client-reactive-in-quarkus-3-17-6-it-worked-alrigh
I had the following implementation of quarkus-rest-client-reactive in version 3.11.2
//POM
io.quarkus quarkus-rest-client-reactive//Interface to register the client
import io.smallrye.mutiny.Uni;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import java.util.List;
@path("/v1/db/comments")
@RegisterRestClient(configKey = "comment-reactive-client")
public interface CommentReactiveRestClient {
@get
Uni<List> getComments();
}
//Quarkus Resource where the client is invoked
@Inject
@restclient
CommentReactiveRestClient commentReactiveRestClient;
@get
@path("/api/comments")
public Multi apiCall() {
return commentReactiveRestClient.getComments().onItem().transformToMulti(list -> Multi.createFrom().iterable(list));
}
When i switched to Quarkus version 3.17.6. The dependency for the reactive client was unavailable. In Quarkus documentation, i found only quarkus-rest-client, but this is not a reactive client. Is there any reactive client availabe in the new Quarkus version?
Beta Was this translation helpful? Give feedback.
All reactions