LibraryToggle FramesPrintFeedback

You can deploy your broker using a blueprint configuration file, where the root element is {http://www.osgi.org/xmlns/blueprint/v1.0.0}blueprint. The broker element is a child of the blueprint element and the broker's namespace is http://activemq.apache.org/schema/core.

For example, the following blueprint configuration instantiates a broker named simple-blueprint, which creates an Openwire connector on the IP port 61001:

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    >
    <broker xmlns="http://activemq.apache.org/schema/core"
        brokerName="simple-blueprint">
        <transportConnectors>
            <transportConnector name="openwire" uri="tcp://localhost:61001"/>
        </transportConnectors>
    </broker>
</blueprint>

It is not necessary to specify schema locations in the configuration. But if you are editing the configuration file with an XML editor, you might want to add the schema locations in order to support schema validation and content completion in the editor. For the preceding example, you could specify the schema locations as follows:

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
    http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core-5.4.0.xsd
    http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"
    >
    ...
[Note]Note

Blueprint is a dependency injection framework, defined by the OSGi standard, which is similar to Spring in many respects. For more details about blueprint, see The Blueprint Container.

Comments powered by Disqus
loading table of contents...