logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Stauffer" <stauffer.ja...@gmail.com>
Subject Re: MDC Query
Date Fri, 25 Aug 2006 14:09:55 GMT
To comment on that link, ThreadLocals are safe if used correctly.  You
should always assume that you need to reset the ThreadLocal right
after you retrieve a Thread from a pool.

On 8/25/06, Meera Mehta <mehtameera@yahoo.com> wrote:
> Hi ysuneel,
>
> Thanks for your short and sweet reply........
>
> but i was expecting little detailed answer if
> possible!
>
> I have gone threw following link ,
>
> http://www.devwebsphere.com/devwebsphere/2005/06/dont_use_thread.html
>
>
> where they trying to encourage against
> it's(ThreadLocal) use.
>
> I dont know internals of MDC but i just know MDC is
> using ThreadLocal, thats why i wanted to know "Wether
> we are relying on Application server(in my case
> WebSphere) for cleanup"
>
>
>
> thanks in advance,
>
>
> --- ysuneelreddy <sreddy@smarteinc.com> wrote:
>
> > Bcz of using MDC
> > Nothing happened side effects..
> >
> >
> > -----Original Message-----
> > From: Meera Mehta [mailto:mehtameera@yahoo.com]
> > Sent: Friday, August 25, 2006 3:47 PM
> > To: log4j-user@logging.apache.org
> > Subject: MDC Query
> >
> > Hi All ,
> >
> > I have small doubt related to MDC are we relying on
> > MDC(ThreadLocal) being cleaned up by the application
> > server when the thread is returned to the pool??????
> >
> > if yes What are the side effects of this reliance???
> >
> > please reply in detail.
> >
> > Thanks in advance.
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> > protection around
> > http://mail.yahoo.com
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail:
> > log4j-user-help@logging.apache.org
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail:
> > log4j-user-help@logging.apache.org
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message