Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

EJB and ThreadLocal

843830Feb 2 2006 — edited Feb 9 2006
Hello,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 9 2006
Added on Feb 2 2006
2 comments
278 views