Log4j: Multiple appenders and rolling the log

"Sri Sankaran" <[email protected]>
Newsgroups gmane.org.user-groups.trijug.juglist
Message-ID <[email protected]>
Our J2EE (JEE) application comprises a WAR for the web component and an EJB JAR.  Both use the same log4j properties file and therefore are configured to write to the same destination (a RollingFileAppender).  The trouble with this is that the file cannot be rotated because when one of the parties (the Elb app or the web app) tries this operation, it is denied because the other has it locked.
 
What is the recommended approach around this problem?  Configuring the EJB app and the web app to write to different locations would require the untenable task of having to piece together messages from different files to get a chronologically contiguous listing.  
 
Any thoughts?
 
Sri

_______________________________________________
Juglist mailing list
[email protected]
http://trijug.org/mailman/listinfo/juglist_trijug.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.