Hellu,

I am still not really sure how to use that NDC thing and still havent't got
an answer (see below).
Can someone please give me some advice on this matter ?

Except my other question, I don't understand the following:
I do a NDC.push() in my servlet (1),
Call a function in another class file,
Create a new category in that classe file and perform a NDC.push().
The pushed information, then appears behind the NDC.push() of the servlet.
Why is that ??
As, when I perform NDC.push() in different servlets they all have their own
NDC content that appear in the log file, whereas with the example above, the
NDC content of the servlet and that of the class in another file are
mixed....
I am confused... please some help....

Eddie :(


----- Original Message -----
From: "Ed Bras" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 09, 2001 1:19 PM
Subject: NDC usage ?? -> some help please ?


> Hellu there,
>
> I like to log the client's IP address and some user info to distinguish
the
> different servlets threads/requests.
>
> I am using NDC but don't understand it very well yet.
> Is the NDC bounded to a Category ?? Such that every Category variable has
> his own NDC context logged and that it doens't logs the NDC of another
> servlet ? (why?: I noticed that the NDC methods are static, so though that
> the fields holding the NDC might as well).
>
> How should I use it ?:
> Now I do the following, is this correct ? or how do other use it ??:
>
> I call a NDC.push(<IP address>) at the beginning of the request and a
> NDC.pop();NDC.remove() at the end of the request (is this the way to do it
> ??). Every servlet creates his own Category variable in the init();
> (or should I use NDC.clear...?? I don't think that the NDC.pop() at the
end
> is really necessary?!)
>
> Hope to get some advice on this, as I still haven't got it all sorted out
> very well yet.
>
> Cheers,
> Eddie
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to