| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- |
| 3 |
|
| 4 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 5 |
contributor license agreements. See the NOTICE file distributed with |
| 6 |
this work for additional information regarding copyright ownership. |
| 7 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 8 |
(the "License"); you may not use this file except in compliance with |
| 9 |
the License. You may obtain a copy of the License at |
| 10 |
|
| 11 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 12 |
|
| 13 |
Unless required by applicable law or agreed to in writing, software |
| 14 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 15 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 |
See the License for the specific language governing permissions and |
| 17 |
limitations under the License. |
| 18 |
|
| 19 |
--> |
| 20 |
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" |
| 21 |
xmlns:shell="http://karaf.apache.org/xmlns/shell/v1.0.0"> |
| 22 |
|
| 23 |
<!-- ActiveMQ List Command --> |
| 24 |
<bean id="listcommand" class="org.apache.activemq.karaf.commands.ActiveMQCommand"> |
| 25 |
<property name="blueprintContainer" ref="blueprintContainer"/> |
| 26 |
<property name="blueprintConverter" ref="blueprintConverter"/> |
| 27 |
<property name="actionId" value="listaction"/> |
| 28 |
</bean> |
| 29 |
|
| 30 |
<service ref="listcommand" auto-export="interfaces" activation="lazy"> |
| 31 |
<service-properties> |
| 32 |
<entry key="osgi.command.scope" value="activemq"/> |
| 33 |
<entry key="osgi.command.function" value="list"/> |
| 34 |
</service-properties> |
| 35 |
</service> |
| 36 |
|
| 37 |
<bean id="listaction" class="org.apache.activemq.karaf.commands.ActiveMQCommandSupport" |
| 38 |
activation="lazy" |
| 39 |
scope="prototype"> |
| 40 |
<property name="command"> |
| 41 |
<bean class="org.apache.activemq.console.command.ListCommand"/> |
| 42 |
</property> |
| 43 |
</bean> |
| 44 |
|
| 45 |
<!-- ActiveMQ Query Command --> |
| 46 |
<bean id="querycommand" class="org.apache.activemq.karaf.commands.ActiveMQCommand"> |
| 47 |
<property name="blueprintContainer" ref="blueprintContainer"/> |
| 48 |
<property name="blueprintConverter" ref="blueprintConverter"/> |
| 49 |
<property name="actionId" value="queryaction"/> |
| 50 |
</bean> |
| 51 |
|
| 52 |
<service ref="querycommand" auto-export="interfaces" activation="lazy"> |
| 53 |
<service-properties> |
| 54 |
<entry key="osgi.command.scope" value="activemq"/> |
| 55 |
<entry key="osgi.command.function" value="query"/> |
| 56 |
</service-properties> |
| 57 |
</service> |
| 58 |
|
| 59 |
<bean id="queryaction" class="org.apache.activemq.karaf.commands.ActiveMQCommandSupport" |
| 60 |
activation="lazy" |
| 61 |
scope="prototype"> |
| 62 |
<property name="command"> |
| 63 |
<bean class="org.apache.activemq.console.command.QueryCommand"/> |
| 64 |
</property> |
| 65 |
</bean> |
| 66 |
|
| 67 |
<!-- ActiveMQ Browse Command --> |
| 68 |
<bean id="browsecommand" class="org.apache.activemq.karaf.commands.ActiveMQCommand"> |
| 69 |
<property name="blueprintContainer" ref="blueprintContainer"/> |
| 70 |
<property name="blueprintConverter" ref="blueprintConverter"/> |
| 71 |
<property name="actionId" value="browseaction"/> |
| 72 |
</bean> |
| 73 |
|
| 74 |
<service ref="browsecommand" auto-export="interfaces" activation="lazy"> |
| 75 |
<service-properties> |
| 76 |
<entry key="osgi.command.scope" value="activemq"/> |
| 77 |
<entry key="osgi.command.function" value="browse"/> |
| 78 |
</service-properties> |
| 79 |
</service> |
| 80 |
|
| 81 |
<bean id="browseaction" class="org.apache.activemq.karaf.commands.ActiveMQCommandSupport" |
| 82 |
activation="lazy" |
| 83 |
scope="prototype"> |
| 84 |
<property name="command"> |
| 85 |
<bean class="org.apache.activemq.console.command.AmqBrowseCommand"/> |
| 86 |
</property> |
| 87 |
</bean> |
| 88 |
|
| 89 |
<!-- ActiveMQ Bstat Command --> |
| 90 |
<bean id="bstatcommand" class="org.apache.activemq.karaf.commands.ActiveMQCommand"> |
| 91 |
<property name="blueprintContainer" ref="blueprintContainer"/> |
| 92 |
<property name="blueprintConverter" ref="blueprintConverter"/> |
| 93 |
<property name="actionId" value="bstataction"/> |
| 94 |
</bean> |
| 95 |
|
| 96 |
<service ref="bstatcommand" auto-export="interfaces" activation="lazy"> |
| 97 |
<service-properties> |
| 98 |
<entry key="osgi.command.scope" value="activemq"/> |
| 99 |
<entry key="osgi.command.function" value="bstat"/> |
| 100 |
</service-properties> |
| 101 |
</service> |
| 102 |
|
| 103 |
<bean id="bstataction" class="org.apache.activemq.karaf.commands.ActiveMQCommandSupport" |
| 104 |
activation="lazy" |
| 105 |
scope="prototype"> |
| 106 |
<property name="command"> |
| 107 |
<bean class="org.apache.activemq.console.command.BstatCommand"/> |
| 108 |
</property> |
| 109 |
</bean> |
| 110 |
|
| 111 |
<!-- ActiveMQ Purge Command --> |
| 112 |
<bean id="purgecommand" class="org.apache.activemq.karaf.commands.ActiveMQCommand"> |
| 113 |
<property name="blueprintContainer" ref="blueprintContainer"/> |
| 114 |
<property name="blueprintConverter" ref="blueprintConverter"/> |
| 115 |
<property name="actionId" value="purgeaction"/> |
| 116 |
</bean> |
| 117 |
|
| 118 |
<service ref="purgecommand" auto-export="interfaces" activation="lazy"> |
| 119 |
<service-properties> |
| 120 |
<entry key="osgi.command.scope" value="activemq"/> |
| 121 |
<entry key="osgi.command.function" value="purge"/> |
| 122 |
</service-properties> |
| 123 |
</service> |
| 124 |
|
| 125 |
<bean id="purgeaction" class="org.apache.activemq.karaf.commands.ActiveMQCommandSupport" |
| 126 |
activation="lazy" |
| 127 |
scope="prototype"> |
| 128 |
<property name="command"> |
| 129 |
<bean class="org.apache.activemq.console.command.PurgeCommand"/> |
| 130 |
</property> |
| 131 |
</bean> |
| 132 |
|
| 133 |
<!-- ActiveMQ Dstat Command --> |
| 134 |
<bean id="dstatcommand" class="org.apache.activemq.karaf.commands.ActiveMQCommand"> |
| 135 |
<property name="blueprintContainer" ref="blueprintContainer"/> |
| 136 |
<property name="blueprintConverter" ref="blueprintConverter"/> |
| 137 |
<property name="actionId" value="dstataction"/> |
| 138 |
</bean> |
| 139 |
|
| 140 |
<service ref="dstatcommand" auto-export="interfaces" activation="lazy"> |
| 141 |
<service-properties> |
| 142 |
<entry key="osgi.command.scope" value="activemq"/> |
| 143 |
<entry key="osgi.command.function" value="dstat"/> |
| 144 |
</service-properties> |
| 145 |
</service> |
| 146 |
|
| 147 |
<bean id="dstataction" class="org.apache.activemq.karaf.commands.ActiveMQCommandSupport" |
| 148 |
activation="lazy" |
| 149 |
scope="prototype"> |
| 150 |
<property name="command"> |
| 151 |
<bean class="org.apache.activemq.console.command.DstatCommand"/> |
| 152 |
</property> |
| 153 |
</bean> |
| 154 |
|
| 155 |
<!-- ActiveMQ Producer Command --> |
| 156 |
<bean id="producercommand" class="org.apache.activemq.karaf.commands.ActiveMQCommand"> |
| 157 |
<property name="blueprintContainer" ref="blueprintContainer"/> |
| 158 |
<property name="blueprintConverter" ref="blueprintConverter"/> |
| 159 |
<property name="actionId" value="produceraction"/> |
| 160 |
</bean> |
| 161 |
|
| 162 |
<service ref="producercommand" auto-export="interfaces" activation="lazy"> |
| 163 |
<service-properties> |
| 164 |
<entry key="osgi.command.scope" value="activemq"/> |
| 165 |
<entry key="osgi.command.function" value="producer"/> |
| 166 |
</service-properties> |
| 167 |
</service> |
| 168 |
|
| 169 |
<bean id="produceraction" class="org.apache.activemq.karaf.commands.ActiveMQCommandSupport" |
| 170 |
activation="lazy" |
| 171 |
scope="prototype"> |
| 172 |
<property name="command"> |
| 173 |
<bean class="org.apache.activemq.console.command.ProducerCommand"/> |
| 174 |
</property> |
| 175 |
</bean> |
| 176 |
|
| 177 |
<!-- ActiveMQ Consumer Command --> |
| 178 |
<bean id="consumercommand" class="org.apache.activemq.karaf.commands.ActiveMQCommand"> |
| 179 |
<property name="blueprintContainer" ref="blueprintContainer"/> |
| 180 |
<property name="blueprintConverter" ref="blueprintConverter"/> |
| 181 |
<property name="actionId" value="consumeraction"/> |
| 182 |
</bean> |
| 183 |
|
| 184 |
<service ref="consumercommand" auto-export="interfaces" activation="lazy"> |
| 185 |
<service-properties> |
| 186 |
<entry key="osgi.command.scope" value="activemq"/> |
| 187 |
<entry key="osgi.command.function" value="consumer"/> |
| 188 |
</service-properties> |
| 189 |
</service> |
| 190 |
|
| 191 |
<bean id="consumeraction" class="org.apache.activemq.karaf.commands.ActiveMQCommandSupport" |
| 192 |
activation="lazy" |
| 193 |
scope="prototype"> |
| 194 |
<property name="command"> |
| 195 |
<bean class="org.apache.activemq.console.command.ConsumerCommand"/> |
| 196 |
</property> |
| 197 |
</bean> |
| 198 |
</blueprint> |