Reputation: 1643
Is it possible to query current session bean pool state in websphere programmatically?
Upvotes: 0
Views: 267
Reputation: 33936
The only way to access the pool size programmatically is to enable PMI and obtain the stats attribute of the corresponding EJB MBean. For stateless session beans, that is the MethodReadyCount statistic of the type=StatelessSessionBean MBean. For message-driven or entity beans, that is the PooledCount statistic of the type=MessageDrivenBean MBean. See the Enterprise bean counters topic in the Knowledge Center for more information on EJB PMI statistics.
Upvotes: 2