Skip to main content

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

Helidon is using WELD 3.1.4. In that case, I would have go and talk to WELD.

On Mon, Dec 14, 2020 at 3:33 PM 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://www.eclipse.org/mailman/listinfo/cdi-dev

Back to the top