PDA

View Full Version : JMX beans and prototypes


hucmuc
Mar 1st, 2006, 10:13 PM
I know I can use the jmx exporter to expose spring managed singleton beans.

How do I export prototypes (with unique mbean name) via spring?

Dino

Costin Leau
Mar 2nd, 2006, 11:52 AM
I haven't tried this example but have you looked at NamingStrategy interfaces? If you can't find the functionality in the existing support raise an issue on jira please.

hucmuc
Mar 2nd, 2006, 02:07 PM
I haven't tried this example but have you looked at NamingStrategy interfaces? If you can't find the functionality in the existing support raise an issue on jira please.

I'm looking at the implementation and there doesn't seem to be a way to add a new mbean instance at run-time. The MBeanExporter looks at the start-up bean definitions.


Dino

robh
Mar 8th, 2006, 09:06 AM
Dino,

In Spring 2.0, MBeanExporter implements the MBeanExporterOperations interface which provides two mechanisms for registering MBeans at runtime using Spring's interface generation capabilities.

Regards,

Rob