Login
From:
Gary Gregory
(Uncensored)
subscribe
Loading a Log4j Configuration for a specific EJB
https://garygregory.wordpress.com/2016/11/27/loading-a-log4j-configuration-for-a-specific-ejb/
links
backlinks
Tagged with:
java
logging
log4j
ejb
loggercontext
postconstruct
predestroy
sessionbean
You can load and unload a specific Log4j 2 configuration file for a given EJB. How? Use @PreDestroy and @PostConstruct. This gives you separately deployable EJBs with separate Log4j configurations. Ka-Pow! For example: Happy Coding, Gary Gregory
Roast topics
Find topics
Find it!