[jboss-dev-forums] [Management Development] - Re: Simple Example using ManagedObjects and ProfileService

emuckenhuber do-not-reply at jboss.com
Thu Nov 12 15:17:01 EST 2009


"rareddy" wrote : 
  | When I execute this, I always end up in NPE on the response. I see the metadata on the object like its operations and properties etc, but not seemed to access the property values or invoke operations. I think I may be missing some step, can somebody please help or point toward a example?
  | 

With NPE on the response - you mean that the invocation returns null?

In general you would need to set the "runtime" property in the @ManagementObject annotation to "true". ProfileService should then dispatch the invocation to the correct bean.
I assume you are using MC or JMX to deploy your test bean?

"rareddy" wrote : 
  | I looked in "admin-console" code, but I did not see any difference from above.
  | 

Hmm, the admin-console needs additional metadata descriptors (some mapping between jopr and profileservice) to display the exposed information from ProfileService. 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265354#4265354

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265354



More information about the jboss-dev-forums mailing list