W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 2000

Re: Adding a service to Jigsaw

From: Yves Lafon <ylafon@w3.org>
Date: Wed, 16 Aug 2000 18:29:13 +0200 (MET DST)
To: Niklas Wiberg <e95_nwi@it.kth.se>
cc: www-jigsaw@w3.org
Message-ID: <Pine.GSO.4.21.0008161821580.26571-100000@tarantula.inria.fr>
On Mon, 14 Aug 2000, Niklas Wiberg wrote:

> Hi all,
> Currently, I have a separate Java program that provides sort of a lookup
> service, callable by RMI.
> The idea is to have a modified (subclassed from) CommonLogger in Jigsaw
> call this service so as to be able to log additional information, looked
> up from the client IP address. However, I just got the idea that it
> would be nice to eliminate the RMI calls and make everything one
> application (Jigsaw). Currently it's two applications + rmiregistry...
> My first question is: What would be the best way to incorporate such a
> service into Jigsaw?

The best would be a filer, like the LogFilter (org.w3c.jigsaw.filter.LogFilter)
You only need the outgoingFilter there and it won't modify the reply.
By making it a filter and not a logger, you avoid the properties handling,
which is more painful that defining some attributes in the filter.

Note that you can make different "loggers" that way, and attach one to
each virtual host you may have and generate specific log files.
Can it fit your needs?
Regards,

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \        Architecture Domain - Jigsaw Activity Leader
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    
Received on Wednesday, 16 August 2000 12:29:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:34 GMT