If i initialise an object via jndi lookup in the setSessionContext method of an EJB Is it possible to add this object to the context so that I can retrieve it from the context at some point much further in the transaction. how would I add it to the context? How would I get it out of the context? Can it be done? Any code examples would be appreciated. In addition if this EJB was a client to another EJB say EJB2 would I be able to get access to the object intialised in the sesionContext of EJB1 from EJB2? Thanks
We cannot store/retrieve data from an EJBContext. The EJBContexts are different from the ServletContexts in a web app.
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
5
posted
0
"Java inter", We have a naming policy, which disallows obviously fake names. Thus, I'll have to ask you to change your display name into something real-looking. You can do that here. Thanks, and welcome to the JavaRanch!