Hello all,
this is a repost the last mail didn't show but I've made some progress and
narrowed down the cause of my problem.

I'm having great difficulties trying to get ejb to ejb communication. I have
Entity and Session EJBs that are deployed fine, I know this since they work
from regular java clients, I can contact all the ejbs from a single client
using their JNDI namespaces.The problem comes when I try to reference an ejb
from another ejb it gives me the following exception,

java.lang.ClassCastException
 at
com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:296)
 at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
 at SimpleEntityBean.Submit(SimpleEntityBean.java:261)
 at
SimpleEntity_EntityBeanWrapper1.Submit(SimpleEntity_EntityBeanWrapper1.java:268)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.evermind._dh._gc(Unknown Source)
 at com.evermind._if.run(Unknown Source)

This happens as soon as I try to create an home object in an ejb that
references another ejb using the

PortableRemoteObject.narrow(ref,OtherSimpleBean.class) method.
This code above is where the exception is being thrown.

Is there something I need to do to tell ejbs about one another? I've deployed
all the beans in a sinlge jar file and also in individual jar files but all
to no avail.

Any help is greatly appreciated,
I am desparate!
Best Regards,
Oisin

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to