10 Replies Latest reply on Jul 22, 2009 9:11 PM by Shervin Asgari

    inject CONVERSATION in session bean

    aj1m aj1m Newbie

      Hi,
      i have two bean one session and one CONVERSATION,
      i want to inject the CONVERSATION in the session one i did like below :


      @Stateless
      @Name("epayconsulttable")
      @Scope(ScopeType.SESSION)
      public class EpayConsultTable implements IEpayConsultTable{
      
      @In(required = false)
           EpayConsult epayconsult;
      
      public String executeChoice(){
      epayconsult.verifie();
      }
      
      }
      





      @Stateless
      @Name("epayconsult")
      @Scope(ScopeType.CONVERSATION)
      public class EpayConsult implements IEpayConsult{
      
      public verifie(){
      ...
      }
      
      }