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

    How do you reference JSF managed beans from EJB ?

    fmarchioni fmarchioni Newbie
      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