Hi..
Tried configuring the BAMComponent to get configuration data from
MBean instead of the file-system..
Added the following to the BAMEndpoint
public BAMConfiguration getConfiguration() {
BAMLifeCycle lifeCycle = (BAMLifeCycle)
getServiceUnit().getComponent().getLifeCycle();
return lifeCycle.getConfiguration();
}
Added the following to the BAMLifecycle
public BAMLifeCycle(BaseComponent component) {
super(component);
configuration = new BAMConfiguration();
}
protected Object getExtensionMBean() throws Exception {
return configuration;
}
public BAMConfiguration getConfiguration() {
return configuration;
}
public void setConfiguration(BAMConfiguration configuration) {
this.configuration = configuration;
}
I thought I'll be able to view a configuration MBean using JConsole..
But its not registered..
I can view the Component and Endpoint MBeans though..
Any leads on what should be done to automatically register MBeans when
an endpoint starts?
~Vikas