org.apache.logging.log4j.core.appender
Class JMSQueueAppender

java.lang.Object
  extended by org.apache.logging.log4j.core.filter.AbstractFilterable
      extended by org.apache.logging.log4j.core.appender.AbstractAppender
          extended by org.apache.logging.log4j.core.appender.JMSQueueAppender
All Implemented Interfaces:
Appender, Filterable, LifeCycle

public final class JMSQueueAppender
extends AbstractAppender

Appender to write to a JMS Queue.


Field Summary
 
Fields inherited from class org.apache.logging.log4j.core.appender.AbstractAppender
LOGGER
 
Method Summary
 void append(LogEvent event)
          Actual writing occurs here.
static JMSQueueAppender createAppender(String factoryName, String providerURL, String urlPkgPrefixes, String securityPrincipalName, String securityCredentials, String factoryBindingName, String queueBindingName, String userName, String password, Layout layout, Filter filter, String suppress)
          Create a JMSQueueAppender.
 
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractAppender
close, error, error, error, getHandler, getLayout, getName, isExceptionSuppressed, isStarted, setHandler, start, stop, toString
 
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable
addFilter, getFilter, hasFilter, isFiltered, removeFilter, startFilter, stopFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

append

public void append(LogEvent event)
Actual writing occurs here.

Parameters:
event - The LogEvent.

createAppender

public static JMSQueueAppender createAppender(String factoryName,
                                              String providerURL,
                                              String urlPkgPrefixes,
                                              String securityPrincipalName,
                                              String securityCredentials,
                                              String factoryBindingName,
                                              String queueBindingName,
                                              String userName,
                                              String password,
                                              Layout layout,
                                              Filter filter,
                                              String suppress)
Create a JMSQueueAppender.

Parameters:
factoryName - The fully qualified class name of the InitialContextFactory.
providerURL - The URL of the provider to use.
urlPkgPrefixes - A colon-separated list of package prefixes for the class name of the factory class that will create a URL context factory
securityPrincipalName - The name of the identity of the Principal.
securityCredentials - The security credentials of the Principal.
factoryBindingName - The name to locate in the Context that provides the QueueConnectionFactory.
queueBindingName - The name to use to locate the Queue.
userName - The userid to use to create the Queue Connection.
password - The password to use to create the Queue Connection.
layout - The layout to use (defaults to SerlializedLayout).
filter - The Filter or null.
suppress - "true" if exceptions should be hidden from the application, "false" otherwise. The default is "true".
Returns:
The JMSQueueAppender.


Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.