What is the difference between @ApplicationScoped and @Singleton scopes in CDI?

@Singleton is not part of the CDI specification. It is part of EJB and javax.inject (JSR-330). It is not mentioned in the spec what is its behaviour, so you can only rely on what’s written in the Weld documentation.

Leave a Comment