ActiveMQ broker inside a Talend Runtime Container
An ActiveMQ broker may also be run in an OSGi container such as Talend Runtime Container.
Broker creation
By default, no broker is created in the Talend Runtime Container. The following commands can be used to start a broker within the Talend Runtime Container: karaf@trun> feature:install activemq-broker
It creates a broker with a sensible default configuration, but you can edit the mentioned file to modify the broker's configuration.
Broker querying
karaf@trun> feature:install activemq-shell
Several commands are available to query the broker. To address local brokers, you'll need to use the --jmxlocal parameter. The following command displays available brokers:
karaf@trun> activemq:list --jmxlocal
BrokerName = mybroker
For more detailed information, run:
karaf@trun> activemq:query --jmxlocal
It will display informations about the connectors, list of queues, and so on. You can also browse or purge queues using the activemq:browse and activemq:purge commands.