Hi DBlevins and All...
Regarding the OPENEJB-368, I came out with two ideas to get this JIRA done,
one which is simple and straight forward but I doubt it is the accurate one,
the other needs more code change and it took me a while to investigate for
it, the two approaches are:
1. For each EJBContext.lookup method call an InitialContext instance
is created and used for looking-up the resource bound to the
provided JNDI
name (The simple solution).
2. Each EJBContext is instantiated with the initial naming
context or the JNDI provider that will be provided to the responsible
container, much like the way TransactionManager and SecurityService are
provided to the current implementation of the different EJBContext(s)
through the corresponding container type, and then this naming
context\provider will be used for each call to the
EJBContext.lookup method. (The more complex one).
I need you to comment on this before I go through the implementation.
--
Thanks
- Mohammad Nour