• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Doubt in Component Pooling

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
kidnly find the below two statements.

" When the EJB server starts up or when an EJB is deployed,the server creates several instances of the bean and stores it in a pool"

" The client doesnt have a direct refernce to the bean instance.It doesnt return the reference to the bean instance but rather returns the reference to the Component(Remote) object"

So my doubt is,according to the first statement is the instances in the pool the Actual Bean instance or is it the instances of the remote object???

Regards,
Sathya
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The instances in the pool are actual Bean instances, because that is what the server is using. What you end up using on the "client" side is a Proxy object, that passes it back to the server, which passes it to the actual bean it has gotten from the pool. It does not pool Proxies, since that proxy is already on your client side.

Mark
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic