Class JmsAppender

All Implemented Interfaces:
Appender, Filterable, LocationAware, LifeCycle, LifeCycle2

@Deprecated @Plugin(name="JMS-Javax", category="Core", elementType="appender", printObject=true) @PluginAliases({"JMS","JMSQueue","JMSTopic"}) public class JmsAppender extends AbstractAppender
Deprecated.
Use org.apache.logging.log4j.core.appender.mom.jakarta.JmsAppender.
Javax JMS Appender plugin. This Appender replaces the previous split classes. Configurations set up for the 2.0 version of the JMS appenders will still work.
  • Constructor Details

  • Method Details

    • newBuilder

      @PluginBuilderFactory public static JmsAppender.Builder newBuilder()
      Deprecated.
    • append

      public void append(LogEvent event)
      Deprecated.
      Description copied from interface: Appender
      Logs a LogEvent using whatever logic this Appender wishes to use. It is typically recommended to use a bridge pattern not only for the benefits from decoupling an Appender from its implementation, but it is also handy for sharing resources which may require some form of locking.
      Parameters:
      event - The LogEvent.
    • getManager

      public JmsManager getManager()
      Deprecated.
    • stop

      public boolean stop(long timeout, TimeUnit timeUnit)
      Deprecated.
      Description copied from class: AbstractFilterable
      Cleanup the Filter.
      Specified by:
      stop in interface LifeCycle2
      Overrides:
      stop in class AbstractFilterable
      Parameters:
      timeout - the maximum time to wait
      timeUnit - the time unit of the timeout argument
      Returns:
      true if the receiver was stopped cleanly and normally, false otherwise.