• Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt in Component Pooling  RSS feed

 
Sat Nar
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • 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
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!