Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Plugin development
Author Message
vaclav_prokes
Brekeke Member


Joined: 19 Feb 2013
Posts: 22

PostPosted: Wed Jul 27, 2016 3:54 am    Post subject: Plugin development Reply with quote

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
Back to top
View user's profile
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 242

PostPosted: Wed Jul 27, 2016 11:06 am    Post subject: Reply with quote

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

Which Plugin API are you using?
Back to top
View user's profile
vaclav_prokes
Brekeke Member


Joined: 19 Feb 2013
Posts: 22

PostPosted: Thu Jul 28, 2016 5:47 am    Post subject: Reply with quote

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?
Back to top
View user's profile
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 242

PostPosted: Thu Jul 28, 2016 4:08 pm    Post subject: Reply with quote

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.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1