dm Server 2.0.0.M5

Ben Hale

dm Server 2.0.0.M5 is now available and can be downloaded from here.

We're getting towards the end of the 2.0.0 release cycle so most of the work in this milestone is focused on locking down the user interaction model. Take a look at the M5 release notes for the full details of what we've been working on. Please keep your feedback coming as comments on our blog, in the forums and on JIRA.

Please also watch the blog for detailed posts on many of the new features referenced in this New and Noteworthy.

New and Noteworthy

Deploying Configuration Files

Properties files can now be deployed in either the pickup directory or in any configured repository. The content of these files is then accessible in OSGi's ConfigurationAdmin at a PID specified as the file's name without the .properties extension.

Plan Attributes and Properties

Plans can now have globally defined attributes used for substitution.

<attributes>
	<attribute name="version" value="[1.0.0, 2.0.0)"/>
</attributes>

<artifact type="bundle" name="org.springframework.context.support" version="${version}"/>

Artifacts within plans can have properties defined which are translated into Bundle manifest headers at deployment time.

<artifact type="bundle" name="my.webapp" version="[1.0.0, 2.0.0)">
	<property name="Web-ContextPath" value="/foo"/>
</artifact>

Admin Console

The Artifacts page of the admin console has been spruced up to render the dependencies of user installed artifacts as trees. In addition, each level of these trees is lazily loaded improving load-time performance.

Admin Console

Command-line Shell

dm Server now ships with a command line shell to replace the Equinox console that was previously used. This console is accessible locally with the -shell startup command.

$ bin/startup.sh -shell
<KE0001I> Kernel starting.
<KE0002I> Kernel started.
<SH0001I> dm Kernel ssh shell available on port 2402.

     @@@ ***
    @@@ *****            .__.                  .__.            .__.  .__.
   @@@@ ******         __|  |  _____     _____.|  |__    ____  |  |  |  |
   @@@@@@ ****        / __  | /     \   /  ___/|  |  \ ./ __ \ |  |  |  |
    @@@@@ ***        / /_/  ||  Y Y  \  \___ \ |   Y  \\  ___/ |  |__|  |__
     @@@ ***         \______||__|_|__/ /_____/ |___|__/ \____/ |____/|____/

Type 'help' to see the available commands.
:>

You can also access this command line shell via SSH using the same login credentials that are used for web and JMX access.

$ ssh -p 2402 admin@localhost
admin@localhost's password:

     @@@ ***
    @@@ *****            .__.                  .__.            .__.  .__.
   @@@@ ******         __|  |  _____     _____.|  |__    ____  |  |  |  |
   @@@@@@ ****        / __  | /     \   /  ___/|  |  \ ./ __ \ |  |  |  |
    @@@@@ ***        / /_/  ||  Y Y  \  \___ \ |   Y  \\  ___/ |  |__|  |__
     @@@ ***         \______||__|_|__/ /_____/ |___|__/ \____/ |____/|____/

Type 'help' to see the available commands.
:>

Infrastructure moves

We've also made some changes to various parts of the infrastructure of dm Server. First, the repository area has been simplified to only have an ext and a usr folder. The usr folder is configured as a watched repository meaning that you do not need to restart the server to reference bundles that have been added there.

New Repository

The config/ directory has been flattened and the credential store and keystore have been moved. The keystore now resides in config/keystore. The credential store now resides in config/com.springsource.kernel.users.properties and specified users and roles in a properties file format.

##################
# User definitions
##################
user.admin=springsource

##################
# Role definitions
##################
role.admin=admin

Runnable dm Kernel

Last but not least, the dm Kernel is now a standalone runnable distribution. You can build a zip package from the source code directly or download from here.

Similar Posts

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

6 responses


  1. Dear Ben,
    I think there is mistyping in the very first paragraph of yours article:
    "dm Server 2.0.0.M5 is NOT available and can be downloaded from here…"
    should read:
    "dm Server 2.0.0.M5 is NOW available and can be downloaded from here…"
    Regards,
    Pavel


  2. @Pavel,

    Absolutely right. I've fixed it up and thanks for the assist.


  3. Its Amazing post,all the information is great


  4. Hi Ben,

    I'm using WebSlices in M4. It's a great benefit for our application. Looking into the M5 installation the subsystem directory has gone. How can I use the WebSlices subsystem in M5?

    Thanks in advance
    Harald


  5. For all interested in slices support for M5, I just found an entry in the forum:
    http://forum.springsource.org/showthread.php?t=79000

    Best Regards
    Harald


  6. @Harald

    Andy is currently in the process of merging the M5 branch back into slices. You can either build from master after that or a snapshot will appear shortly with those changes in it.

    The new zip file will have the files in the proper dist locations to match the new dm Server M5. To integrate Slices, simply add the plan to the deployer.systemArtifacts property in the config/com.springsource.kernel.properties file in the same manner as the com.springsource.server.web plan that is already there.

    Andy will be putting out a more detailed blog about this shortly.

One trackback

Leave a Reply