Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Last active August 7, 2020 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdamBien/bb28a209f2e1255b305d2b3c9357854e to your computer and use it in GitHub Desktop.
Save AdamBien/bb28a209f2e1255b305d2b3c9357854e to your computer and use it in GitHub Desktop.
77thAirhacksQ&A.md

Ask questions and see you at August, 3rd, 8.PM. CET: https://vimeo.com/event/154379

Also checkout recent episode:

76th airhacks.tv

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

@leon-g96
Copy link

leon-g96 commented Aug 7, 2020

And two more questions

  1. Is there anyway to monitor JTA transaction with MicroProfile metrics out out the box? Like for e.g. in application server where you can monitor in admin console?
    Or this is not done by MicroProfile out of the box? In that case I was thinking to use callbacks of JPA and then use MetricsRegistry to register every callback?

  2. In microservices application with Java, should you create exceptions like for .e.g. CustomerNotFoundException, SomethingElseException and each of these exceptions extends RuntimeException. I want maybe to throw them maybe inside a lambda expression, or just throw them from a method? Or should I create one more generic exception that extends WebApplicationException and each time that it happens any exception just to throw that exception with maybe Response-Header cause with my own message, or non header but maybe Response.Status.Ok but with json message with description what failed?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment