Before I file an issue I want to make sure I'm not mistaken in my
assumption of what should happen.
Suppose I have a set of qualifiers consisting of Any.Literal.INSTANCE and
Suppose there are two beans in the CDI container of type Foo. Neither is
annotated with @Default or @Any.
Suppose that during startup I call beanManager.getBeans(Foo.class,
I'm observing that in such a case I get a returned Set that has one of the
two Foo beans, not both of them. Which one is in the set seems to be
If instead I call simply beanManager.getBeans(Foo.class) I get both beans.
These calls should return equivalent results, yes?
I am a beginner in WELD CDI and my purpose of this email is to clarify if WELD CDI can be used in this scenario.
Basically, I started out my web app project using Java, JEE and jsp and DAO design.
The thing is I have problem in getting the id of an entity.
So, my question is how do I use Weld to get the Id and then used it in my DAOimpl ?
I have a insert(Tutor t) method in tutorDAOImpl.
Once the tutor's data is inserted into MYSQL the id is in as well cos it is using Autoincrement.
So, I'm thinking of how to use Weld to get the tutor Id since I have the getter in tutor_id in Tutor class.
In this DAO design, there is also a Manager or Service class which call the tutorDAOImpl's method and it is in turn called by the Controller.
If Weld CDI can be used in my case, please tell me how to go about implementing it.
Thank you & regards,