quarkus

REST-Endpoint: Async execution without return value

走远了吗. 提交于 2020-12-26 08:32:08
问题 My problem might be very easy to solve, but I don't get it at the moment. In my Quarkus-App I have a REST-Endpoint which should call a method, don't wait for the result and immediately return a 202-HTTP-Statuscode. @POST @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public Response calculateAsync(String input) { process(); return Response.accepted().build(); } I've read the Quarkus-Documentation about Vert.x and asynchronous processing. But the point there is:

Integration testing with Testcontainers + Quarkus + MongoDB

筅森魡賤 提交于 2020-12-05 12:10:36
问题 Trying out testcontainers for integration testing. I am testing rest api endpoint. Here is the technology stack - quarkus, RESTEasy and mongodb-client I am able to see MongoDB container is started successfully but getting exception. Exception: "com.mongodb.MongoSocketOpenException: Exception opening socket" 2020-04-26 15:13:18,330 INFO [org.tes.doc.DockerClientProviderStrategy] (main) Loaded org.testcontainers.dockerclient.UnixSocketClientProviderStrategy from ~/.testcontainers.properties,