This content has been marked as final.
Show 1 reply
-
1. Re: Datasource Lifecycle - Custom Log Handler
nickarls Nov 30, 2012 6:56 AM (in response to fhauschel)The logging subsystem is probably one of the first to be brought up so If you want to use a connection pool from the AS JNDI, I don't think you can do much more than have a "initialized" flag and when a log request comes in, check if the initialized=false, try the JNDI lookup and if it fails, you drop the log message and if it works, you set intialized=true and do your logging. I'm not sure if JNDI lookup from a logger is that future-proof, I think I heard talks about at one point of not being guaranteed in future releases.