I understand how to declare an mbean server in the spring conf, but I'm stuck on a point.. when I run my webapp I want to use the mbean server of tomcat. However when I run the unit tests, I get:
So I need to tell spring to create an mbean server for the unit tests. I'm not sure how to do this with the conf, it seems to be one way or the other. Is it possible? How do most people handle this?
MBeanServerNotFoundException: Unable to locate an MBeanServer instance