• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Get MBean from JBoss???

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Avi,
Thanks for your reply.
It's really helpful.
Have a nice day!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic