Hi, 
 
If I understand correctly, if my application uses log4j with a
SocketAppender then my application is connecting to the "logging
server".Right? In other words, my application would start the connection
to the log server.
 
On the other hand, if my program uses a SocketHubAppender, then my
program is actually accepting connections from -one or more- "logging
servers" and my application would send the log records to each one. Am I
right?
 
Now, assuming I have an application using a SocketHubAppender on host H
at port P, and that the logging server already knows of the application
at (H,P)
How would the server side code would look like ?  
 
SimpleSocketServer seems to be useful when using SocketAppender on the
client, since the client would know the port where the server is
listening.
 
But when using the SocketHubAppender, the connection need to be
initiated by the server, right?
 
 
Any pointers are appreciated.
 
-Jorge
 
 

Reply via email to