Now I'm trying to create deploy scripts for each extension, avoiding unnecessary details, it will be like "Take this jar and copy it to its folder in Smartfox, copy zone settings, nice, now reload the extension".
And there is a problem with the last step - I don't see the proper way to do this automatically.
It can be achieved easily by manually clicking "Reload" button at admin tool, but it's unacceptable way for my deployment.
So, basically, I just want to "press" "Reload" button programmatically, is there any way to do this?
P.S.
Also tried entering --=={{{ AdminZone }}}==--, but got
Code: Select all
INFO [SocketReader] sessions.DefaultSessionManager - Session created: { Id: 6, Type: DEFAULT, Logged: No, IP: 127.0.0.1:33490 } on Server port: 9933 <---> 33490
WARN [SFSWorker:Ext:1] managers.SFSExtensionManager - java.lang.NullPointerException:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: java.lang.NullPointerException
Message: *** Null ***
Description: Error during event handling: java.lang.NullPointerException, Listener: { Ext: Admin, Type: JAVA, Lev: ZONE, { Zone: --=={{{ AdminZone }}}==-- }, {} }
+--- --- ---+
Stack Trace:
+--- --- ---+
com.smartfoxserver.v2.admin.handlers.events.LoginEvtHandler.handleServerEvent(LoginEvtHandler.java:97)
com.smartfoxserver.v2.extensions.SFSExtension.handleServerEvent(SFSExtension.java:259)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.dispatchEvent(SFSExtensionManager.java:768)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.dispatchZoneLevelEvent(SFSExtensionManager.java:689)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.handleServerEvent(SFSExtensionManager.java:887)