• Post Reply Bookmark Topic Watch Topic
  • New Topic

enterprise beans implemented as remote objects  RSS feed

 
Jayadev Pulaparty
Ranch Hand
Posts: 662
  • Mark post as helpful
  • send pies
  • 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??
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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
  • 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
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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.
 
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!