org.apache.logging.log4j.core.net.jms
Class JmsQueueReceiver

java.lang.Object
  extended by org.apache.logging.log4j.core.LogEventListener
      extended by org.apache.logging.log4j.core.net.jms.AbstractJmsReceiver
          extended by org.apache.logging.log4j.core.net.jms.JmsQueueReceiver
All Implemented Interfaces:
EventListener, MessageListener

public class JmsQueueReceiver
extends AbstractJmsReceiver

Receives Log Events over a JMS Queue. This implementation expects that all messages will contain a serialized LogEvent.


Field Summary
 
Fields inherited from class org.apache.logging.log4j.core.net.jms.AbstractJmsReceiver
logger
 
Constructor Summary
JmsQueueReceiver(String qcfBindingName, String queueBindingName, String username, String password)
          Constructor.
 
Method Summary
static void main(String[] args)
          Main startup for the receiver.
 
Methods inherited from class org.apache.logging.log4j.core.net.jms.AbstractJmsReceiver
lookup, onMessage
 
Methods inherited from class org.apache.logging.log4j.core.LogEventListener
log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsQueueReceiver

public JmsQueueReceiver(String qcfBindingName,
                        String queueBindingName,
                        String username,
                        String password)
Constructor.

Parameters:
qcfBindingName - The QueueConnectionFactory binding name.
queueBindingName - The Queue binding name.
username - The userid to connect to the queue.
password - The password to connect to the queue.
Method Detail

main

public static void main(String[] args)
                 throws Exception
Main startup for the receiver.

Parameters:
args - The command line arguments.
Throws:
Exception - if an error occurs.


Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.