|
From: Seth L. <set...@gm...> - 2004-10-01 18:28:00
|
Hi Rob, I've been working with Spring JMX today, and it looks great. I've noticed that the HtmlAdaptorHost isn't quite implemented today, but looks like it'll work great. I've attempted to setObjectName on AbstractConfigurableAdaptorHost, but I receive this error: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [javax.management.ObjectName] for property 'objectName'] PropertyAccessExceptionsException (1 errors) org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [javax.management.ObjectName] for property 'objectName' at Very odd, since setObjectName() has an overloaded version for a String. Also, I encountered one other issue. It seems that the HtmlAdaptorServer classes needs to be registered with the MBeanServer /before/ the call to adaptor.start(). The HtmlAdaptorHost class from spring doesn't have a reference to the MBeanServer (neither does its superclass). Not sure if this is just a weirdness w/ HtmlAdaptorServer, but it might make sense to give a reference of the server to the adaptor. Or, somehow add a callback like afterRegisterToServer, so that I can start my adaptor after its been registered. Thanks! Seth |