• Post Reply Bookmark Topic Watch Topic
  • New Topic

session facade >> 1.1 version of ejb  RSS feed

anagha patankar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,
I have read a no of articles related to session facade and have come up with this as an understanding :

1 >
can be implemented using both stateful / stateless beans
2 >
session facade should NOT contain any domain logic whatsoever

The advantages that I could perceive were :
1 > Lesser network calls

However here comes my doubt / question :

A >
In case of ejb1.1 there were no local interfaces ONLY remote interfaces

so in 1.1 >> even if we call a session bean which makes three method calls to Entity beans >> then all the communication would be through remote calls thereby incurring marshalling / unmarshalling etc overhead

So in case of 1.1 does session facade really apply ? or is it specific to ejb 2.0 implementation ?

B >
In case of ejb 2.0 we have local interfaces
however if the session bean and the entity bean are located on different servers >> this would still be a call across the network

so in case B >> does it mean that our decision of using this design pattern would be more driven by the manner in which the bean is deployed ?

If I am correct in my understanding ( case B ) >> the pattern kind of heavily depends on deployment ?

Here are a few links that i found some similar questions :

Regards ,
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!