Forums Read-only archive

Plugin development

4 posts · Brekeke SIP Server Forum

vaclav_prokes Original post
1. Brekeke Product Name and Version:
3.5.5.2/424-1

2. Java version:
1.8.0_91

3. OS type and the version:
Windows 2003 64bit

4. UA (phone), gateway or other hardware/software involved:

5. Your problem:
I'm working on plugin. How to "unload" plugin and load new version ?

When I build plugin and test it I need to unload it and replace it by new version. The only way I have found so far is to restart BSS

Thank you
Laurie
Since a plugin class is cached on-memory, you need to kill the Java process to clear cache..

Which Plugin API are you using?
vaclav_prokes
I'm using accounting plugin.
Laurie wrote:Since a plugin class is cached on-memory, you need to kill the Java process to clear cache..

Which Plugin API are you using?
Laurie
If you change a plugin's class name, the SIP Server loads new plugin file.

If you keep using the same plugin class name, the SIP Server doesn't load the plugin file refreshly until you restart Java process.