Syslog White Paper FAQ Examples JavaDoc Classloader
Protomatter Software v1.1.7

com.protomatter.syslog
Class SyslogServer

java.lang.Object
  |
  +--com.protomatter.syslog.SyslogServer

public class SyslogServer
extends java.lang.Object

A standalone log processing server which either reads messages from a JMS topic, or through RMI. Reads configuration information from a properties file, given as the first command-line argument. System properties will override ones given in the properties file.

Basic properties are:

If the server will listen to a JMS topic for messages, the following properties are used:

If the server will bind a log receiver callback object into JNDI on an application server, the following properties are used:

The properties file is also used when creating the JNDI context (it is passed to the constructor for javax.naming.InitialContext), so the following properties are also needed, and are specific to the JNDI provider you're using (WebLogic, etc):

See the JavaDoc for javax.naming.Context for more information on JNDI connection properties.

Here's an example that works with BEA WebLogic Server. First, configure a JMS connection factory and a topic in WLS. Add the following to your weblogic.properties file:

Now, configure the syslog instance that runs in WLS. This file is referenced above in the weblogic.properties file as /opt/weblogic/weblogic-syslog.xml. This configuration includes a JMS logger and a logger that writes to System.out.

Next, configure the Syslog instance that will run inside the remote log server. This is a simple configuration that just prints things out to System.out. We'll refer to this file as /home/nate/syslog.xml.

Next, we need a configuration file for the remote log server.

Now, pass this properties file to the SyslogServer program as its only command-line argument. It should come up, connect to the server and start sucking messages off of JMS.

See Also:
JMSLog, RemoteLog

Method Summary
static void main(java.lang.String[] args)
          Start the syslog log server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static final void main(java.lang.String[] args)
Start the syslog log server. The first command-line argument must be the path to a properties file.

Protomatter Software v1.1.7
Copyright 1998-2002 Nate Sammons

Protomatter Software v1.1.7 http://protomatter.sourceforge.net/1.1.7