This exercise is broken down into two parts:
See the Deployment Exercise slides
ics-linux elvinBy the end of this exercise you will:
Entities can work with devicesFiles involved:
livespace.services.example.sound_player projectlivespace.workshop.examples packageActivator.javaSoundPlayerEntity.javaSoundPlayerService.javaSoundDevice.javaCoordinator.javaRun targets:
Steps:
elvin daemon is running.build.xml from the livespace.osgi project into the newly opened panel. This panel allows us to run specific Ant targets.build.xml from the livespace.services.examples.sound_player project into the same panel.SoundPlayerServer.java and run it.
Activator does the work of the SoundPlayerServer class. Extending the RoomBasedActivator gives access to
Elvin connection,RoomEntity as well asbuild.xml Ant file creates a bundle from the service code./development/livespace.osgi/config/test/services/livespace.examples.sound_player.properties, the filename of which matches the bundle name minus the version information. There is already a properties file at /development/livespace.osgi/config/default/services/livespace.examples.sound_player.properties, copy this file into your custom config directory (test) and modify it there
base.media.url property to http://ics-winserver:8090/livespaces/media/trainingtest deployment configuration builds upon the default configuration, loading the livespace.examples.sound_player bundle specifically.
client.deploy to include livespace.examples.sound_player (Note: bundle should be started, not just installed)livespace.osgi:livespace_core_bundleslivespace.osgi:livespace_standard_bundles (if you get errors regarding jarsigner processes, don't worry about these right now, they're a known issue and don't affect the building of the bundles)livespace.examples.services.sound_player/development/livespace.osgi with
cd /development/livespace.osgi
LIVESPACE_OSGI_PATH environment variable with
export LIVESPACE_OSGI_PATH="file:/C:\\development\\livespace.osgi"
LIVESPACE_CONFIG environment variable with
export LIVESPACE_CONFIG=<config_dir_name>
bin/start_osgi.shmain() driver class.main() method.
build.xml to turn your code into a bundle.
livespace.osgi:livespace_core_bundleslivespace.osgi:livespace_standard_bundlesexport LIVESPACE_OSGI_PATH="file:/C:\development\livespace.osgi"bin/start_osgi.sh