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?
There is no such thing in beans.xml.
CDI doesn't work this way. ;-)