Persisting module location between launches

From BUG Wiki

Jump to: navigation, search

When developing an application that uses different modules it becomes very tedious to reinsert modules on a new launch. To ease application development for BUG, a module persistence mechanism exists.

In order to save module positions between launches, the com.buglabs.osgi.cm.storage property exists in Virtual BUG Launch Configuration. Choose "Open Run Dialog" from the Run menu in Eclipse, then click on the "Concierge" tab. You should see the following:

Image:VirtualBUGLaunchConfig.png

When Virual BUG is launched and modules are added to the BUGBase, on the next start of the Virtual BUG inserted modules will be automatically added to the base.

Note: On Mac OS X Version 10.5.2 even though the module positions are persisted, the modules are not necessarily properly activated. For instance the motion module needs to be disconnected and then reconnected to be able to issue the "motion" command from the console.