2 Replies Latest reply on Apr 26, 2010 5:07 PM by Juanyong Zhang

    EJB3 Stateful Sessionbean how to implement multi business interfaces?

    Juanyong Zhang Newbie

      Hi All,


      I met up some issue, can't make the session bean implement 2 business interfaces? Please kindly throw me some light! thanks



      Business sessionbean


      @Stateful
      @ConversationScoped
      @Named
      @Local( { IWizard.class, IRegisterWizard.class })
      public class RegisterWizard extends WizardBean {
      ....
      }



      Then two inferfaces


      @Local
      public interface IWizard extends Serializable {
              public String back();
      
              public boolean hasBack();
      
              public boolean hasNext();
      
              public String next();
      
              public String abort();
      }
      




      @Local
      public interface IRegisterWizard{
              public String submit();
      }
      




      error message of glassfish3 below:




      Caused by: java.lang.IllegalArgumentException: Not enough type information to resolve ejb for  ejb name class wizard.RegisterWizard 
              at org.glassfish.weld.services.EjbServicesImpl.resolveEjb(EjbServicesImpl.java:121)
              at org.jboss.weld.bean.SessionBean.createReference(SessionBean.java:422)
              at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.<init>(EnterpriseBeanProxyMethodHandler.java:76)
              at org.jboss.weld.bean.SessionBean.create(SessionBean.java:298)
              ... 53 more