Spring OSGi

The Spring OSGi sample shows how you can use Depot to configure and deploy a Spring application as an OSGi bundle.

To provision the Spring OSGi sample:

  1. When adding an application, add the artifact depot-samples-spring-osgi-bundle.

  2. Configure your application by setting the following properties:

    Table 1. 

    PropertyExample Value
    database.url (required)jdbc:derby:myDb;create=true
    logging.levelinfo

  3. Save the application.

  4. Start ServiceMix 4 and install the ServiceMix 4 agent (if you haven't already done so).

  5. Edit the Default deployment profile and add the application to it.

  6. Publish the Default deployoyment profile.

  7. See how the Spring application is deployed to ServiceMix.