Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdi-dev] Regarding annotations

Hello,
 In Helidon, we are using the CDI reference implementation (Weld). It seems that it does not pick @Singleton as a bean defining annotation by default, so such classes are ignored. We have missed this as we always used @ApplicationScoped (as recommended).

Please kindly create an issue on our Github (https://github.com/oracle/helidon/issues/new) and we will fix this problem ASAP.

With kind regards,
Tomas Langer

On 14 Dec 2020, at 11:03, Emily Jiang <emijiang6@xxxxxxxxxxxxxx> wrote:

I don't see why @Singleton is not supported since it is part of JSR 330, which is supported by CDI. You should raise this with the Helidon project.
Thanks
Emily

On Mon, Dec 14, 2020 at 1:02 AM Abhideep Chakravarty <abhideepchakravarty@xxxxxxxxx> wrote:
Hi team,

I have recently migrated to Helidon from classic EE application. One problem I faced there was that the CDI stopped working. After getting some help, I was suggested to replace @Singleton with @ApplicationScoped. Once that's done things started working.

I was discussing the same with Reza Rehman a day back after seeing his news letter on Jakarta EE 10. He suggests not to use Singleton unless it's absolutely necessary.

Here is my concern:
If we have more than one option for doing same thing and other than one option everything else comes with 'use it if it's absolutely necessary' tag, then why don't we just remove those extra things and keep the one which is best to use. If we can remove in one shot, let's deprecate them.

Can we ?


Regards,
Abhideep 
_______________________________________________
cdi-dev mailing list
cdi-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdi-dev


-- 
Thanks
Emily

_______________________________________________
cdi-dev mailing list
cdi-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://urldefense.com/v3/__https://www.eclipse.org/mailman/listinfo/cdi-dev__;!!GqivPVa7Brio!N7ub22DMrTpjNHaoN7tYdOPNeOJJ4CF-Mwgo12EVWrear7i8HAc5jyXjX69rHZeWCw$


Back to the top