Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Get MBean from JBoss???  RSS feed

 
Nghiem Nguyen
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I deployed a session bean on JBoss, and I saw it is managed by an MBean

In the JBoss's JMX MBean View:

MBean Name: Domain Name: jboss.j2ee
service: EJB
jndiName: TestFacadeBean
MBean Java Class: org.jboss.ejb.StatelessSessionContainer

Now, I want to get this MBean and use it's methods.
I used this code to find the MBeanServer:

ArrayList arl = MBeanServerFactory.findMBeanServer("jboss.j2ee");

but art.size() = 0 and I cannot find MBean Java Class: org.jboss.ejb.StatelessSessionContainer

Could you tell me how I can get a particular MBean from the Agent View of JBoss.
Can I lookup it like EJBs, if can, what is it's jndiName?

Please help me,
I'm waiting for your answers.
Thanks a lot.
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rock,
I don't use JBoss, but I came across the following article that may contain the information you seek:

Reading JBoss MBeans

Good Luck,
Avi.
 
Nghiem Nguyen
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Avi,
Thanks for your reply.
It's really helpful.
Have a nice day!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!