Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Facade vs Session Bean

 
pradeeppk
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between a Session Facade and a Session bean?
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by pradeeppk:
What is the difference between a Session Facade and a Session bean?

A Facade is a session bean who models the workflow of your application, and handles the communication with entiy beans and other objects in the business tier.
 
Ranjith R
Greenhorn
Posts: 22
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Session facade is an implementation pattern where in you will wrap a Session Bean around the Entity Bean.Access to Entity Bean methods are only through the session Bean methods.
While, A session bean is a Java object, conforming to the J2EE session object specifications.
 
pradeeppk
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ranjith R:
Session facade is an implementation pattern where in you will wrap a Session Bean around the Entity Bean.Access to Entity Bean methods are only through the session Bean methods.
While, A session bean is a Java object, conforming to the J2EE session object specifications.
 
pradeeppk
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.
Infact this is what I need to know.'
Is it possible for a Session Bean which implements Session Facade pattern to call an Entity bean directly? Someone suggested that a True Session Bean (which does not implement Session Facade pattern) can only call an Entity Bean and not a Session Bean which implements Session Facade. In effect there is introduce a layer of Session Bean between Session Facade Bean and Entity Bean.
Please reply
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PLEASE DO NOT POST THE SAME QUESTION MULTIPLE TIMES! I've added more information on your question on this (IDENTICAL) topic here.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pradeeppk,
Please not that JavaRanch has a naming standard. You must use your real first name - space - real last name as your display name.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic