cd services/servicesadmin
mvn clean -f pom-run.xml pax:provision
cd runner
(Optional) Set the OSGi bundle storage location
Code Block
set BUNDLE_HOME=[BUNDLE_HOME]
Wiki Markup
Where \[BUNDLE_HOME\] is the full path to an empty directory where the osgi container content will be stored
Open the run.bat file in the runner directory in a text editor and replace all instances of "$BUNDLE_HOME" with "%BUNDLE_HOME%"
Note: A directory called "$BUNDLE_HOME" under the runner directory will be used as the default bundle home if one is not specified.
(Optional) Set up logging
Download this the logback.xml file file found hereinto your bundle home directory.
Open the logback.xml file in a text editor and edit the LOG_FILENAME property to point to a full file path (including file name) for a log file.
Note: One benefit to performing this step will be faster start time for your OSGi container.
Start OSGI service container
Code Block
run.bat
The run.bat script will start an OSGi container and commandline interface to it
The container starts with required bundles including the 'services-admin' installed
See discussion below on OSGi container for more details
Once the 'services-admin' is running, check to ensure that it was created properly
In the console where run.bat was executed, an "osgi" prompt should be available. If it is not available, hitting enter should bring it up.
Type "ss" and hit enter. This should list all of the available bundles. This list should include 50 items, all of which are either in the ACTIVE or RESOLVED state.