• 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

JMX in WebLogic

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to register my MBeans to WebLogic's MBeanServer. The WebLogic documentation says I can use MBeanHome in WebLogic API to get MBeanServer instance. My questions is where to find WebLogic API, the jar file? Which jars are quired for JMX applications in WebLogic?

Thanks,
 
Xinyi Zhang
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got it. It was weblogic.jar

Now the question is: After getting the reference to MBeanServer on the managed server instance, I tried to register my custom DynamicMBean, it throws the exception,


javax.management.ReflectionException: The MBean class could not be loaded by the default loader repository
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:138)
at weblogic.management.internal.RemoteMBeanServerImpl_812_WLStub.createMBean(Unknown Source)
at wlTest.WLMBeanServerTest.registerMyTestMBean(WLMBeanServerTest.java:104)
at wlTest.WLMBeanServerTest.main(WLMBeanServerTest.java:53)

Even I tried to register the example DynamicMBean from Sun JMX 1.2 RI. It still failed. Why?
 
Whatever you say buddy! And I believe this tiny ad too:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic