mirror of https://github.com/apache/activemq.git
enabled the command agent so you can communicate with the broker agent via JMS or XMPP or Stomp
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@475316 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bc7d758fa0
commit
1c89c92217
|
@ -14,45 +14,37 @@
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<!-- START SNIPPET: xbean -->
|
<!-- START SNIPPET: xbean -->
|
||||||
<beans>
|
<beans>
|
||||||
|
|
||||||
|
|
||||||
<broker useJmx="true" xmlns="http://activemq.org/config/1.0">
|
<broker useJmx="true" xmlns="http://activemq.org/config/1.0">
|
||||||
|
|
||||||
<!-- Use the following to set the broker memory limit (in bytes)
|
<!-- Use the following to set the broker memory limit (in bytes)
|
||||||
<memoryManager>
|
<memoryManager>
|
||||||
<usageManager id="memory-manager" limit="1048576"/>
|
<usageManager id="memory-manager" limit="1048576"/>
|
||||||
</memoryManager>
|
</memoryManager>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Use the following to configure how ActiveMQ is exposed in JMX
|
|
||||||
<managementContext>
|
|
||||||
<managementContext connectorPort="1099" jmxDomainName="org.apache.activemq"/>
|
|
||||||
</managementContext>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- In ActiveMQ 4, you can setup destination policies -->
|
<!-- In ActiveMQ 4, you can setup destination policies -->
|
||||||
<destinationPolicy>
|
<destinationPolicy>
|
||||||
<policyMap><policyEntries>
|
<policyMap>
|
||||||
|
<policyEntries>
|
||||||
|
|
||||||
<policyEntry topic="FOO.>">
|
<policyEntry topic="FOO.>">
|
||||||
<dispatchPolicy>
|
<dispatchPolicy>
|
||||||
<strictOrderDispatchPolicy />
|
<strictOrderDispatchPolicy/>
|
||||||
</dispatchPolicy>
|
</dispatchPolicy>
|
||||||
<subscriptionRecoveryPolicy>
|
<subscriptionRecoveryPolicy>
|
||||||
<lastImageSubscriptionRecoveryPolicy />
|
<lastImageSubscriptionRecoveryPolicy/>
|
||||||
</subscriptionRecoveryPolicy>
|
</subscriptionRecoveryPolicy>
|
||||||
</policyEntry>
|
</policyEntry>
|
||||||
|
|
||||||
</policyEntries></policyMap>
|
</policyEntries>
|
||||||
|
</policyMap>
|
||||||
</destinationPolicy>
|
</destinationPolicy>
|
||||||
|
|
||||||
<!--
|
|
||||||
<managementContext>
|
|
||||||
<managementContext findTigerMbeanServer="true"/>
|
|
||||||
</managementContext>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<persistenceAdapter>
|
<persistenceAdapter>
|
||||||
<journaledJDBC journalLogFiles="5" dataDirectory="activemq-data"/>
|
<journaledJDBC journalLogFiles="5" dataDirectory="activemq-data"/>
|
||||||
<!-- To use a different datasource, use th following syntax : -->
|
<!-- To use a different datasource, use th following syntax : -->
|
||||||
|
@ -60,13 +52,13 @@
|
||||||
<journaledJDBC journalLogFiles="5" dataDirectory="activemq-data" dataSource="#postgres-ds"/>
|
<journaledJDBC journalLogFiles="5" dataDirectory="activemq-data" dataSource="#postgres-ds"/>
|
||||||
-->
|
-->
|
||||||
</persistenceAdapter>
|
</persistenceAdapter>
|
||||||
|
|
||||||
<transportConnectors>
|
<transportConnectors>
|
||||||
<transportConnector name="openwire" uri="tcp://localhost:61616" discoveryUri="multicast://default"/>
|
<transportConnector name="openwire" uri="tcp://localhost:61616" discoveryUri="multicast://default"/>
|
||||||
<transportConnector name="stomp" uri="stomp://localhost:61613"/>
|
<transportConnector name="stomp" uri="stomp://localhost:61613"/>
|
||||||
<transportConnector name="xmpp" uri="xmpp://localhost:61222"/>
|
<transportConnector name="xmpp" uri="xmpp://localhost:61222"/>
|
||||||
</transportConnectors>
|
</transportConnectors>
|
||||||
|
|
||||||
<networkConnectors>
|
<networkConnectors>
|
||||||
<!-- by default just auto discover the other brokers -->
|
<!-- by default just auto discover the other brokers -->
|
||||||
<networkConnector name="defaultNetwork" uri="multicast://default"/>
|
<networkConnector name="defaultNetwork" uri="multicast://default"/>
|
||||||
|
@ -74,11 +66,15 @@
|
||||||
<networkConnector name="host1 and host2" uri="static://(tcp://host1:61616,tcp://host2:61616)" failover="true"/>
|
<networkConnector name="host1 and host2" uri="static://(tcp://host1:61616,tcp://host2:61616)" failover="true"/>
|
||||||
-->
|
-->
|
||||||
</networkConnectors>
|
</networkConnectors>
|
||||||
|
|
||||||
</broker>
|
</broker>
|
||||||
|
|
||||||
|
<!-- lets create a command agent to respond to admin commands over JMS or XMPP -->
|
||||||
|
<commandAgent xmlns="http://activemq.org/config/1.0"/>
|
||||||
|
|
||||||
|
|
||||||
<!-- This xbean configuration file supports all the standard spring xml configuration options -->
|
<!-- This xbean configuration file supports all the standard spring xml configuration options -->
|
||||||
|
|
||||||
<!-- Postgres DataSource Sample Setup -->
|
<!-- Postgres DataSource Sample Setup -->
|
||||||
<!--
|
<!--
|
||||||
<bean id="postgres-ds" class="org.postgresql.ds.PGPoolingDataSource">
|
<bean id="postgres-ds" class="org.postgresql.ds.PGPoolingDataSource">
|
||||||
|
@ -92,7 +88,7 @@
|
||||||
<property name="maxConnections" value="10"/>
|
<property name="maxConnections" value="10"/>
|
||||||
</bean>
|
</bean>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- MySql DataSource Sample Setup -->
|
<!-- MySql DataSource Sample Setup -->
|
||||||
<!--
|
<!--
|
||||||
<bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
<bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
||||||
|
@ -102,15 +98,15 @@
|
||||||
<property name="password" value="activemq"/>
|
<property name="password" value="activemq"/>
|
||||||
<property name="poolPreparedStatements" value="true"/>
|
<property name="poolPreparedStatements" value="true"/>
|
||||||
</bean>
|
</bean>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Embedded Derby DataSource Sample Setup -->
|
<!-- Embedded Derby DataSource Sample Setup -->
|
||||||
<!--
|
<!--
|
||||||
<bean id="derby-ds" class="org.apache.derby.jdbc.EmbeddedDataSource">
|
<bean id="derby-ds" class="org.apache.derby.jdbc.EmbeddedDataSource">
|
||||||
<property name="databaseName" value="derbydb"/>
|
<property name="databaseName" value="derbydb"/>
|
||||||
<property name="createDatabase" value="create"/>
|
<property name="createDatabase" value="create"/>
|
||||||
</bean>
|
</bean>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
</beans>
|
</beans>
|
||||||
<!-- END SNIPPET: xbean -->
|
<!-- END SNIPPET: xbean -->
|
||||||
|
|
Loading…
Reference in New Issue