2 Replies Latest reply on Jul 17, 2008 3:59 PM by gjeudy

    How do you reference JSF managed beans from EJB ?

      Dear all,
      does anybody know how you can reference a JSF managed bean from an EJB ? I have tried injecting the Managed Bean into the EJB

      @Stateful
      @Name("ticketCreation")
      public class TicketCreationAction implements TicketCreationItf  {
      ....
      @In(scope=ScopeType.SESSION)
      UserBean userBean;  // JSF Bean
      ...
      }

      but I have the following error:

      org.jboss.seam.RequiredException: @In attribute requires non-null value: ticketCreation.userBean


      Wrong annotation ? or should I configure UserBean also in a Seam config file ?
      Thanks mark