org.apache.logging.log4j.core.net.jms
Class JmsQueueReceiver
java.lang.Object
org.apache.logging.log4j.core.LogEventListener
org.apache.logging.log4j.core.net.jms.AbstractJmsReceiver
org.apache.logging.log4j.core.net.jms.JmsQueueReceiver
- All Implemented Interfaces:
- javax.jms.MessageListener
public class JmsQueueReceiver
- extends AbstractJmsReceiver
Receives Log Events over a JMS Queue. This implementation expects that all messages will
contain a serialized LogEvent.
Method Summary |
static void |
main(String[] args)
Main startup for the receiver. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.