Wiki

Clone wiki

smool / Production

The SMOOL servers (SIBs) and clients (KPs) can be deployed as lightweight standalone applications to keep system resources demand as low as possible (lowest CPU and RAM, no graphical interface, start as daemons or services).

BASIC USAGE

The server (SIB) as standalone application:

  • The server is packaged into a zipped folder containing all the required OSGi bundles and configuration files.
  • Installation: download latest version from Downloads page
  • Configuration: replace the server IP at /configuration/sib.ini file.
  • Run: execute the start.sh or the start.bat file.
  • Problems: check logs in /configuration folder.

In order to update the server to latest libs:

  • either download the latest version
  • or (only for server developers), on Eclipse go to file/export/plug-in development/deployable plugins and select the plugins. Copy them into the production server and restart. Newest version of eclipse/equinox/etc bundles can also be found in the Eclipse Installation folder/plugins.

ADVANCED USAGE

Using OSGi console

Start an OSGi console and type sspace command to see list of available SMOOL commands.

Using HTTP REST interface

Note: The REST interface is not available when running a server from Eclipse. Use the integrated Eclipse SMOOL perspective instead.

Main endpoint at http://localhost:8380/ . See documentation at changelog file in the org.smool.sdk.osgi.rest.servlet plugin. Link Text Example:http://localhost:8380/show_sessions.json?name=sib1 shows the connected KPs at sib1 server.

Note: see also security calls at the RestServlet class and at the Secutron app.

Updated