On Fri, Jan 04, 2002 at 09:47:59AM +0800, Eric Huang wrote:
> Hello world,
> I can't call the local interface of my session bean from the entity bean.
> However, the remote interface work fine. I saw the same problem in the
> forum,
> but no answers. maybe there is something wrong with ejb-jar.xml.
> 
> Can anyone give me a hint how to solve it?

I've solved my local-call problem yesterday. The main point seemed to be
using the complete lookup name, eg. ctx.lookup("java:comp/env/ejb/Product"),
not only ctx.lookup("Product"). If I use the former form, I get a
ClassCastException when trying to establish a local call, remote calls work
ok this form as well.

Was very strange for me, but that's it.

hth,
Christopher
-- 
.Digital.Yearning.for.Networked.Assassination.and.Xenocide

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to