[jdom-interest] newbie question
Attila Szegedi
szegedia at freemail.hu
Wed Dec 4 07:59:10 PST 2002
----- Original Message -----
From: "Laurent Bihanic" <laurent.bihanic at atosorigin.com>
To: "bob mcwhirter" <bob at werken.com>
Cc: <jdom-interest at jdom.org>
Sent: 2002. december 4. 16:45
Subject: Re: [jdom-interest] newbie question
>
> You may have a look at the latest implementation of JDOM Jaxen-wrapper
> (org.jdom.xpath.JaxenXPath.java) to see the trick required to pass context
> information to a NamespaceContext. And it does not even support
> multi-threading! In a multi-threaded environment, one would have to
replace
> the currentContext object by a Hashtable, using Thread.currentThread() as
key.
>
...and prevent dead threads from getting garbage collected :-)
Better use a java.lang.ThreadLocal...
Cheers,
Attila.
> Laurent
>
> _______________________________________________
> To control your jdom-interest membership:
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
>
>
>
More information about the jdom-interest
mailing list