Hi Julien and Trustin, Thanks a lot for your quick reply and pointing me to org.apache.mina.integration.jmx classes.
I looked into both IoSessionManager and IoServiceManager and associated package.html. Just one more detailed question following the code snippet in package.html: ====================================== IoServiceManager iosm = new IoServiceManager(acceptor); MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); ObjectName name = new ObjectName( "com.acme.test:type=IoServiceManager,name=MyMINAServer" ); mbs.registerMBean( iosm, name ); ====================================== Is it intended that "IoServiceManagerMBean.startCollectingStats()" should be called through remote JMX Client to start/stop collecting statistics? Thanks again, Jian On 10/6/06, Trustin Lee <[EMAIL PROTECTED]> wrote:
Hi Jian, On 10/7/06, jian wu <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm looking into how to manage and monitor Mina and Applications running > on top > of Mina. So far, we did some preliminary work to count the > request/response > and session through IoFilter and expose the result through JMX MBean(s). > > I noticed that Mina 1.0.0 added new org.apache.mina.management package > with IoSessionStat and StatCollector, could anyone point me to the Mina > internal class(es) using these two classes or is there any example code to > use these two classes? Actually there's some documentation and example in our JavaDoc page. Please click org.apache.mina.integration.jmx package in the overview frame. http://directory.apache.org/subprojects/mina/apidocs/overview-summary.html Please let us know if the example doesn't work. I ademit that we have to add more documentation to our site. That's why we didn't widely announce MINA 1.0 so far. HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP key fingerprints: * E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E * B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6
