This content has been marked as final. Show 5 replies
What do you mean by 'I am changing the context'?
I am making this call in the servlet
InitialContext iniCtx = new InitialContext(environment);
which changed the JNDI context, no?
It created a new Context.
So, there is no way to restore the prior context?
Do what you did before to get the prior context. Nine of these operations affects any global state in JNDI. The syntax of the operations alone should make that clear. You're just creating a new Context every time with a new environment. I suspect you are barking up the wrong tree completely.