i am working on JBOSS6 server and in my application i am using EJB3. before the same application is working fine with Glassfishv2. now we have migrated to JBOSS6. i am getting cast cast exception . please find below details.
i am application : sessionbean is implementing two interfaces . for example sessionbeanA is implementing interface1 and interface2. i am using the same sessionbeanA in another sessionbean to call the methods.
the annotation is : @EJB (beanName="sessionbeanA ")
usage : inter1.method();
exception : can not cast to interface2.
please help me.