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
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 :
Reply to the post :