I've been looking into this a bit today as well and got a working Ejb3MetricsDeployer
not requiring any further updates.
I basically changes those things to get it working:
- implement the ManagedObjectCreator interface and process the beans internally.
- I only create one KernelDeployment with all the metric beans.
- Additionally i had to drop the BeanMetaDataBuilder as the construtor was messing up the
controllerContext target, so that it was not possible to retrieve any values from the
statistics.
I'll attach the changes to the JIRA - so that you can take a look at that. I also have
a basic testcase in the AS testsuite which i can commit later on.
One thing i see which still should be done is a proper MetaMapping for the getStats()
which is a Map<Method, TimeStatistic>.
So you might want to look at @MetaMapping and MetaMapper - i can also provide further
information how to do that.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234329#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...