Re: new subscriber and questions

Bob Craig <[email protected]> Sun, 12 Nov 2006 17:31:41 -0600
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <2F6133743473D04B8685415F8243F47601E82D82@madison-msg1.global.avidww.com>
We have two handlers for the Java logging system.  One handler ALWAYS logs to the local file system - it maintains a circular buffer of files so that any single process doesn't consume more than a fixed amount of disk space.  The second handler is attached to the remote logging service.  It routes all log messages to the service provider, which sends the message(s) to all subscribed clients (if there are any).  The logging level for each handler can be configured different, so for example you can capture all log messages at all logging levels in the local files, but only send messages INFO and above over the network to a remote log viewer.
 
We did try using JavaSpaces for an asynchronous notification system, but in the end the performance wasn't up to what we needed and we implemented it using similar publish/subscribe mechanisms.
 
Bob
 

________________________________

From: Rikard Elofsson [mailto:[email protected]]
Sent: Sun 11/12/2006 3:14 PM
To: [email protected]
Subject: Re: new subscriber and questions



Bob Craig wrote:
> Rikard, for the solution we've developed for Avid, we have Log Service
> Providers that register and publish a subscribe API.  However, log
> messages that get sent to the subscribers is sent over a direct TCP
> socket connection using a simple message packet protocol.  We felt this
> would scale to higher messages/sec then most of other built in mechanisms.

This feels like it is the way to go. I will check out the Eros Jini
project which was recommended but otherwise a more manual solution along
the lines you suggest feels right. Do you log everything centrally or do
you still do some loggin locally?

> Can't comment on the second question - we don't use JavaSpaces.

Well, I don't know if and how we will use JavaSpaces either. Have you
tried using it and discarded it or is it just not interesting for your
application?

Regards
//Rikard

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html



===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html