concept text file in category spring

appears as: text file, text files, The text file
Spring Dynamic Modules in Action

This is an excerpt from Manning's book Spring Dynamic Modules in Action.

When distributing an OSGi application to end users, using zip provisioning is probably the most simple and straightforward way to go. The text file is more appropriate when the application needs more configuration (like system properties). As the text file also accepts all the protocols, it’s well suited for development-based distributions (like the code samples of this book, which you can build with Maven 2 and then launch, thanks to a text provisioning file).

We advise you not to mix different kinds of provisioning specs, but there’s one case when it can be useful. Imagine that you have written some Spring-powered bundles and you want to test them. The provisioning for Spring DM’s bundles would always be the same, so you’ll save yourself trouble if you include it in a text file and then specify your Spring-powered bundles on the command line. You’ll then end up with your own reusable provisioning text file.

This is a rather manual way of gathering a provisioning definition in a text file and it leads us to the next topic: profiles. In Pax Runner, profiles allow us to quickly provision an OSGi platform, because they define consistent and ready-to-use sets of bundles.