Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Clarification using Session Facade

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
I have SessionFacade(StatefullSessionBean)-ties business objects which are few Entity Beans,1-StatefulSessionBean(Since ShoppingCart),1-Stateless Session Bean(CreditCard Processing).
Is it acceptable architecture in SessionFacade Pattern.
Is it always with Facade(SFSB or SLSB) with EntityBeans?
or Facade with only SessionBeans
My doubt is IS it Facade with Business objects (Combination of Entity,Session-(Stateful),Stateless)
please clarify
Advanced Thanks
with regards
bala
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is acceptable, since your facade decouples your client from complex relationships between low-level business objects (your ShoppingCart-bean,your CreditCard Processing-bean,and your entity beans). This would also reduce the number of network calls from the client, which are the problems this Design pattern solves.
Your session facade could either be a stateful or a stateless session bean.
You cannot implement an entity bean as a session facade, however you have the composite entity design pattern which allows you to implement an entity bean as a facade to manage other entities (persistent objects). This also reduces the number of network calls from the client side, since you must not implement every persitent object as an entity bean (assuming you are using EJB 1.1 or lower version).
Ebage
SCJP
SCEA
[ July 28, 2003: Message edited by: Christian Ebage ]
 
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic