3 Replies Latest reply on Dec 17, 2008 7:11 PM by Francisco Jose Peredo Noguez

    calling a method from another bean

    Bart DP Newbie

      Hi all,


      I have a question about calling a method from another bean. Lets say there a 2 beans, BeanA and BeanB. So in BeanA I do an injection of BeanB and calls his method.



      public class BeanA implements Serializable {
      
      @In(create = true)
      private BeanB beanB;
      
      public void methodA() {
        beanB.methodB();
      }
      ...
      }
      
      




      Is this correct?