Re: Concurrent, persistent background process for a J2EE container



Mark Space <markspace@xxxxxxxxxxxxx> wrote in
news:g99hco$v60$1@xxxxxxxxxxxxxxxxxxxxxxxxx:

Donkey Hottie wrote:

We can't use java.util.logging for this. Boss wants "structured"
data, not flat text files.

So you know about XMLFormatter for logging, right? I'm curious: why
doesn't that work?

Nope. But you got me interested! Like I said, I'm no guru in Java EE.


It'd consider writing your formatted data to a socket, just on the
general principle that it might be more robust and more portable than
permanently wiring your logs to a database. However, you probably
know your requirements best. I do think writing to a socket would
obviate the need for any kind of multi-threading however.



Socket? But there always has to be an another thread or process in the
other end of the socket, no?

Socket programming is nothing new to me, 20+ years with C++ but J2EE
practices are new to me.



.



Relevant Pages

  • Re: Socket recv() question?
    ... You might be doing something crazy, writing the data to the file one byte at ... socket function correctly? ... How come when I use the IE on the Pocket PC and started IIS on my PC. ... Configure tx timeout ...
    (microsoft.public.windowsce.app.development)
  • Re: Are write() calls guaranteed atomic?
    ... >> writing the data have no knowledge of the FIFO, ... > If you cannot modify the clients, try changing your server to create a ... > Unix domain socket instead of a named pipe (the clients shouldn't see ...
    (freebsd-hackers)
  • Re: C++ problem with a destructor
    ... > and write a data file to the file ... > descriptor (socket). ... > because, for kicks and grins, I tried writing a simple program to test ... add a private copy constructor and assignment operator and ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Tivo Program Data IP Address
    ... connecting to 204.176.49.3:80 ... writing 364 bytes to socket ... select-ing for header ...
    (uk.tech.tv.video.pvr)
  • Re: select() never returns
    ... the calling function calls this ... do, and you're willing to wait until the socket becomes writable, why not ... I guess it's possible that you need non-blocking ... thread, handling the writing, can. ...
    (comp.unix.programmer)