Announcement Announcement Module
Collapse
No announcement yet.
pre-deploy bundles offline Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    You can place the bundles in the 'pickup' directory.
    Any bundles there are automatically deployed on start-up.

    Comment


    • #3
      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

      Comment


      • #4
        ...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?

        Comment


        • #5
          Hi Bodrin,

          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

          Comment


          • #6
            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 ?

            Comment


            • #7
              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

              Comment


              • #8
                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.

                Comment

                Working...
                X