Blogs

SpringSource Blog

Configuration Properties Screencast

Steve Powell

In Rob's dm Server Roadmap blog entry, last April, we introduced two new artefact types: “plan” and “configuration file”.

Here is a short screencast demonstrating configuration files, in particular we show how to reference them from a plan.

First, a small web application picks up properties from a configuration properties file—deployed separately from the application. Second, the application and the properties are placed in the repository and a plan is constructed and deployed which installs and starts both the web application and its properties in one step.

Configuration Properties (5:59)

Source Code

The repository configuration-properties in the samples project contains all the code shown in the demonstration.

Git – git://git.springsource.org/dm-server-samples/configuration-properties.git

Similar Posts

Share this Post
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • DZone
  • LinkedIn
  • Slashdot
  • Technorati
  • TwitThis
 

3 responses


  1. Nice, I'd love to see a versioning feature of the hot deployed properties file. As far as I can see the properties definition in the plan specifies any version (version="0").


  2. @Marc, this would indeed be nice. Since the artefact meta-data is discovered (when dropping the properties file into pickup or into the watched repository) at present the version defaults to zero. There is no standard unintrusive place to put meta-data in the properties file at the moment. There is no reason why more detailed meta-data (including version information) cannot be associated with the artefact when being placed in a repository programmatically, and publish and retract interfaces are under discussion.

    Extensions to artefact references in plans are being designed as we type and we should see some further possibilities soon. If you have good ideas in this area, we would be delighted to hear your contributions.


  3. Very informative post. Thanks for the Configuration Properties Screencast.
    ccna practice exams

One trackback

Leave a Reply