Package org.apache.activemq.util
Class JndiJmsLogAppender
- java.lang.Object
-
- org.apache.logging.log4j.core.AbstractLifeCycle
-
- org.apache.logging.log4j.core.filter.AbstractFilterable
-
- org.apache.logging.log4j.core.appender.AbstractAppender
-
- org.apache.activemq.util.JmsLogAppenderSupport
-
- org.apache.activemq.util.JndiJmsLogAppender
-
- All Implemented Interfaces:
org.apache.logging.log4j.core.Appender
,org.apache.logging.log4j.core.filter.Filterable
,org.apache.logging.log4j.core.impl.LocationAware
,org.apache.logging.log4j.core.LifeCycle
,org.apache.logging.log4j.core.LifeCycle2
public class JndiJmsLogAppender extends JmsLogAppenderSupport
A JMS 1.1 log4j appender which uses JNDI to locate a JMS ConnectionFactory to use for logging events.
-
-
Constructor Summary
Constructors Constructor Description JndiJmsLogAppender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Connection
createConnection()
protected InitialContext
createInitialContext()
String
getInitialContextFactoryName()
String
getJndiName()
String
getPassword()
String
getProviderURL()
String
getSecurityCredentials()
String
getSecurityPrincipalName()
String
getUrlPkgPrefixes()
String
getUserName()
void
setInitialContextFactoryName(String initialContextFactoryName)
void
setJndiName(String jndiName)
void
setPassword(String password)
void
setProviderURL(String providerURL)
void
setSecurityCredentials(String securityCredentials)
void
setSecurityPrincipalName(String securityPrincipalName)
void
setUrlPkgPrefixes(String urlPkgPrefixes)
void
setUserName(String userName)
-
Methods inherited from class org.apache.activemq.util.JmsLogAppenderSupport
activateOptions, append, close, createMessage, createProducer, createSession, getConnection, getDestination, getProducer, getSession, requiresLayout, setConnection, setProducer, setSession
-
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractAppender
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, requiresLocation, setHandler, toSerializable, toString
-
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable
addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, start, stop, stop
-
Methods inherited from class org.apache.logging.log4j.core.AbstractLifeCycle
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop, stop
-
-
-
-
Method Detail
-
getJndiName
public String getJndiName()
-
setJndiName
public void setJndiName(String jndiName)
-
getUserName
public String getUserName()
-
setUserName
public void setUserName(String userName)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
getInitialContextFactoryName
public String getInitialContextFactoryName()
-
setInitialContextFactoryName
public void setInitialContextFactoryName(String initialContextFactoryName)
-
getProviderURL
public String getProviderURL()
-
setProviderURL
public void setProviderURL(String providerURL)
-
getUrlPkgPrefixes
public String getUrlPkgPrefixes()
-
setUrlPkgPrefixes
public void setUrlPkgPrefixes(String urlPkgPrefixes)
-
getSecurityPrincipalName
public String getSecurityPrincipalName()
-
setSecurityPrincipalName
public void setSecurityPrincipalName(String securityPrincipalName)
-
getSecurityCredentials
public String getSecurityCredentials()
-
setSecurityCredentials
public void setSecurityCredentials(String securityCredentials)
-
createConnection
protected Connection createConnection() throws JMSException, NamingException
- Specified by:
createConnection
in classJmsLogAppenderSupport
- Throws:
JMSException
NamingException
-
createInitialContext
protected InitialContext createInitialContext() throws NamingException
- Throws:
NamingException
-
-