Oracle Community Directory
Oracle Community FAQ
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
on Jul 27, 2010 2:20 PM by 791266
How to register two MBeans onto the same domain
Jul 21, 2010 2:59 PM
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 2:20 PM
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: