Ask questions and see you at June, 7th, 8.PM. CEST: https://youtu.be/Uz1nLi5APVw
Also checkout recent episode:
Please keep the questions Jakarta EE-stic. Means: as short and as concise as only possible. Feel free to ask several, shorter questions. Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks
Hi Adam
(1)
I've implemented an api gateway using quarkus that interacts with some other microservices (also on quarkus).
for each microservice i use an microprofile @restclient in api gateway,
How to make the microprofile @Retry to work only if there is a connection error (maybe the microservice is down)
I've tried @Retry(retryOn = java.net.ConnectException.class) but it does not work. Maybe didn't work cause the first exception that is thrown is (org.jboss.resteasy.spi.UnhandledException), but I think that this exception is thrown each time any kind of exception is thrown, so I don't want to @Retry(retryOn = UnhandledException) because I only want to Retry only if connection refused.
So, I want to do this: api gateway rest client to some service, if service is down I want to printStackTrace in log, to @Retry once more to connect and if two times not connected I want to return a JsonObject with a specific information to the client.
(2)
Can you explain shortly what is Flyway db, should it be used and if yes how should be used with Java, Jakarta EE or Quarkus or any java technology...
Thanks a lot in advance