0 Replies Latest reply on Jun 30, 2008 9:20 AM by Gregory Nikle

    How to create Bean from another bean?

    Gregory Nikle Apprentice

      I have authentication class (like in example), and from inside this class I want to create SFSB whitch maganes page after successful login.

      My injection looks like:

      @In(scope=ScopeType.SESSION, value="userTech", required=false)
      @Out(scope=ScopeType.SESSION, value="userTech", required=false)
      protected Technology userTech;

      So far this looks goo, but my entityManager doesn't seems to work corectly inside this bean.
      when I execute method and do merge like:

      and after that

      there is no change in db and no errors.

      My question is, how to create fully functional SFSB from inside another bean.

      btw. previous bean constructor looks like

      public Technology(EntityManager em) {
          this.em = em;