6 Replies Latest reply on May 17, 2010 6:06 PM by Marisleivy Pelaez

    urgent beginner question

    Marisleivy Pelaez Newbie

      Hi, I have one question, i hope someone help me


      Take a look to this example


      @Name(a)
      @Scope(ScopeType.CONVERSATION)
      class A{
       
        private Father obj;


        @In
        private B b;
       
        public void M(){
          b.getSon().setFather(this.obj);
          b.setName(Eduard);
        }


       
      }


      @Name(b)
      class B{


          private Son son;
         
      }


      the problem is that when I call the method M() works fine but if after I call  b.son appears null.
      Any idea??