|
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 |
|
From: Rob H. <ro...@ca...> - 2004-10-02 21:47:24
|
Seth, I'll look into that setObjectName lark - seems strange to me. As for the HmlAdaptorHost, I think it will be really useful to have a collection of these and hopefully vendors will supply their own. I will probably just supply one for the RI and a reflection based one that works for a range of adaptors. Rob Seth Ladd wrote: >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 > > >------------------------------------------------------- >This SF.net email is sponsored by: IT Product Guide on ITManagersJournal >Use IT products in your business? Tell us what you think of them. Give us >Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more >http://productguide.itmanagersjournal.com/guidepromo.tmpl >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > |
|
From: Seth L. <set...@gm...> - 2004-10-02 23:34:57
|
On Sat, 02 Oct 2004 22:45:49 +0100, Rob Harrop <ro...@ca...> wrote: > Seth, > > I'll look into that setObjectName lark - seems strange to me. As for > the HmlAdaptorHost, I think it will be really useful to have a > collection of these and hopefully vendors will supply their own. I will > probably just supply one for the RI and a reflection based one that > works for a range of adaptors. Yeah, I saw from the package structure that it's easy to add multiple adapters. As far as Sun's Reference HTML Adapter... we'll need to add support for DisposableBean and for setting the MBeanServer before the call to start(). I spent yesterday hacking log4j to work with JMX 1.2 code. I was able to control log4j via JMX and the HTMLAdapter inside a Spring app. Very cool! Log4j, unfortunately, doesn't look too active these days, and I'm not sure how receptive they'll be of my updates. Which begs the question: would it be helpful for Spring to include updated JMX 1.2 support for Log4j? This would be a really big help I can imagine. We've already found it very useful to be able to manage our logging during runtime. Seth |