On Tue, 2 Oct 2001 04:50, Berin Loritsch wrote:
> I am trying to use the Memory context to bind an object during init time
> so that we can retrieve it later.  I am having issues in that it is claming
> that the name I just bound is not bound.  What is happening is that it is
> not looking in the subcontexts:

MemoryContexts are not cached per JVM or anything. If you create a new 
InitialContext() you create a new MemoryContext because in reality 
MemoryContext is used inside the app server and not by clients (who may see 
it via rmi/corba/whatever or may get it because the MemoryContext is cached 
or bound to thread-local variables).

The best thing to do is create a new factory that binds it into 
ServletContext or to Thread or JVM or whatever suits you.

-- 
Cheers,

Pete

----------------------------------------------------
"The only way to discover the limits of the possible 
is to go beyond them into the impossible." 
                             -Arthur C. Clarke
----------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to