The question is: why do you need @New? For EJB it doesnt mean anything, for pojo you can use BeanProvider.injectFields (IIRC the method name) to do the same.
You can create your own qualifiers which are kind of namespaces but doesnt get rid of cdi lifecycle (thats why i ask why you need @New). Le 29 juil. 2013 07:10, "Evan Yang" <evanyang1...@163.com> a écrit : > Hi, > > Yes, @New is already deprecated in CDI 1.1. I used @Dependent, but I could > not find some examples. > > So, Can you give some information for me about other qualifiers to handle > this issue? > > Thanks. > > > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/There-is-a-problem-of-CDI-in-TomEE1-5-2-tp4664313p4664405.html > Sent from the OpenEJB Dev mailing list archive at Nabble.com. >