Hi!

Scott M Stark wrote:
> The final problem with the latest tomcat-service and the petstore app is
> an issue with how the resource refs from the jboss-web.xml file are mapped
> into the jboss server JNDI namespace. The problem that JbossWebXmlReader
> is performing this mapping from the thread in which the web app is deployed
> and it is binding into the java:comp/env context which is a thread local namespace.
> When the servlet requests run they are using a different thread and so the
> namespace is incorrect.

That is an incorrect understanding of it: "comp/env" is *classloader*
local. Threads are used locally, but the bindings relate to the
classloader that is set as thread contextclassloader.

As long as the right CL is associated with a thread there is no problem.

/Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]

Reply via email to