Ask questions and see you at April, 4th, 8.PM. CET: youtube.com/c/bienadam
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
I have an application running in payara which I can create orders which have a UUID as order id. I have several processes and background processes which do things with these orders.
When logging I always want to log this order id. Is there a way to do this without having to add logging code everywhere? Would it e.g be possible to annotate a parameter on e.g. a rest call method which then has as effect that every log statement logs that value?
My idea was to use CDI Decorators for every interface that has methods that receives the order id as parameter and in the decorator then store the order id in a @RequestScoped bean. But then I need to create a decorator for every (applicable) interface. And every decorator implementation does the same thing.