Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Currently, commands for inspecting the status of the Service Component Runtime (SCR) are missing.

      1. scr-command-color-fix.patch
        22 kB
        Scott England-Sullivan
      2. karaf-scr.tar.gz
        13 kB
        Scott England-Sullivan

        Activity

        Hide
        Łukasz Dywicki added a comment -

        Hi Daniel,
        Could you give more details about commands you would get? Would you get similar functionality like Spring/Blueprint?

        Best regards,
        Lukasz

        Show
        Łukasz Dywicki added a comment - Hi Daniel, Could you give more details about commands you would get? Would you get similar functionality like Spring/Blueprint? Best regards, Lukasz
        Hide
        Guillaume Nodet added a comment -

        We don't have any commands for blueprint nor spring btw ....

        Show
        Guillaume Nodet added a comment - We don't have any commands for blueprint nor spring btw ....
        Hide
        Łukasz Dywicki added a comment -

        It is not a problem to provide these commands - by default Blueprint and Spring DM publishes context as service. We can use these instances to manage. For example spring:stop <bundle id>, blueprint:stop <bundle id>, scr:stop <bundle id>.
        However I don't know yet how to make this in blueprint because org.osgi.service.blueprint.container.BlueprintContainer does not have any stop/start methods. Spring exposes context with additional interface org.springframework.context.Lifecycle wchich allows stopping or starting context.

        Show
        Łukasz Dywicki added a comment - It is not a problem to provide these commands - by default Blueprint and Spring DM publishes context as service. We can use these instances to manage. For example spring:stop <bundle id>, blueprint:stop <bundle id>, scr:stop <bundle id>. However I don't know yet how to make this in blueprint because org.osgi.service.blueprint.container.BlueprintContainer does not have any stop/start methods. Spring exposes context with additional interface org.springframework.context.Lifecycle wchich allows stopping or starting context.
        Hide
        Guillaume Nodet added a comment -

        Not sure start / stop has much value. Usually the extender (scr, blueprint or spring-dm) will tie its lifecycle to the bundle lifecycle, so an osgi:stop / osgi:start kinda works the same way ...

        Show
        Guillaume Nodet added a comment - Not sure start / stop has much value. Usually the extender (scr, blueprint or spring-dm) will tie its lifecycle to the bundle lifecycle, so an osgi:stop / osgi:start kinda works the same way ...
        Hide
        Scott England-Sullivan added a comment -

        Commands, MBeans, Feature and Example code for SCR.

        Show
        Scott England-Sullivan added a comment - Commands, MBeans, Feature and Example code for SCR.
        Hide
        Scott England-Sullivan added a comment -

        I have attached a set of commands, mbeans, a feature descriptor and examples for creating and deploying SCR components into Karaf. I have used these for fine-grained component control and management of operational beans and believe they can be useful to the overall Karaf container.

        Thanks,
        Scott ES

        Show
        Scott England-Sullivan added a comment - I have attached a set of commands, mbeans, a feature descriptor and examples for creating and deploying SCR components into Karaf. I have used these for fine-grained component control and management of operational beans and believe they can be useful to the overall Karaf container. Thanks, Scott ES
        Hide
        David Jencks added a comment -

        This looks great! I'm adapting this to trunk and will commit it there shortly.

        Show
        David Jencks added a comment - This looks great! I'm adapting this to trunk and will commit it there shortly.
        Hide
        Scott England-Sullivan added a comment -

        Patch to fix the color output of the scr commands.

        Show
        Scott England-Sullivan added a comment - Patch to fix the color output of the scr commands.
        Hide
        Jean-Baptiste Onofré added a comment -

        Scr commands are now available. On K3, I updated to use ShellTable.

        Show
        Jean-Baptiste Onofré added a comment - Scr commands are now available. On K3, I updated to use ShellTable.
        Show
        Jean-Baptiste Onofré added a comment - Fixed on master: https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commitdiff;h=d0c4f41086474bcfb0496ac3dafa7bf5875c42c6
        Show
        Jean-Baptiste Onofré added a comment - Fixed on karaf-3.0.x: https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commitdiff;h=7417dcdc76d5431ab97778fb9873c98d37dad404

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Daniel Bimschas
          • Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development