Insted of the MBeanServerFactory go with something like
Actualy the snippet it is from, That class is a part of a properitry framework and is used on multiple servers. I would not want to modify it until it is utterly neccessary.
i suppose there is a MBeanServerFactory provided by JRE6 , is there some way i could use those? i dont know that makes sense or not never worked with MBeanservers.. hope u get what i am trying to say ? :/
I went ahead and did the change you recomend and it worked.. thanks a lot mate..
btw just a quick question... i use this same application on websphere application server, tomcat and currently on jboss..
and the previous implementation works with websphere and tomcat.. so would this new one have any effect on them ?
I don't think so as the ManagementFactory is part of the Java bundle.