Results 1 to 8 of 8

Thread: pre-deploy bundles offline

  1. #1
    Join Date
    Oct 2008
    Posts
    13

    Default pre-deploy bundles offline

    Hi,

    I have a couple of bundles that I want to run on top of Spring DM Server.
    I have a build server that builds all my bundles.
    I want my "installation" to be a single zip that I just unzip and run - the Spring DM Server together with the current new build of all my bundles.

    In the past I was using a pure Equinox OSGi server and there was a way to do this - copying all the bundles in bundles directory and generating a new version of the config.ini file... Even one can specify if the bundle should be started or just installed via special marker.

    So, is there a way to do such a thing with Spring DM Server?

  2. #2
    Join Date
    Jul 2006
    Posts
    17

    Default

    You can place the bundles in the 'pickup' directory.
    Any bundles there are automatically deployed on start-up.

  3. #3
    Join Date
    Jan 2006
    Location
    Zürich, Switzerland
    Posts
    423

    Default

    Quote Originally Posted by kryptolus View Post
    You can place the bundles in the 'pickup' directory.
    Any bundles there are automatically deployed on start-up.
    That's right: placing them in the pickup directory will work...

    ...unless the bundles need to be deployed in a particular order (e.g., the bundles have interdependencies).

    Regards,

    Sam

  4. #4
    Join Date
    Oct 2008
    Posts
    13

    Default

    ...unless the bundles need to be deployed in a particular order (e.g., the bundles have interdependencies).
    yes, they have interdependencies ... it is natural though - OSGi application comprised of several bundles.
    If they haven't interdependencies this wouldn't be an application, but just some isolated modules ..

    Have you another idea if this could be achieved?

  5. #5
    Join Date
    Jan 2006
    Location
    Zürich, Switzerland
    Posts
    423

    Default

    Hi Bodrin,

    Quote Originally Posted by bodrin View Post
    Have you another idea if this could be achieved?
    Have you considered packaging your application as a PAR?

    Or does a PAR's scoping of services and types conflict with your needs?

    Regards,

    Sam

  6. #6
    Join Date
    Oct 2008
    Posts
    13

    Default

    Yes, if there is no other option I can try PAR.

    The problem is that I can not find with google much about this.
    Is there example or description somewhere .. I got only slides ?

  7. #7
    Join Date
    Jan 2006
    Location
    Zürich, Switzerland
    Posts
    423

    Default

    Quote Originally Posted by bodrin View Post
    Yes, if there is no other option I can try PAR.

    The problem is that I can not find with google much about this.
    Is there example or description somewhere .. I got only slides ?
    Start with the community resources page. From this page you can find links to the dm Server:

    1. Programmer Guide where you can find explanations of the PAR format as well as examples. For example, check out the Form Tags migration case study chapter.
    2. Sample Applications which provide working examples of PARs in action.
    3. Slides from webinars and Blogs which provide an overview of the PAR format.


    This should be enough information to get you started building your own PARs.

    - Sam

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

    Default

    Quote Originally Posted by bodrin View Post
    Yes, if there is no other option I can try PAR.
    A PAR is a good way of packaging up an application, but if it is not suitable for all your bundles, you could place some of them in repository/bundles/usr where they will be automatically installed as needed by your application bundle(s) or PAR(s).

    The processing of bundles in the repository is rather different from that of application bundles. In particular, bundles installed from the repository are not passed through the dm Server's deployment pipeline which applies various transformations to application bundles.
    Glyn Normington
    SpringSource

Tags for this Thread

Posting Permissions

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