• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

session facade >> 1.1 version of ejb

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 :
Link1
Link2

Regards ,
-anagha
 
Being a smart alec beats the alternative. This tiny ad knows what I'm talking about:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic