I have a REST API which was created purely using Vert.x, I would like to instrument it for AWS X-RAY and in order to do that I need to add a servlet filter. I’m creating a webserver like this: In the documentation for AWS X-RAY they’ve only mentioned Tomcat (https://docs.aws.amazon.com/xray/latest…
Tag: vert.x
quarkus @ObservesAsync invoke Uni
What’s the best way to invoke Uni in an async observer? It would be great if I could just return Uni but unfortunately that doesn’t work. Answer As mentioned by @ladicek, you can: use a synchronous observer and block until termination use a synchronous observer and “trigger” the async …
Quarkus exception Loading KafkaConsumerRebalanceListener
Having this Listener KafkaConsumerRebalanceListener class When I add into my application.properties file And adding this dependency into another class I’m having this exception when I run the service Any idea what’s wrong? Regards Answer You have to use same @Identifier(“responses”) ne…
Vertx JDBCCLient insert BLOB into database
I used vertx 3.9.12 and JDBCCLient. How to insert image to BLOB column? Thank in advance Answer Unwrap the io.vertx.ext.sql.SQLConnection to java.sql.Connection and then create a Blob that you add to the params:
Connection Reset for Vert.x mailsender on keep alive timeout
We have an application based on Quarkus (2.4.2), and its mailsender is Vert.x Mailer. Config used: The issue we are having is that 60 seconds after a mail is sent the following is logged: Based on this stacktrace it looks like it is smtp.office365.com that do Connection reset, timeout handling in Vert.x’…
Change Isolation level of a transaction in Reactive Postgres Client (Quarkus)
I want to execute some dql/dml queries in a transaction with the isolation level READ_UNCOMMITED. I’m using the reactive postgres client with mutiny with the suggested method withTransaction() from the Quarkus docs, but I couldn’t find any way to change the isolation lvl. Is that possible, and if …
HttpServer Request get date range from query string
I am new to Java and Vertx and I have a query string with the following format: Here I have this date_1 parameter which is within a certain range. I have been using HttpServerRequest class to extract simple parameters like integers but not sure how to proceed with these kind of range parameters. With the simp…
Making a static final Json object in Java
I am currently building a Java Vertx application that executes a task periodically. This application is executes a certain logic and is supposed to return a value in a Json format. The logic seems to work and I don’t have a problem getting the desired value in the log, but I have trouble returning that …
Method to get and post Json object in Vertx
I’m new to Java and to backend development, and I really could use some help. I am currently using Vert.x to develop a server that takes in a Json request that tells this server which file to analyze, and the server analyzes the file and gives a response in a Json format. I have created an ImageRecognit…
Batch insert entities to DB (Quarkus, Hibernate)
First off: I’m not used to Quarkus or Hibernate (I’m pretty much all .net) Problem: My service receives a list of ~10k (Would guess thats the most common number). This comes via a resource endpoint, and it takes +10s for it to complete, Far to long. And the service is unresponsive. The statusDao.C…