Skip to content

Instantly share code, notes, and snippets.

Created February 11, 2022 09:32
Show Gist options
  • Save AdamBien/0b9f2cfc903d92c43c8bd8aa1b605c72 to your computer and use it in GitHub Desktop.
Save AdamBien/0b9f2cfc903d92c43c8bd8aa1b605c72 to your computer and use it in GitHub Desktop.

Ask questions and see you at March, 7th, 8.PM. CET:

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 events are also going to be announced at

Copy link

AdamBien commented Mar 6, 2022

"What are the killer use cases of cdi event and @observes"

A comment from 95th ->

Copy link

AdamBien commented Mar 6, 2022

Java, Productivity and AWS Lambda clarifications

Copy link

dwamara commented Mar 6, 2022

Hi Adam, it's been a long time since I've asked a question but I'm still following the airhacks faithfully :-)
I am actually working on an online voting system for an African country I'm not allowed to name and one of my biggest concerns is the mean to prevent DDoS.
I am building the entire solution with Quarkus, it will be hosted on Rancher (this is not decided yet) and I would like to know how you will do things if you were in my shoes.

  1. Citizens of that country are supposed to vote from all over the world so the traffic will surely be huge and I don't want to have neither false negative nor false positive in case of high traffic and misinterpret that as DDoS.
  2. How can I configure or implement services to detect and react to DDoS?


Copy link

Hi Adam,

Is there a way to integrate log4j2 with wildfly?

Can I use only log4j2 as logging infrastructure or under the hood it will delegate to application server logging and log4j will be used only as facade/api?

I know that the logging subsystem can be disabled.

  • What disable means when logging only to stdout?
  • log4j2 will still be able to log to stdout if logging subsystem is disabled?
  • Where is the correct location for jboss-deployment-structure.xml file ?


Copy link

thehpi commented Mar 7, 2022

I need an interceptor to intercept method calls but also use the parameter values to programmatically do metrics (because microprofile metrics cannot (yet) do dynamic tags).

But I don't want to use reflection to everytime find out what parameters there are on a method, and also parameter names are not available by default, and doing positional parameter assumptions is terrible.

Is it possible to create an annotation processor that programmatically creates na interceptor (or decorator?) which then is injected where I use it? The annotation processor then should scan for my (new) annotations used on parameters so I have knowledge about all parameters in my interceptor/decorator.

Copy link

altuga commented Mar 7, 2022

What do think about anemic domain model?

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