org.apache.logging.log4j.core.net.jms
Class JmsTopicReceiver
java.lang.Object
org.apache.logging.log4j.core.LogEventListener
org.apache.logging.log4j.core.net.jms.AbstractJmsReceiver
org.apache.logging.log4j.core.net.jms.JmsTopicReceiver
- All Implemented Interfaces:
- EventListener, MessageListener
public class JmsTopicReceiver
- extends AbstractJmsReceiver
Receives Topic messages that contain LogEvents. This implementation expects that all messages
are serialized log events.
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 |
JmsTopicReceiver
public JmsTopicReceiver(String tcfBindingName,
String topicBindingName,
String username,
String password)
- Constructor.
- Parameters:
tcfBindingName
- The TopicConnectionFactory binding name.topicBindingName
- The Topic binding name.username
- The userid to connect to the topic.password
- The password to connect to the topic.
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.