• 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

Composite Entity or Session Facade?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, for example, I have a ASP page that query data from a StoredProcedure and shows in a HTML table... now I want to substitute the ASP for a JSP and the StoredProcedure for a EJB... when I must use the patern Composite Entity or the Session Facade? Or better, to substitute the StoredProcedures for EJBs, which they could be a Composite Entity and which could be a Session Facade? They forgive me but these two patterns me had seemed similar.

Thank very much!!!

Ary Junior
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Arent there any need for handling some transactions ? Is it always read and display ?
In case there are transactions to be handled,go with Session facade.Also,Use SessionFacade Pattern to avoid direct client access to Entity beans thus reducing network calls...
If the system just retrieves and displays then you can just go with Composite Entity beans.
Just keep this in mind when you design -
The Composite Entity Pattern improves performance significantly by reducing number of entity beans in an application provided the relationships between the tables have been designed well to support the same.
Folks,please correct me in case i am wrong .. :roll:
[ January 31, 2005: Message edited by: Maybach Smith ]
reply
    Bookmark Topic Watch Topic
  • New Topic