activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Strachan <>
Subject [heads up] MBeanTest for testing out JMX operations on the MBeans
Date Thu, 09 Mar 2006 11:21:31 GMT
We've got a whole host of MBeans available in 4.x which now have more  
than just the basic statistics; you can create/delete queue/topic/ 
durable topic subscriptions as well as browse queues, purge queues,  
copy messages around etc.

Up to now alot of these MBeans were not tested though :)

I've just added MBeanTest which tests most of the basic operations... 

its a JUnit test case that sends messages to a queue, then browses  
them, copies them, removes them all via JMX with the MBean. Many  
thanks to Vik who provided a chunk of the initial JMX code.

As folks add new operations to the MBeans we should add tests for  
them to this test. If ever you experience any JMX wierdness it'll be  
good to use this test case to diagnose.

BTW to help debugging/introspection, you can run this test from the  
command line, where it will pause until the user hits return - so  
after the test has run you can fire up JConsole and view the MBeans etc.


View raw message