Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Jul 27, 2010 9:20 AM by
How to register two MBeans onto the same domain
Jul 21, 2010 9:59 AM
I wrote the following code to register to MBeans onto the domain "HelloAgent2".But,it is not working.Can i register two MBeans like this or do i need to use loggers to register the second MBean.
MBeanServer mbs = null;
mbs = MBeanServerFactory.createMBeanServer( "HelloAgent2" );
SampleDynBean2 sample=new SampleDynBean2();//Dynamic MBean
SampleDynBean3 sample2=new SampleDynBean3();//Dynamic MBean
This content has been marked as final.
Show 1 reply
Re: How to register two MBeans onto the same domain
Jul 27, 2010 9:20 AM
in response to
We are dynamically registering and removing lots of jmx beans at runtime. Some are of the same type, and some are not.
Our code for registration looks like this:
mbs.registerMBean(bean, new ObjectName(uri));
.. and an uri could e.g. be: