Skip to content

Instantly share code, notes, and snippets.

@AdamBien
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.
96thAirhacksQ&A.md

Ask questions and see you at March, 7th, 8.PM. CET: youtube.com/c/bienadam

Also checkout recent episode:

95th 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

@FlorinAlexandru
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 ?

Regards,
Florin

@thehpi
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.

@altuga
Copy link

altuga commented Mar 7, 2022

What do think about anemic domain model? https://martinfowler.com/bliki/AnemicDomainModel.html

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