
開発目的で activemq を実行する ubuntu-server を入手しました。パッケージ リポジトリからインストールし、activemq に小さな構成を加えました。管理コンソールを使用したいのですが、そのためには webapps フォルダーが必要ですが、パッケージに含まれていないようです。
パッケージ内を検索しましたが、何も見つかりませんでした。Web アプリケーションは、{activemq.home}
パッケージから定義されているフォルダーにあるはずです/usr/share/activemq
。また、xml のように jetty 構成が必要であることもわかっています。jetty 構成は、サンプル ドキュメントに記載されています。/usr/share/doc/activemq/examples/conf/jetty.xml.gz
私の質問は、管理コンソールを機能させるために jetty.xml に何を入れればよいかということです。Apache サイトからダウンロードした tar.gz パッケージの webapps フォルダーをホーム フォルダーにコピーすればよいのでしょうか。
参考になればと、現在の activemq.xml を投稿します。
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.base}/data" destroyApplicationContextOnStop="true">
<destinationPolicy>
<policyMap>
<policyEntries>
<policyEntry topic=">" producerFlowControl="true" memoryLimit="1mb">
<pendingSubscriberPolicy>
<vmCursor />
</pendingSubscriberPolicy>
</policyEntry>
<policyEntry queue=">" producerFlowControl="true" memoryLimit="1mb">
</policyEntry>
</policyEntries>
</policyMap>
</destinationPolicy>
<destinations>
<queue physicalName="CMAgentStatus" />
<queue physicalName="CMUpdateRequest" />
<queue physicalName="CMSnapshotEvent" />
</destinations>
<managementContext>
<managementContext createConnector="true"/>
</managementContext>
<persistenceAdapter>
<kahaDB directory="${activemq.base}/data/kahadb"/>
</persistenceAdapter>
<transportConnectors>
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/>
</transportConnectors>
</broker>
<!-- <import resource="jetty.xml"/> -->
</beans>
答え1
最終的に、サイトから activeMQ バイナリをダウンロードし、/opt/activemq にインストールしました。次に、activemq および update-rc のデフォルトの init スクリプトを作成しました。