Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

enterprise beans implemented as remote objects

 
Ranch Hand
Posts: 662
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I came across the statement that enterprise beans implemented as remote objects consume a lot of system resources and network bandwidth. Hence the solution suggested is the used of enterprise beans with local view having session facades as remote beans. How is this exactly going to take care of things? Even in the case of having facades, we need to ultimately provide the services over the distributed network using RMI-IIOP or whatever mechanism masked inside the facades!!!
Can someone please clarify??
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The catch is that instead of 1+5 remote objects you have 1 remote object and 5 local objects.
 
Jayadev Pulaparty
Ranch Hand
Posts: 662
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you. Makes a lot of sense. BTW, if that is the case, is the session facade going to do some optimization like resource pooling, etc using flyweights ?? or i guess it's going to be take care of by the container? Just curious!!!
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jayadev Pulaparty:
Thank you. Makes a lot of sense. BTW, if that is the case, is the session facade going to do some optimization like resource pooling, etc using flyweights ?? or i guess it's going to be take care of by the container? Just curious!!!


The facade itself is not doing any optimization except for encapsulating access to the finer grained entity beans ("+5"). What the container does to optimize consists of all sorts of pooling techniques, of which bean instance pooling and resource pooling are the most common examples.
 
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic