I have two kinds of backing beans in my JSF application:
- Managed Beans (
@ManagedBean(name="bean")) - Entity Beans (
@Entity)
Which of them should be scoped (request/session/view/application/no)?
I’m having all of my managed beans scoped and entity beans not now (I had also entity beans scoped in the past and it seems to be the same as without scope). And in addition “not” could mean, that entity beans are request scoped.
Thanks for the explanation 🙂
I would say your Managed Beans should be scoped .
and not the entity beans,
Thats assuming that entity beans are pojhos and all the operations are in
managed Bean.
I am answering this wrt JSF v 1.1
Hope this helps.