Sorry for reposting the same message again..but i couldn;t get any help,
that's why sending again
I am using RollingFileAppender in my EJB
application. I set the immediateFlush to false, so it log messages needn't
flushing each time but when my application closes, all the pending messages from
buffer should be flushed.
I didn't find any flush() method but there is a
method setImmediateFlush(boolean) which sets immediateFlush option.
So i thought about this solution :
// Put some dummy message in the
log buffer so while logging this message previous buffer contents will also get
Is there any other better way of doing this