mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-5558 - enable producer/consumer commands in karaf
This commit is contained in:
parent
35683c1c1c
commit
01d0155149
|
@ -1,10 +1,10 @@
|
|||
Usage: consumer [OPTIONS]
|
||||
Description: Demo consumer that can be used to receive messages to the broker
|
||||
Options :
|
||||
[--brokerUrl URL] - connection factory url; default " + ActiveMQConnectionFactory.DEFAULT_BROKER_URL
|
||||
[--brokerUrl URL] - connection factory url; default ActiveMQConnectionFactory.DEFAULT_BROKER_URL
|
||||
[--user ..] - connection user name
|
||||
[--password ..] - connection password
|
||||
[--destination queue://..|topic://..] - ; default TEST
|
||||
[--destination queue://..|topic://..] - consumer destination; default queue://TEST
|
||||
[--messageCount N] - number of messages to send; default 1000
|
||||
[--sleep N] - millisecond sleep period between sends or receives; default 0
|
||||
[--transactionBatchSize N] - use send transaction batches of size N; default 0, no jms transactions
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
Usage: producer [OPTIONS]
|
||||
Description: Demo producer that can be used to send messages to the broker
|
||||
Options :
|
||||
[--brokerUrl URL] - connection factory url; default " + ActiveMQConnectionFactory.DEFAULT_BROKER_URL
|
||||
[--brokerUrl URL] - connection factory url; default ActiveMQConnectionFactory.DEFAULT_BROKER_URL
|
||||
[--user ..] - connection user name
|
||||
[--password ..] - connection password
|
||||
[--destination queue://..|topic://..] - ; default TEST
|
||||
[--destination queue://..|topic://..] - producer destination; default queue://TEST
|
||||
[--persistent true|false] - use persistent or non persistent messages; default true
|
||||
[--messageCount N] - number of messages to send; default 1000
|
||||
[--sleep N] - millisecond sleep period between sends or receives; default 0
|
||||
|
|
|
@ -152,4 +152,47 @@
|
|||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- ActiveMQ Producer Command -->
|
||||
<bean id="producercommand" class="org.apache.activemq.karaf.commands.ActiveMQCommand">
|
||||
<property name="blueprintContainer" ref="blueprintContainer"/>
|
||||
<property name="blueprintConverter" ref="blueprintConverter"/>
|
||||
<property name="actionId" value="produceraction"/>
|
||||
</bean>
|
||||
|
||||
<service ref="producercommand" auto-export="interfaces" activation="lazy">
|
||||
<service-properties>
|
||||
<entry key="osgi.command.scope" value="activemq"/>
|
||||
<entry key="osgi.command.function" value="producer"/>
|
||||
</service-properties>
|
||||
</service>
|
||||
|
||||
<bean id="produceraction" class="org.apache.activemq.karaf.commands.ActiveMQCommandSupport"
|
||||
activation="lazy"
|
||||
scope="prototype">
|
||||
<property name="command">
|
||||
<bean class="org.apache.activemq.console.command.ProducerCommand"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- ActiveMQ Consumer Command -->
|
||||
<bean id="consumercommand" class="org.apache.activemq.karaf.commands.ActiveMQCommand">
|
||||
<property name="blueprintContainer" ref="blueprintContainer"/>
|
||||
<property name="blueprintConverter" ref="blueprintConverter"/>
|
||||
<property name="actionId" value="consumeraction"/>
|
||||
</bean>
|
||||
|
||||
<service ref="consumercommand" auto-export="interfaces" activation="lazy">
|
||||
<service-properties>
|
||||
<entry key="osgi.command.scope" value="activemq"/>
|
||||
<entry key="osgi.command.function" value="consumer"/>
|
||||
</service-properties>
|
||||
</service>
|
||||
|
||||
<bean id="consumeraction" class="org.apache.activemq.karaf.commands.ActiveMQCommandSupport"
|
||||
activation="lazy"
|
||||
scope="prototype">
|
||||
<property name="command">
|
||||
<bean class="org.apache.activemq.console.command.ConsumerCommand"/>
|
||||
</property>
|
||||
</bean>
|
||||
</blueprint>
|
||||
|
|
Loading…
Reference in New Issue