Hi,
This is a general design level question.
1.) I am using EJB3+JPA and
JSF for presentation. What is the best
pattern to use backend objects in presentation layer.
I am planning to use Stateless session bean as a facade to entities and use detached entities from managed bean. Is this acceptable approach? . Is there any value addition for using DAO or DTO pattern here.
2.) Should i put detached entities in HttpSession or i should create statefull session bean and put its handle to http session?
3.) Does it make sense to maintain cache of entities at presentation layer for performance for e.g Product catalogue.
4.) What is the naming convention for the managed bean , should it be called Controller? For e.g UserController or Managed Bean, like UserManagedBean.
Thanks for helping me out.
Brijesh