This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes EJB and other Java EE Technologies and the fly likes how many instances to be maintained in Pool.? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how many instances to be maintained in Pool.?" Watch "how many instances to be maintained in Pool.?" New topic
Author

how many instances to be maintained in Pool.?

gopal kishan
Ranch Hand

Joined: Feb 23, 2005
Posts: 99
Hi All.

Can i specify how many instances to be maintained in Pool.

is it container specific or user specific???

please clarify..

thanks in advance
Gopal
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
What kind of instances? Threads? DB connections? Something else?
In general, most pool implementations are designed to be configurable.


Ping & DNS - my free Android networking tools app
gopal kishan
Ranch Hand

Joined: Feb 23, 2005
Posts: 99
HI,

class instances, if 10 client access the stateless session bean , then how many instances will it create??

or the user can specify the number of instances(class/thread)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
The documentation of your EJB server should state how you can configure a pool of EJBs. I'm not sure if it's a feature of EJB itself by now, or if each server has its own mechanism, but probably the latter.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how many instances to be maintained in Pool.?