org.apache.logging.log4j.core.net
Class JMSQueueReceiver
java.lang.Object
org.apache.logging.log4j.core.AbstractServer
org.apache.logging.log4j.core.net.AbstractJMSReceiver
org.apache.logging.log4j.core.net.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-2012 Apache Software Foundation. All Rights Reserved. Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, and the Apache Logging project logo are trademarks of The Apache Software Foundation.