lookup doesn't find a previously bound object
---------------------------------------------
Key: OPENEJB-1358
URL: https://issues.apache.org/jira/browse/OPENEJB-1358
Project: OpenEJB
Issue Type: Bug
Affects Versions: 3.1.2, (trunk/openejb3)
Environment: java.naming.factory.initial =
org.apache.openejb.client.LocalInitialContextFactory
Reporter: Florin Spătar
Priority: Critical
Steps to reproduce:
context.bind("some/component/name", String.class);
context.lookup("some/component/name"); // throws NameNotFoundException
The problem raises from the fact that the lookup method adds the "local" prefix
to the name. But the object is actually bound under "some/component/name", not
under "local/some/component/name". The lookup will throw an exception because
the name is not found.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.