Karaf
  1. Karaf
  2. KARAF-1276

Add activation="eager" to springListener bean in shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.4
    • Fix Version/s: 2.2.5, 3.0.0
    • Component/s: karaf-shell
    • Labels:
    • Environment:

      Windows XP
      Servicemix 4.4.1
      Java 1.6.0_16

      Description

      With default activation (lazy) the bean is being initialized on first call of command "list", so the listener SpringApplicationListener is added to the framework when most of bundles are already initialized and started. As a result one can see empty Spring states - [ ] - for all bundles.
      If the command "list" is called as soon as possible after Karaf start, listener is created and later the correct states are listed.
      Adding 'activation="eager"' to bean definition solves the problem.

        Issue Links

          Activity

          Hide
          Freeman Fang added a comment - - edited

          Hi Serge,

          This is a known issue(KARAF-1114) and already get fixed for Karaf 2.2.5, just remove default-activation="lazy" should be enough.
          And Servicemix 4.4.1 still use Karaf 2.2.4, so I correct the "Affects Version" of this issue.

          Good investigation btw.
          Best Regards
          Freeman

          Show
          Freeman Fang added a comment - - edited Hi Serge, This is a known issue( KARAF-1114 ) and already get fixed for Karaf 2.2.5, just remove default-activation="lazy" should be enough. And Servicemix 4.4.1 still use Karaf 2.2.4, so I correct the "Affects Version" of this issue. Good investigation btw. Best Regards Freeman

            People

            • Assignee:
              Freeman Fang
              Reporter:
              Serge Starovoitenkov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development