Results 1 to 2 of 2

Thread: How does dm-server resolve fragment bundles?

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Location
    Philadelphia, PA, USA
    Posts
    228

    Default How does dm-server resolve fragment bundles?

    Hello,

    I would like to figure out the way dm-server loads fragment bundles.

    For example:

    Fragment Host is deployed from within a plan. Fragment bundle is not included in the plan but sits in repository/usr.

    Will that fragment be attached to the host or it has to be included in the Fragment Host plan?

    How does it behave on:
    1. Clean start
    2. restart of the server without -clean
    Thanks
    Dmitry

  2. #2
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    dm Server provisions fragments from the repository when deploying hosts which the fragments refer to. See com.springsource.kernel.userregion.internal.quasi. DependencyCalculator.satisfyHosts.

    -clean deletes the work directory including the deployer's recovery log which means that deployments are not replayed automatically. Artifacts in pickup are processed but programmatic deployments have to be repeated.

    When -clean is not specified, we replay the deployment of the artifacts listed in the deployer's recovery log. Note that we clean start Equinox on every restart because we don't trust the contents of Equinox storage if there has been a crash (we tried this for a period in 1.0 but found that it was subject to corruption).

    This should be the behaviour for the plan+fragments scenario you describe. The restart behaviour should simply depend on whether the plan is deployed or not. Dependency calculation will be repeated if the plan is deployed.
    Glyn Normington
    SpringSource

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •