This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes JSF EJB3 JPA , what are the design patterns.  Most of design patterns of J2EE doesnt make sense.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "JSF EJB3 JPA , what are the design patterns.  Most of design patterns of J2EE doesnt make sense.. " Watch "JSF EJB3 JPA , what are the design patterns.  Most of design patterns of J2EE doesnt make sense.. " New topic
Author

JSF EJB3 JPA , what are the design patterns. Most of design patterns of J2EE doesnt make sense..

brijesh chavda
Greenhorn

Joined: Jan 01, 2011
Posts: 18
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
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30068
    
149

1) Yes, that makes sense. YOu are correct that most of the old design patterns aren't needed.
2) Depends on your requirements. You'll need to decide this as architect
3) Depends on your requirements. You'll need to decide this as architect
4) see here

I'm deliberately not answering these questions because part 2 is an individual assignment.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
wood burning stoves
 
subject: JSF EJB3 JPA , what are the design patterns. Most of design patterns of J2EE doesnt make sense..
 
Similar Threads
jsf_book_recomendation
opinion: Data Transfer Objects: pattern or anti-pattern (EJB3)
JSF and session beans
Data Transfer Object (DTO) using Domain layer?
Performance - How to justify