This document was generated from CDN thread
Created by: Michel Henault-Ethier on 19-06-2009 08:04:23 PM
Hi,
I am trying to create a custum management bean to get acces to XVP operation and attribute.
I followed the example in the documentation and created the following class and interface:
<font size="2" color="#7f0055"><font size="2" color="#7f0055">
</font></font><font size="2" color="#7f0055">
</font>
<font size="2" color="#7f0055"><font size="2" color="#7f0055">
public
</font></font><font size="2" color="#7f0055">
</font>
public String getDefaultAudioPath();<font size="2">
</font>
public void setDefaultAudioPath(String path);<font size="2">
</font>
public String getSuspendedAudioFile();<font size="2">
</font>
public void setSuspendedAudioFile(String file);
}
interface MyApplicationConfigMBean {<font size="2">
</font>
<font size="2" color="#7f0055"><font size="2" color="#7f0055">
</font></font><font size="2" color="#7f0055">
</font>
<font size="2" color="#7f0055"><font size="2" color="#7f0055">
</font></font><font size="2" color="#7f0055">
</font>
<font size="2" color="#7f0055"><font size="2" color="#7f0055">
import
</font></font><font size="2" color="#7f0055">
</font>
<font size="2" color="#7f0055"><font size="2" color="#7f0055">
public
</font></font><font size="2" color="#7f0055">
</font>
implementsMyApplicationConfigMBean {
<font size="2">
</font>
public String getDefaultAudioPath() {<font size="2">
</font>
return super.getDefaultAudioPath();
}
<font size="2">
</font>
public void setDefaultAudioPath(String path) {<font size="2">
</font>
super.setDefaultAudioPath(path);
}
<font size="2">
</font>
public String getSuspendedAudioFile() {<font size="2">
</font>
return super.getSuspendedAudioFile();
}
<font size="2">
</font>
public void setSuspendedAudioFile(String file) {<font size="2">
</font>
super.setSuspendedAudioFile(file);
}
}
class MyApplicationConfig extends AbstractApplicationConfig com.audium.server.management.application.AbstractApplicationConfig;
I have tried depositing the classes in the VXMLServer\management\classes and I also tried putting them inside a jar in VXMLServer\management\lib. When I restart the service CVPCiscoRessourceManager, it put a lock on the jar or class so they cannot be deleted (guessing it is using it?), there is no error in the logs but I cannot see the new management bean in jConsole.
Is there a missing step in getting it to work^
Thanks
Mike
Subject: RE: Application Management API
Replied by: Michel Henault-Ethier on 19-06-2009 08:09:14 PM
Copy paste error....
import com.audium.server.management.application.AbstractApplicationConfig;
public class MyApplicationConfig extends AbstractApplicationConfig implements
MyApplicationConfigMBean {
public String getDefaultAudioPath() {
return super.getDefaultAudioPath();
}
public void setDefaultAudioPath(String path) {
super.setDefaultAudioPath(path);
}
public String getSuspendedAudioFile() {
return super.getSuspendedAudioFile();
}
public void setSuspendedAudioFile(String file) {
super.setSuspendedAudioFile(file);
}
}
And
public interface MyApplicationConfigMBean {
public String getDefaultAudioPath();
public void setDefaultAudioPath(String path);
public String getSuspendedAudioFile();
public void setSuspendedAudioFile(String file);
}
Subject: RE: Application Management API
Replied by: Thomas Narce on 09-09-2009 05:48:08 PM
Hi,
I'm trying to play around JMX API withing CVP 4.1, howeve I can't see tbe audium mbeans registered from jconsole.
Do you know if there's something special to do?
Cheers - Thomas