> I implemented an EJB with both local and remote interface. When trying
> create an EJB from another EJB, I lookup the JNDI name and I check the class
> of the object returned. I found that the object class is of the remote type
> rather the local. Therefore causing a casting exception when calling
> PortableRemoteObject.narrow().
Obviously, you must make sure that both local and remote proxies are
bound to the JNDI directory. In Weblogic, there's something like
<weblogic-enterprise-bean>
[...]
<jndi-name>BlaSettings</jndi-name>
<local-jndi-name>BlaSettingsLocal</local-jndi-name>
</weblogic-enterprise-bean>
so you could get the local EJB proxy by
BlaSettingsLocalHome home = (BlaSettingsLocalHome)
ctxt.lookup("ejb/BlaSettingsLocal");
Johann

Signature
Deine Zurechtweisung hat mich sehr getroffen. Aussagekräftige Subjects
haben allerdings nach meiner Erfahrung nur mässigen Response. Sorry, hab
das getestet.
("kkaal" in <b471a2$9j1$06$1@news.t-online.com>)