i am doing bean to bean communication main bean has local home and local interface and the controller bean has remote interface and this calls the main bean which has local and local home interface beans are jarred and deployed i dont get any errors when i start the weblogic server but when i call the client control passes till controller bean and the look up in the controller bean throws class cast exception what is the solution i am following ejb2.0 spec please do give solution for this part??
which Application server u used?
In case of Weblogic:
use "EJBReference" option in weblogic "EJBdeployer".
Specify the controler bean's JNDI name in main bean's "EJBRefrence" during deployment of main bean.