June 2018
Intermediate to advanced
408 pages
11h 23m
English
Now, we need to create an MBeanExporter in a Spring application context. We just need to add the following tag in the Spring context XML configuration:
<context:mbean-export/>
So, our Spring context configuration will look like the following:
<?xml version="1.0" encoding="UTF-8"?><beans><!-- Skipped schema definitions --> <context:component-scan base- package="com.packt.springhighperformance.ch4.mbeans" /> <context:mbean-export/></beans>
Now, we just need to start our Tomcat server and open the JConsole to see our MBean. After connecting to JConsole, go ...
Read now
Unlock full access