1 Reply Latest reply on Sep 27, 2011 7:01 AM by Ales Justin

    How to define Beans with names in beans.xml?

    Satinder Singh Newbie

      I am trying to create a Bean with multiple names. something  like-

       

      @Named("relative")

      Contact

      @Named("badRelative")

      Contact;

      @Named("friend")

      Contact;

       

      Agree I cannot have more than one named Bean with annotations but as per the spec it should be configurable in beans.xml.

       

      I am looking at JSR299 Spec and find no clue. I am missing something here?