import org.lilie.services.eliot.applications.verrou.ApplicationVerrouGestionnaire
import org.codehaus.groovy.grails.commons.GrailsApplication
+import org.springframework.core.annotation.AnnotationUtils
+import org.springframework.jmx.export.MBeanExporter
+import org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource
+import org.springframework.jmx.export.annotation.ManagedResource
+import org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler
+import org.springframework.jmx.export.assembler.MethodExclusionMBeanInfoAssembler
+import org.springframework.jmx.export.naming.MetadataNamingStrategy
+import org.springframework.jmx.support.MBeanServerFactoryBean
+
class EliotAppPluginGrailsPlugin {
// def xml = new XmlSlurper().parse(new File("pom.xml"))
def doWithSpring = {
+ // adding the mbean server configuration and export with mbeanserver ref... no exports
+ mbeanServer(org.springframework.jmx.support.MBeanServerFactoryBean) {
+ locateExistingServerIfPossible = true
+ }
+
// Ajoute la configuration du plugin
mergeConfig(application)