Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Facade vs Session Bean  RSS feed

 
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?
 
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.
 
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
 
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.
 
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.
 
Whatever. Here's a tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!