What are differences between javax.faces.bean.ManagedBean
vs javax.annotation.ManagedBean
? Specifically which one can be used with annotations like javax.faces.view.ViewScoped
or javax.faces.bean.ViewScoped
? I see that there are questions like:
- Java EE 6 @javax.annotation.ManagedBean vs. @javax.inject.Named vs. @javax.faces.ManagedBean
- Backing beans (@ManagedBean) or CDI Beans (@Named)?
- Why are there different bean management annotations
- Spring boot with JSF (2.2) managed bean is not created
But they are not completely answering my question! I'm using spring boot but just using javax.annotation.ManagedBean
my bean is recognised and created successfully and also @ViewScoped
beans are not working properly and are never destroyed!