• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Composite Entity or Session Facade?  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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
  • 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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!