2 Replies Latest reply on Jan 26, 2007 8:49 AM by Alain Bergeron

    @EJB annotation support in seam

    Alain Bergeron Newbie


      I would like to know if it is possible to use the @EJB annotation with seam in order to inject ejbs. I have tried with the examples to replace the @In annotations with @EJB thinking they were quite the same but I am getting the following error when starting the server ( I replaced @In on user attribute in RegistrationAction of registration project). Anyone did it ?


      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.j2ee:ear=Registration.ear,jar=RegistrationEJB.jar,name=RegisterAction,service=EJB3
      State: FAILED
      Reason: java.lang.RuntimeException: could not resolve global JNDI name for @EJB for container RegisterAction: reference class: org.jboss.seam.example.registration.User ejbLink: not used by any EJBs
      I Depend On: