The moose likes JBoss and the fly likes EJB3 Annotation problems Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "EJB3 Annotation problems" Watch "EJB3 Annotation problems" New topic
Author

EJB3 Annotation problems

Guru Bojja
Greenhorn

Joined: Nov 21, 2011
Posts: 14

Hi ,


i have one sessionbean which is implementing two interfaces . the same logic is working fine with Glassfish but not with Jboss6. throwing class cast exception.

@EJB(beanName = PTAdaptorConstants.EJBName_PTAdaptorOptimizer)
IServicesLocal OptimizerLocal;


the two interfaces are

IServicesLocal
IServicesLocalExt

when i call OptimizerLocal.run() method . sometime it is throwing exception like can not cast to IServicesLocalExt

please help me .

regards
Guru...

 
 
subject: EJB3 Annotation problems
 
Threads others viewed
ClassCastException
How to inject sessionbean local reference in webservice(soap)
instanceof and isInstance
implementing same interface by more than one beans (glashfish v2 + netbeans 6.7)
Inserting Clob data
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com