Look at the jboss.j2ee:jndiName=xxx,plugin=pool,service=EJB MBean.
thank you for your reply.
Sorry, I cannot understand what you mean.
Please, could you explain further.
thank you very much.
What Juha is saying is that there is an MBean for each of your entity beans that supports the reporting that you are needing.
MBean is short for Management Bean, and is part of the JMX (Java Management Extensions) specification.
You can read more about JMX here:
And in the JBoss documentation.
You can access these beans at runtime, although I don't have the code handy to show you.
Also, once you have JBoss up and running, go to
http://localhost:8080/jmx-console (assuming you are running on port 8080), and you'll see links like the one Juha posted. There's an MBean for each entity you deploy for which the MBean will report the ReadyCount, PooledCount, etc. You can access that information through this web interface as well as in your code.
Thank you for your reply.
Just for information, I use stateless session beans.
No problem, you will be able to find this information not only for entity beans, but also stateless session beans. I'm sorry if my post was misleading in that regard.
ps. HTH == Hope This Helps :)