I was looking up a bean using:

JndiContext.lookup("ContactManager");

And I was getting a security exception: User Admin does not have permissions
to ContactManager.

However, there is no ContactManager in the jndi tree. The bean name in the
tree was ContactManagerHome.

I changed it and it worked fine.

The question is: Shouldn't I get a NamingException instead of a
SecurityException?

-----------------------------------------
Eduardo Estefano
Integrated Information Systems
480.317.8549


Reply via email to