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

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.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.


Field Summary
 
Fields inherited from class org.apache.logging.log4j.core.net.jms.AbstractJmsReceiver
logger
 
Constructor Summary
JmsTopicReceiver(String tcfBindingName, String topicBindingName, 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

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.
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.