|
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 > > > > |