开发者

Enumerating deployed EJB's and mBeans on JBoss

开发者 https://www.devze.com 2022-12-21 10:25 出处:网络
I am trying to find a way to enumerate the EJB\'s and MBeans that have been deployed to a JBoss server. I was looking down the path of somehow using the JDI Context, but all I can get are the binding

I am trying to find a way to enumerate the EJB's and MBeans that have been deployed to a JBoss server. I was looking down the path of somehow using the JDI Context, but all I can get are the binding names and classes. Am I barking down the wro开发者_StackOverflow社区ng path looking at JNDI? What should I do?

Thx!

~Bolt


You need to look on the JMX console, rather than JNDI. You'll see a lot of stuff on there, including multiple entries for each deployed EJB. You can get a connection to the JMX server using MBeanServerLocator.locateJBoss(), and from there you can use the JMX API to iterate over the various beans.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号