Thanks for the helpful reply.
Here is more information:
RoleBean is the class that implements Role
ejb-jar.xml of both the calling ear and the ear being called have only <display-name> tag. I do not have jboss.xml.
The contents of the Global JNDI namesapce regarding my beans are...
+- svc (class: org.jnp.interfaces.NamingContext)
| +- UnitBean (class: org.jnp.interfaces.NamingContext)
| | +- local (proxy: $Proxy108 implements No ClassLoaders found for: ejb.Unit (no security manager: RMI class loader disabled))
| | +- remote (proxy: $Proxy107 implements No ClassLoaders found for: ejb.Unit (no security manager: RMI class loader disabled))
| +- RoleBean (class: org.jnp.interfaces.NamingContext)
| | +- local (proxy: $Proxy104 implements No ClassLoaders found for: ejb.Role (no security manager: RMI class loader disabled))
| | +- remote (proxy: $Proxy103 implements No ClassLoaders found for: ejb.Role (no security manager: RMI class loader disabled))
Both the statements below fail with the name not bound exception(whether I use @EJB or not):
RoleBean roleLookup = (ejb.RoleBean) new InitialContext().lookup("svc/RoleBean/remote");
or
Role roleLookup = (ejb.Role) new InitialContext().lookup("svc/Role/remote");
Any ideas how to fix this?
Thanks