Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2294 EJB3 annotation problems

open
nobody
9
2011-11-28
2011-11-28
Guru
No

Hi experts,

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 ")
interface1 inter1;

usage : inter1.method();

exception : can not cast to interface2.

please help me.

regards
Guru...

Discussion

  • Guru
    Guru
    2011-11-28

    • labels: --> JBossServer
    • priority: 5 --> 9