• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic