java.lang.Object
org.apache.log4j.AppenderSkeleton
de.danet.an.util.log4j.EJBAppender
- All Implemented Interfaces:
- org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler
- public class EJBAppender
- extends org.apache.log4j.AppenderSkeleton
This class implements the Appender interface.
The EJBAppender forwards the log message to the EJBSink bean.
|
Constructor Summary |
EJBAppender()
Constructor for the EJBAppender object. |
| Methods inherited from class org.apache.log4j.AppenderSkeleton |
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
beanName
private java.lang.String beanName
- The name of the logging session bean.
ejbSink
private EJBSink ejbSink
- The remote interface of the session bean.
EJBAppender
public EJBAppender()
- Constructor for the EJBAppender object.
setEjbJNDIName
public void setEjbJNDIName(java.lang.String beanName)
- Sets the JNDI name of the session bean.
append
public void append(org.apache.log4j.spi.LoggingEvent event)
- Forwards the message to the EJBSink bean.
close
public void close()
- Internal method. Close the database connection and flush the buffer.
requiresLayout
public boolean requiresLayout()
- Internal method. Returns true, you may define your own layout...