EJB and ThreadLocal
843830Feb 2 2006 — edited Feb 9 2006Hello,
I have a webapp and an EJB.
In my webapp, I use a ThreadLocal to put an object I want to be accessible from everywhere.
When I call the EJB, this object is no more present in the ThreadLocal to the EJB-side.
How can I pass this object from the ThreadLocal of the servlet to the ThreadLocal of the EJB ? Which object of the EJB can I use ?
Should I impose to give this object in the constructor method of the EJB ?
Should I use the EJBContext ?
Thanks in advance for your help.
__________________________ _ _ _
bgOnline