Results 1 to 6 of 6

Thread: Automating bundle deployment under Spring DM 2.0

  1. #1
    Join Date
    Jul 2009
    Location
    Hyderabad India
    Posts
    56

    Default Automating bundle deployment under Spring DM 2.0

    I have developed a web app using OSGi service bundles, host web bundle, slice web bundles and other common bundles. Currently I am deploying the bundles in the required order manually. I want to automate the entire process of bundle deployment. I would create a configuration file having the bundle names and the order in which they have to be deployed. The deployment script would read the configuration file and deploy the bundles in required order and would connect to DM Shell to find the status of the bundle (ACTIVE) before deploying the next bundle.

    While working with Spring DM 1.0.2 I wrote Ruby script and everything was working. Now moving to DM 2, telnet to port 2401 is not supported, so I changed my Ruby script to use SSH instead of telnet. I am getting the following error – could not execute command: "bundle list".

    What is the best way to achieve the automated deployment recommended by Spring Source?

    Regards,
    Pranav

  2. #2
    Join Date
    May 2008
    Posts
    15

    Default

    While I haven't played with these too much Plans have been set up to deal with loading bundles in a defined order: http://static.springsource.org/s2-dm...l/ch04s03.html

    They will be a good starting point.

  3. #3
    Join Date
    Jul 2009
    Location
    Hyderabad India
    Posts
    56

    Default

    The only problem with plan is that I have to use JMX to hot deploy any bundle in a plan. I want to copy the bundle in pickup directory to hot deploy instead of using JMX APIs.

    Regards,
    Pranav

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

    Default

    You can drop the plan into the pickup directory.
    Glyn Normington
    SpringSource

  5. #5
    Join Date
    Jul 2009
    Location
    Hyderabad India
    Posts
    56

    Default

    Hi Glyn,

    This would redeploy all the bundles in a plan but my requirement is to redeploy just a single bundle inside the plan.

    What is preferred approach for automatic deployment? Can I write scripts using JMX APIs? Where can I get the APIs documentation and relevant help?

    Regards,
    Pranav

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

    Default

    JMX is likely to be a more stable API than calling the deployer services directly. See the Deployer interface for documentation of the JMX API.
    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
  •