This content has been marked as final.
Show 2 replies
-
1. Re: MBean usage
pibakic Sep 11, 2001 12:55 PM (in response to pibakic)Hi,
OK, I decided to test out using an MBean, I can get it to deploy and run fine under JBoss, but it doesnt seem to get bound into Jndi, so I can't access it from within my beans, but I am certain that its there and running, the log looks fine and I can see it on port 8082, any ideas?
Thanks,
Pib. -
2. Re: MBean usage
juha Sep 17, 2001 7:23 AM (in response to pibakic)MBeans are not automatically bound to JNDI. You can use the MBeanServerFactory class to find the reference to the MBeanServer and then use its methods to manipulate the MBean.
Notice however that this is not very portable, as it relies on the fact that the MBean and the EJB can be found from within the same JVM.