Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3737

ActiveMQ Broker disappears after Karaf restart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.2
    • 2.4.3
    • None
    • None

    Description

      I have installed an ActiveMQ broker on a fresh Karaf version

      karaf@root> features:chooseurl activemq 5.11.1
      Adding feature url mvn:org.apache.activemq/activemq-karaf/5.11.1/xml/features
      karaf@root> features:install activemq-broker
      karaf@root> activemq:list 
      brokerName = amq-broker
      

      There is the default amq-broker available. Here the list of installed ActiveMQ features and bundles

      karaf@root> features:list | grep activemq | grep -v uninstalled
      [installed  ] [5.11.1          ] activemq-client               activemq-core-5.11.1     ActiveMQ client libraries
      [installed  ] [5.11.1          ] activemq                      activemq-core-5.11.1     ActiveMQ broker libraries
      [installed  ] [5.11.1          ] activemq-broker               activemq-5.11.1          Full ActiveMQ broker with default configuration and web console
      [installed  ] [5.11.1          ] activemq-web-console          activemq-5.11.1     
      karaf@root> list -t 0 -l | grep activemq
      [  89] [Active     ] [Created     ] [       ] [   50] mvn:org.apache.activemq/activemq-osgi/5.11.1
      [  90] [Active     ] [Created     ] [       ] [   50] mvn:org.apache.activemq/activemq-karaf/5.11.1
      [ 103] [Active     ] [            ] [       ] [   50] mvn:org.apache.activemq/activeio-core/3.1.4
      [ 123] [Active     ] [            ] [       ] [   50] mvn:org.apache.activemq/activemq-web-console/5.11.1/war
      

      Services exported by the activemq-osgi bundle

      karaf@root> ls -a 89
      You are about to access system bundle 89.  Do you wish to continue (yes/no): yes
      
      activemq-osgi (89) provides:
      ----------------------------
      objectClass = [org.osgi.service.cm.ManagedServiceFactory]
      osgi.service.blueprint.compname = activeMQServiceFactory
      service.id = 359
      service.pid = org.apache.activemq.server
      ----
      objectClass = [org.osgi.service.blueprint.container.BlueprintContainer]
      osgi.blueprint.container.symbolicname = org.apache.activemq.activemq-osgi
      osgi.blueprint.container.version = 5.11.1
      service.id = 360
      ----
      Bundle-SymbolicName = org.apache.activemq.activemq-osgi
      Bundle-Version = 5.11.1
      objectClass = [org.springframework.osgi.context.DelegatedExecutionOsgiBundleApplicationContext, org.springframework.osgi.context.ConfigurableOsgiBundleApplicationContext, org.springframework.context.ConfigurableApplicationContext, org.springframework.context.ApplicationContext, org.springframework.context.Lifecycle, java.io.Closeable, org.springframework.core.env.EnvironmentCapable, org.springframework.beans.factory.ListableBeanFactory, org.springframework.beans.factory.HierarchicalBeanFactory, org.springframework.context.MessageSource, org.springframework.context.ApplicationEventPublisher, org.springframework.core.io.support.ResourcePatternResolver, org.springframework.beans.factory.BeanFactory, org.springframework.core.io.ResourceLoader, java.lang.AutoCloseable, org.springframework.beans.factory.DisposableBean]
      org.springframework.context.service.name = org.apache.activemq.activemq-osgi
      service.id = 390
      

      After restart:

      karaf@root> activemq:list 
      karaf@root> features:list | grep activemq | grep -v uninstalled
      [installed  ] [5.11.1          ] activemq-client               activemq-core-5.11.1     ActiveMQ client libraries
      [installed  ] [5.11.1          ] activemq                      activemq-core-5.11.1     ActiveMQ broker libraries
      [installed  ] [5.11.1          ] activemq-broker               activemq-5.11.1          Full ActiveMQ broker with default configuration and web console
      [installed  ] [5.11.1          ] activemq-web-console          activemq-5.11.1          
      karaf@root> list -t 0 -l | grep activemq
      [  89] [Active     ] [Created     ] [       ] [   50] mvn:org.apache.activemq/activemq-osgi/5.11.1
      [  90] [Active     ] [Created     ] [       ] [   50] mvn:org.apache.activemq/activemq-karaf/5.11.1
      [ 103] [Active     ] [            ] [       ] [   50] mvn:org.apache.activemq/activeio-core/3.1.4
      [ 123] [Active     ] [            ] [       ] [   50] mvn:org.apache.activemq/activemq-web-console/5.11.1/war
      karaf@root> ls -a  89
      You are about to access system bundle 89.  Do you wish to continue (yes/no): yes
      
      activemq-osgi (89) provides:
      ----------------------------
      objectClass = [org.osgi.service.cm.ManagedServiceFactory]
      osgi.service.blueprint.compname = activeMQServiceFactory
      service.id = 369
      service.pid = org.apache.activemq.server
      ----
      objectClass = [org.osgi.service.blueprint.container.BlueprintContainer]
      osgi.blueprint.container.symbolicname = org.apache.activemq.activemq-osgi
      osgi.blueprint.container.version = 5.11.1
      service.id = 370
      karaf@root> 
      

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              sobkowiak Krzysztof Sobkowiak
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: