Hi,
I am using one WDJ component to use another WDJ component via the component interfaces. The component being used contains references to EJBs via JNDI Names that I have given.
This will run perfectly when I am calling one component via another inside the WDJ Framework. However, when I try to call the component containing the EJB reference via Guided Procedures - I get a ClassCastException on the line where I have looked up the bean.
The erroneous statement is:
BeanHome home = (BeanHome) new InitialContext().lookup("BeanJDNIName);
I have tried using the narrow() as well - but I get the same result.
I have added the Sharing References to the Bean in both Components.
Any ideas?
Thanks.
p256960