• Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Facade

 
Kodo Tan
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
Normally, we use Session EJB to wrap around Entity EJB creating a facade.
Now my question is: Can we wrap Entity EJB around Session EJB to create an "Entity Facade" ? Does it makes sense ? Somehow, I cannot think of a scenario and it appears weird to me but I need some confirmation and alternative opinions.
Thanks in advance.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. That would make no sense. Entities are persistent objects -- why would you want a facade to be persistent? Is there a reason why you're thinking about this?
Kyle
 
Kodo Tan
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it's just a thought that came across my mind . I always like to spend moments to think about funny ideas/alternatives and see if they are feasible.
 
ejbsuryanarayana
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Kodo Tan:
Hi all
Normally, we use Session EJB to wrap around Entity EJB creating a facade.
Now my question is: Can we wrap Entity EJB around Session EJB to create an "Entity Facade" ? Does it makes sense ? Somehow, I cannot think of a scenario and it appears weird to me but I need some confirmation and alternative opinions.
Thanks in advance.

Facade itself is a interface to a set of interfaces in subsystem, feel that entity beans are basically for TX management, why do you need do declare EB as again a facade, session bean is facade that receives client requests and redirects to subsystems like entity beans
There is no mean making EB as facade to client
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!