How to create a broker instance in a Karaf child container

Solution Unverified - Updated -

Issue

We are looking to create a new broker instance in a Karaf child container. In this way, we will have two separate brokers on the same host using different JVMs. I can create a Karaf child instance with admin:create command correctly, though it appears to have less jars and bundles available than the parent container. For example, it looks like it is missing the activemq-osgi bundle among many others. Does the child container use the parent container bundles or do these bundles have to be added to the child container as well? The problem is that when I tried to create the broker using the following JBoss Fuse document, nothing happened when I did following command to edit the PID:

JBossFuse:karaf@root> config:edit org.fusesource.mq.fabric.server-myBroker

Essentially, no file was opened or created. From our perspective, do we need to install the whole activemq-osgi bundle and features before we make the new AMQ instance or is that not necessary? Could we just manually put the necessary files in /instances//etc folder so they get read? As a final note, is following the document above the correct way to add a broker into a new child container for the first time?

Environment

  • Red Hat JBoss Fuse
    • 6.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.