Krzysztof Sobkowiak created KARAF-3737:
------------------------------------------
Summary: ActiveMQ Broker disappears after Karaf restart
Key: KARAF-3737
URL: https://issues.apache.org/jira/browse/KARAF-3737
Project: Karaf
Issue Type: Bug
Affects Versions: 2.4.2
Reporter: Krzysztof Sobkowiak
I have installed an ActiveMQ broker on a fresh Karaf version
{code}
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
{code}
There is the default {{amq-broker}} available. Here the list of installed
ActiveMQ features and bundles
{code}
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
{code}
Services exported by the {{activemq-osgi}} bundle
{code}
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
{code}
After restart:
{code}
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>
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)