public abstract class JmsLogAppenderSupport extends AppenderSkeleton
Modifier and Type | Field and Description |
---|---|
static int |
JMS_PUBLISH_ERROR_CODE |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
Constructor and Description |
---|
JmsLogAppenderSupport() |
Modifier and Type | Method and Description |
---|---|
void |
activateOptions() |
protected void |
append(LoggingEvent event) |
void |
close() |
protected abstract Connection |
createConnection() |
protected Message |
createMessage(LoggingEvent event) |
protected MessageProducer |
createProducer() |
protected Session |
createSession() |
Connection |
getConnection() |
protected Destination |
getDestination(LoggingEvent event) |
MessageProducer |
getProducer() |
Session |
getSession() |
boolean |
requiresLayout() |
void |
setConnection(Connection connection) |
void |
setProducer(MessageProducer producer) |
void |
setSession(Session session) |
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold
public static final int JMS_PUBLISH_ERROR_CODE
public JmsLogAppenderSupport()
public Connection getConnection() throws JMSException, NamingException
JMSException
NamingException
public void setConnection(Connection connection)
public Session getSession() throws JMSException, NamingException
JMSException
NamingException
public void setSession(Session session)
public MessageProducer getProducer() throws JMSException, NamingException
JMSException
NamingException
public void setProducer(MessageProducer producer)
public void close()
public boolean requiresLayout()
public void activateOptions()
activateOptions
in interface OptionHandler
activateOptions
in class AppenderSkeleton
protected abstract Connection createConnection() throws JMSException, NamingException
JMSException
NamingException
protected Session createSession() throws JMSException, NamingException
JMSException
NamingException
protected MessageProducer createProducer() throws JMSException, NamingException
JMSException
NamingException
protected void append(LoggingEvent event)
append
in class AppenderSkeleton
protected Message createMessage(LoggingEvent event) throws JMSException, NamingException
JMSException
NamingException
protected Destination getDestination(LoggingEvent event) throws JMSException, NamingException
JMSException
NamingException
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.