jruby-activemq 5.5.1-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (302) hide show
  1. data/History.md +6 -0
  2. data/LICENSE +619 -0
  3. data/README.md +15 -0
  4. data/Rakefile +34 -0
  5. data/apache-activemq-5.5.1/LICENSE +619 -0
  6. data/apache-activemq-5.5.1/NOTICE +85 -0
  7. data/apache-activemq-5.5.1/README.txt +63 -0
  8. data/apache-activemq-5.5.1/WebConsole-README.txt +42 -0
  9. data/apache-activemq-5.5.1/activemq-all-5.5.1.jar +0 -0
  10. data/apache-activemq-5.5.1/bin/activemq +653 -0
  11. data/apache-activemq-5.5.1/bin/activemq-admin +155 -0
  12. data/apache-activemq-5.5.1/bin/linux-x86-32/activemq +543 -0
  13. data/apache-activemq-5.5.1/bin/linux-x86-32/libwrapper.so +0 -0
  14. data/apache-activemq-5.5.1/bin/linux-x86-32/wrapper +0 -0
  15. data/apache-activemq-5.5.1/bin/linux-x86-32/wrapper.conf +139 -0
  16. data/apache-activemq-5.5.1/bin/linux-x86-64/activemq +543 -0
  17. data/apache-activemq-5.5.1/bin/linux-x86-64/libwrapper.so +0 -0
  18. data/apache-activemq-5.5.1/bin/linux-x86-64/wrapper +0 -0
  19. data/apache-activemq-5.5.1/bin/linux-x86-64/wrapper.conf +139 -0
  20. data/apache-activemq-5.5.1/bin/macosx/activemq +537 -0
  21. data/apache-activemq-5.5.1/bin/macosx/libwrapper.jnilib +0 -0
  22. data/apache-activemq-5.5.1/bin/macosx/wrapper +0 -0
  23. data/apache-activemq-5.5.1/bin/macosx/wrapper.conf +139 -0
  24. data/apache-activemq-5.5.1/bin/run.jar +0 -0
  25. data/apache-activemq-5.5.1/bin/wrapper.jar +0 -0
  26. data/apache-activemq-5.5.1/conf/activemq-command.xml +52 -0
  27. data/apache-activemq-5.5.1/conf/activemq-demo.xml +289 -0
  28. data/apache-activemq-5.5.1/conf/activemq-dynamic-network-broker1.xml +108 -0
  29. data/apache-activemq-5.5.1/conf/activemq-dynamic-network-broker2.xml +109 -0
  30. data/apache-activemq-5.5.1/conf/activemq-jdbc.xml +98 -0
  31. data/apache-activemq-5.5.1/conf/activemq-scalability.xml +77 -0
  32. data/apache-activemq-5.5.1/conf/activemq-security.xml +132 -0
  33. data/apache-activemq-5.5.1/conf/activemq-specjms.xml +118 -0
  34. data/apache-activemq-5.5.1/conf/activemq-static-network-broker1.xml +100 -0
  35. data/apache-activemq-5.5.1/conf/activemq-static-network-broker2.xml +100 -0
  36. data/apache-activemq-5.5.1/conf/activemq-stomp.xml +133 -0
  37. data/apache-activemq-5.5.1/conf/activemq-throughput.xml +82 -0
  38. data/apache-activemq-5.5.1/conf/activemq.xml +136 -0
  39. data/apache-activemq-5.5.1/conf/broker-localhost.cert +0 -0
  40. data/apache-activemq-5.5.1/conf/broker.ks +0 -0
  41. data/apache-activemq-5.5.1/conf/broker.ts +0 -0
  42. data/apache-activemq-5.5.1/conf/camel.xml +66 -0
  43. data/apache-activemq-5.5.1/conf/client.ks +0 -0
  44. data/apache-activemq-5.5.1/conf/client.ts +0 -0
  45. data/apache-activemq-5.5.1/conf/credentials-enc.properties +22 -0
  46. data/apache-activemq-5.5.1/conf/credentials.properties +22 -0
  47. data/apache-activemq-5.5.1/conf/jetty-realm.properties +20 -0
  48. data/apache-activemq-5.5.1/conf/jetty.xml +112 -0
  49. data/apache-activemq-5.5.1/conf/jmx.access +18 -0
  50. data/apache-activemq-5.5.1/conf/jmx.password +18 -0
  51. data/apache-activemq-5.5.1/conf/log4j.properties +75 -0
  52. data/apache-activemq-5.5.1/conf/logging.properties +25 -0
  53. data/apache-activemq-5.5.1/data/activemq.log +0 -0
  54. data/apache-activemq-5.5.1/docs/index.html +22 -0
  55. data/apache-activemq-5.5.1/example/build.xml +317 -0
  56. data/apache-activemq-5.5.1/example/conf/activemq.xml +41 -0
  57. data/apache-activemq-5.5.1/example/conf/log4j.properties +39 -0
  58. data/apache-activemq-5.5.1/example/conf/resin-web.xml +35 -0
  59. data/apache-activemq-5.5.1/example/conf/web.xml +40 -0
  60. data/apache-activemq-5.5.1/example/perfharness/perfharness-activemq.sh +49 -0
  61. data/apache-activemq-5.5.1/example/ruby/README.txt +27 -0
  62. data/apache-activemq-5.5.1/example/ruby/catstomp.rb +49 -0
  63. data/apache-activemq-5.5.1/example/ruby/listener.rb +51 -0
  64. data/apache-activemq-5.5.1/example/ruby/publisher.rb +67 -0
  65. data/apache-activemq-5.5.1/example/ruby/stompcat.rb +50 -0
  66. data/apache-activemq-5.5.1/example/src/CommandLineSupport.java +120 -0
  67. data/apache-activemq-5.5.1/example/src/ConsumerTool.java +353 -0
  68. data/apache-activemq-5.5.1/example/src/EmbeddedBroker.java +41 -0
  69. data/apache-activemq-5.5.1/example/src/Log4jJMSAppenderExample.java +70 -0
  70. data/apache-activemq-5.5.1/example/src/ProducerAndConsumerTool.java +51 -0
  71. data/apache-activemq-5.5.1/example/src/ProducerTool.java +247 -0
  72. data/apache-activemq-5.5.1/example/src/RequesterTool.java +257 -0
  73. data/apache-activemq-5.5.1/example/src/StompExample.java +59 -0
  74. data/apache-activemq-5.5.1/example/src/TopicListener.java +118 -0
  75. data/apache-activemq-5.5.1/example/src/TopicPublisher.java +205 -0
  76. data/apache-activemq-5.5.1/example/src/jndi.properties +17 -0
  77. data/apache-activemq-5.5.1/example/src/log4j-jms.properties +31 -0
  78. data/apache-activemq-5.5.1/example/transactions/README.txt +40 -0
  79. data/apache-activemq-5.5.1/example/transactions/build.xml +113 -0
  80. data/apache-activemq-5.5.1/example/transactions/src/Retailer.java +107 -0
  81. data/apache-activemq-5.5.1/example/transactions/src/Supplier.java +135 -0
  82. data/apache-activemq-5.5.1/example/transactions/src/TransactionsDemo.java +47 -0
  83. data/apache-activemq-5.5.1/example/transactions/src/Vendor.java +302 -0
  84. data/apache-activemq-5.5.1/lib/a.sh +3 -0
  85. data/apache-activemq-5.5.1/lib/activation-1.1.jar +0 -0
  86. data/apache-activemq-5.5.1/lib/activemq-camel-5.5.1.jar +0 -0
  87. data/apache-activemq-5.5.1/lib/activemq-console-5.5.1.jar +0 -0
  88. data/apache-activemq-5.5.1/lib/activemq-core-5.5.1.jar +0 -0
  89. data/apache-activemq-5.5.1/lib/activemq-jaas-5.5.1.jar +0 -0
  90. data/apache-activemq-5.5.1/lib/activemq-protobuf-1.1.jar +0 -0
  91. data/apache-activemq-5.5.1/lib/activemq-rar.txt +20 -0
  92. data/apache-activemq-5.5.1/lib/activemq-web-5.5.1.jar +0 -0
  93. data/apache-activemq-5.5.1/lib/camel-core-2.7.0.jar +0 -0
  94. data/apache-activemq-5.5.1/lib/camel-jetty-2.7.0.jar +0 -0
  95. data/apache-activemq-5.5.1/lib/camel-jms-2.7.0.jar +0 -0
  96. data/apache-activemq-5.5.1/lib/camel-spring-2.7.0.jar +0 -0
  97. data/apache-activemq-5.5.1/lib/geronimo-j2ee-management_1.1_spec-1.0.1.jar +0 -0
  98. data/apache-activemq-5.5.1/lib/geronimo-jms_1.1_spec-1.1.1.jar +0 -0
  99. data/apache-activemq-5.5.1/lib/geronimo-jta_1.0.1B_spec-1.0.1.jar +0 -0
  100. data/apache-activemq-5.5.1/lib/jaxb-api-2.1.jar +0 -0
  101. data/apache-activemq-5.5.1/lib/jaxb-impl-2.1.6.jar +0 -0
  102. data/apache-activemq-5.5.1/lib/jcl-over-slf4j-1.5.11.jar +0 -0
  103. data/apache-activemq-5.5.1/lib/kahadb-5.5.1.jar +0 -0
  104. data/apache-activemq-5.5.1/lib/optional/activeio-core-3.1.2.jar +0 -0
  105. data/apache-activemq-5.5.1/lib/optional/activemq-jmdns_1.0-5.5.1.jar +0 -0
  106. data/apache-activemq-5.5.1/lib/optional/activemq-optional-5.5.1.jar +0 -0
  107. data/apache-activemq-5.5.1/lib/optional/activemq-pool-5.5.1.jar +0 -0
  108. data/apache-activemq-5.5.1/lib/optional/activemq-spring-5.5.1.jar +0 -0
  109. data/apache-activemq-5.5.1/lib/optional/activemq-xmpp-5.5.1.jar +0 -0
  110. data/apache-activemq-5.5.1/lib/optional/commons-beanutils-1.6.1.jar +0 -0
  111. data/apache-activemq-5.5.1/lib/optional/commons-codec-1.2.jar +0 -0
  112. data/apache-activemq-5.5.1/lib/optional/commons-collections-3.2.1.jar +0 -0
  113. data/apache-activemq-5.5.1/lib/optional/commons-dbcp-1.2.2.jar +0 -0
  114. data/apache-activemq-5.5.1/lib/optional/commons-httpclient-3.1.jar +0 -0
  115. data/apache-activemq-5.5.1/lib/optional/commons-lang-2.4.jar +0 -0
  116. data/apache-activemq-5.5.1/lib/optional/commons-net-2.0.jar +0 -0
  117. data/apache-activemq-5.5.1/lib/optional/commons-pool-1.5.4.jar +0 -0
  118. data/apache-activemq-5.5.1/lib/optional/geronimo-j2ee-connector_1.5_spec-2.0.0.jar +0 -0
  119. data/apache-activemq-5.5.1/lib/optional/jasypt-1.7.jar +0 -0
  120. data/apache-activemq-5.5.1/lib/optional/jettison-1.2.jar +0 -0
  121. data/apache-activemq-5.5.1/lib/optional/josql-1.5.jar +0 -0
  122. data/apache-activemq-5.5.1/lib/optional/log4j-1.2.14.jar +0 -0
  123. data/apache-activemq-5.5.1/lib/optional/slf4j-log4j12-1.5.11.jar +0 -0
  124. data/apache-activemq-5.5.1/lib/optional/spring-aop-3.0.3.RELEASE.jar +0 -0
  125. data/apache-activemq-5.5.1/lib/optional/spring-asm-3.0.3.RELEASE.jar +0 -0
  126. data/apache-activemq-5.5.1/lib/optional/spring-beans-3.0.3.RELEASE.jar +0 -0
  127. data/apache-activemq-5.5.1/lib/optional/spring-context-3.0.3.RELEASE.jar +0 -0
  128. data/apache-activemq-5.5.1/lib/optional/spring-core-3.0.3.RELEASE.jar +0 -0
  129. data/apache-activemq-5.5.1/lib/optional/spring-expression-3.0.3.RELEASE.jar +0 -0
  130. data/apache-activemq-5.5.1/lib/optional/spring-jms-3.0.3.RELEASE.jar +0 -0
  131. data/apache-activemq-5.5.1/lib/optional/spring-oxm-tiger-1.5.8.jar +0 -0
  132. data/apache-activemq-5.5.1/lib/optional/spring-tx-3.0.3.RELEASE.jar +0 -0
  133. data/apache-activemq-5.5.1/lib/optional/stax2-api-3.0.1.jar +0 -0
  134. data/apache-activemq-5.5.1/lib/optional/velocity-1.6.2.jar +0 -0
  135. data/apache-activemq-5.5.1/lib/optional/woodstox-core-asl-4.0.7.jar +0 -0
  136. data/apache-activemq-5.5.1/lib/optional/xbean-spring-3.7.jar +0 -0
  137. data/apache-activemq-5.5.1/lib/optional/xpp3-1.1.4c.jar +0 -0
  138. data/apache-activemq-5.5.1/lib/optional/xstream-1.3.1.jar +0 -0
  139. data/apache-activemq-5.5.1/lib/slf4j-api-1.5.11.jar +0 -0
  140. data/apache-activemq-5.5.1/lib/stax-1.2.0.jar +0 -0
  141. data/apache-activemq-5.5.1/lib/stax-api-1.0.1.jar +0 -0
  142. data/apache-activemq-5.5.1/lib/web/commons-management-1.0.jar +0 -0
  143. data/apache-activemq-5.5.1/lib/web/core-3.1.1.jar +0 -0
  144. data/apache-activemq-5.5.1/lib/web/geronimo-servlet_2.5_spec-1.2.jar +0 -0
  145. data/apache-activemq-5.5.1/lib/web/jdom-1.0.jar +0 -0
  146. data/apache-activemq-5.5.1/lib/web/jetty-all-server-7.1.6.v20100715.jar +0 -0
  147. data/apache-activemq-5.5.1/lib/web/jetty-websocket-7.1.6.v20100715.jar +0 -0
  148. data/apache-activemq-5.5.1/lib/web/jsp-2.1-glassfish-2.1.v20100127.jar +0 -0
  149. data/apache-activemq-5.5.1/lib/web/jsp-api-2.1-glassfish-2.1.v20100127.jar +0 -0
  150. data/apache-activemq-5.5.1/lib/web/rome-0.8.jar +0 -0
  151. data/apache-activemq-5.5.1/lib/web/sitemesh-2.2.1.jar +0 -0
  152. data/apache-activemq-5.5.1/lib/web/spring-web-3.0.3.RELEASE.jar +0 -0
  153. data/apache-activemq-5.5.1/lib/web/spring-webmvc-3.0.3.RELEASE.jar +0 -0
  154. data/apache-activemq-5.5.1/user-guide.html +119 -0
  155. data/apache-activemq-5.5.1/webapps/admin/404.html +137 -0
  156. data/apache-activemq-5.5.1/webapps/admin/500.html +138 -0
  157. data/apache-activemq-5.5.1/webapps/admin/META-INF/LICENSE +1026 -0
  158. data/apache-activemq-5.5.1/webapps/admin/META-INF/NOTICE +107 -0
  159. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/WebConsoleStarter.class +0 -0
  160. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/CopyMessage.class +0 -0
  161. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/CreateDestination.class +0 -0
  162. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/CreateSubscriber.class +0 -0
  163. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/DeleteDestination.class +0 -0
  164. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/DeleteJob.class +0 -0
  165. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/DeleteMessage.class +0 -0
  166. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/DeleteSubscriber.class +0 -0
  167. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/MoveMessage.class +0 -0
  168. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/PurgeDestination.class +0 -0
  169. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/SendMessage.class +0 -0
  170. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/filter/ApplicationContextFilter$1.class +0 -0
  171. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/filter/ApplicationContextFilter$2.class +0 -0
  172. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/filter/ApplicationContextFilter.class +0 -0
  173. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/handler/BindingBeanNameUrlHandlerMapping.class +0 -0
  174. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/decorators.xml +30 -0
  175. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/dispatcher-servlet.xml +62 -0
  176. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/jspf/headertags.jspf +21 -0
  177. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/jspf/old.jspf +21 -0
  178. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/checkbox.tag +18 -0
  179. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/forEachMapEntry.tag +29 -0
  180. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/option.tag +20 -0
  181. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/short.tag +29 -0
  182. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/text.tag +30 -0
  183. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/tooltip.tag +29 -0
  184. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/uri.tag +18 -0
  185. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/jms/forEachConnection.tag +35 -0
  186. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/jms/forEachMessage.tag +34 -0
  187. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/jms/formatTimestamp.tag +29 -0
  188. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/jms/persistent.tag +27 -0
  189. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/web.xml +187 -0
  190. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-default.xml +26 -0
  191. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-embedded.xml +45 -0
  192. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-invm.xml +41 -0
  193. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-jndi.xml +39 -0
  194. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-properties.xml +39 -0
  195. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-query.xml +25 -0
  196. data/apache-activemq-5.5.1/webapps/admin/browse.jsp +64 -0
  197. data/apache-activemq-5.5.1/webapps/admin/connection.jsp +138 -0
  198. data/apache-activemq-5.5.1/webapps/admin/connections.jsp +85 -0
  199. data/apache-activemq-5.5.1/webapps/admin/decorators/main.jsp +165 -0
  200. data/apache-activemq-5.5.1/webapps/admin/decorators/panel.jsp +31 -0
  201. data/apache-activemq-5.5.1/webapps/admin/decorators/printable.jsp +31 -0
  202. data/apache-activemq-5.5.1/webapps/admin/graph.jsp +67 -0
  203. data/apache-activemq-5.5.1/webapps/admin/images/activemq-logo.png +0 -0
  204. data/apache-activemq-5.5.1/webapps/admin/images/asf-logo.png +0 -0
  205. data/apache-activemq-5.5.1/webapps/admin/images/big-bullet.png +0 -0
  206. data/apache-activemq-5.5.1/webapps/admin/images/black-footer-bottom.png +0 -0
  207. data/apache-activemq-5.5.1/webapps/admin/images/black-footer-left.png +0 -0
  208. data/apache-activemq-5.5.1/webapps/admin/images/black-footer-right.png +0 -0
  209. data/apache-activemq-5.5.1/webapps/admin/images/bottom-red-bar.png +0 -0
  210. data/apache-activemq-5.5.1/webapps/admin/images/checker-bg.png +0 -0
  211. data/apache-activemq-5.5.1/webapps/admin/images/content-left.png +0 -0
  212. data/apache-activemq-5.5.1/webapps/admin/images/content-right.png +0 -0
  213. data/apache-activemq-5.5.1/webapps/admin/images/feed_atom.png +0 -0
  214. data/apache-activemq-5.5.1/webapps/admin/images/feed_rss.png +0 -0
  215. data/apache-activemq-5.5.1/webapps/admin/images/left-box-bottom.png +0 -0
  216. data/apache-activemq-5.5.1/webapps/admin/images/left-box-right.png +0 -0
  217. data/apache-activemq-5.5.1/webapps/admin/images/left-box-top.png +0 -0
  218. data/apache-activemq-5.5.1/webapps/admin/images/oval-arrow.png +0 -0
  219. data/apache-activemq-5.5.1/webapps/admin/images/right-box-bottom.png +0 -0
  220. data/apache-activemq-5.5.1/webapps/admin/images/right-box-left.png +0 -0
  221. data/apache-activemq-5.5.1/webapps/admin/images/right-box-top.png +0 -0
  222. data/apache-activemq-5.5.1/webapps/admin/images/small-bullet-gray.png +0 -0
  223. data/apache-activemq-5.5.1/webapps/admin/images/small-bullet-red.png +0 -0
  224. data/apache-activemq-5.5.1/webapps/admin/images/spacer.gif +0 -0
  225. data/apache-activemq-5.5.1/webapps/admin/images/top-red-bar.png +0 -0
  226. data/apache-activemq-5.5.1/webapps/admin/images/white-header-left.png +0 -0
  227. data/apache-activemq-5.5.1/webapps/admin/images/white-header-right.png +0 -0
  228. data/apache-activemq-5.5.1/webapps/admin/images/white-header-top.png +0 -0
  229. data/apache-activemq-5.5.1/webapps/admin/index.jsp +65 -0
  230. data/apache-activemq-5.5.1/webapps/admin/js/common.js +121 -0
  231. data/apache-activemq-5.5.1/webapps/admin/js/css.js +145 -0
  232. data/apache-activemq-5.5.1/webapps/admin/js/mochi/MochiKit.js +4804 -0
  233. data/apache-activemq-5.5.1/webapps/admin/js/mochi/__package__.js +14 -0
  234. data/apache-activemq-5.5.1/webapps/admin/js/plotkit/Base.js +332 -0
  235. data/apache-activemq-5.5.1/webapps/admin/js/plotkit/Canvas.js +707 -0
  236. data/apache-activemq-5.5.1/webapps/admin/js/plotkit/Layout.js +588 -0
  237. data/apache-activemq-5.5.1/webapps/admin/js/plotkit/SVG.js +677 -0
  238. data/apache-activemq-5.5.1/webapps/admin/js/plotkit/SweetCanvas.js +281 -0
  239. data/apache-activemq-5.5.1/webapps/admin/js/plotkit/SweetSVG.js +196 -0
  240. data/apache-activemq-5.5.1/webapps/admin/js/plotkit/dummy.svg +15 -0
  241. data/apache-activemq-5.5.1/webapps/admin/js/plotkit/iecanvas.htc +389 -0
  242. data/apache-activemq-5.5.1/webapps/admin/js/prettify.js +1424 -0
  243. data/apache-activemq-5.5.1/webapps/admin/js/standardista-table-sorting.js +434 -0
  244. data/apache-activemq-5.5.1/webapps/admin/message.jsp +185 -0
  245. data/apache-activemq-5.5.1/webapps/admin/network.jsp +52 -0
  246. data/apache-activemq-5.5.1/webapps/admin/queueConsumers.jsp +79 -0
  247. data/apache-activemq-5.5.1/webapps/admin/queueGraph.jsp +68 -0
  248. data/apache-activemq-5.5.1/webapps/admin/queues.jsp +78 -0
  249. data/apache-activemq-5.5.1/webapps/admin/scheduled.jsp +67 -0
  250. data/apache-activemq-5.5.1/webapps/admin/send.jsp +173 -0
  251. data/apache-activemq-5.5.1/webapps/admin/styles/prettify.css +44 -0
  252. data/apache-activemq-5.5.1/webapps/admin/styles/site.css +206 -0
  253. data/apache-activemq-5.5.1/webapps/admin/styles/sorttable.css +70 -0
  254. data/apache-activemq-5.5.1/webapps/admin/styles/type-settings.css +177 -0
  255. data/apache-activemq-5.5.1/webapps/admin/subscribers.jsp +158 -0
  256. data/apache-activemq-5.5.1/webapps/admin/test/dummy.jsp +52 -0
  257. data/apache-activemq-5.5.1/webapps/admin/test/index.jsp +84 -0
  258. data/apache-activemq-5.5.1/webapps/admin/test/systemProperties.jsp +53 -0
  259. data/apache-activemq-5.5.1/webapps/admin/topics.jsp +66 -0
  260. data/apache-activemq-5.5.1/webapps/admin/xml/queues.jsp +34 -0
  261. data/apache-activemq-5.5.1/webapps/admin/xml/topics.jsp +29 -0
  262. data/apache-activemq-5.5.1/webapps/demo/META-INF/LICENSE +494 -0
  263. data/apache-activemq-5.5.1/webapps/demo/META-INF/NOTICE +82 -0
  264. data/apache-activemq-5.5.1/webapps/demo/WEB-INF/web.xml +111 -0
  265. data/apache-activemq-5.5.1/webapps/demo/chat.css +76 -0
  266. data/apache-activemq-5.5.1/webapps/demo/chat.html +219 -0
  267. data/apache-activemq-5.5.1/webapps/demo/index.html +181 -0
  268. data/apache-activemq-5.5.1/webapps/demo/js/amq.js +307 -0
  269. data/apache-activemq-5.5.1/webapps/demo/js/amq_dojo_adapter.js +84 -0
  270. data/apache-activemq-5.5.1/webapps/demo/js/amq_jquery_adapter.js +88 -0
  271. data/apache-activemq-5.5.1/webapps/demo/js/amq_prototype_adapter.js +84 -0
  272. data/apache-activemq-5.5.1/webapps/demo/js/chat.js +209 -0
  273. data/apache-activemq-5.5.1/webapps/demo/js/dojo.js +16 -0
  274. data/apache-activemq-5.5.1/webapps/demo/js/jquery-1.4.2.min.js +154 -0
  275. data/apache-activemq-5.5.1/webapps/demo/js/prototype.js +4874 -0
  276. data/apache-activemq-5.5.1/webapps/demo/portfolio/portfolio.html +87 -0
  277. data/apache-activemq-5.5.1/webapps/demo/portfolio/portfolio.js +91 -0
  278. data/apache-activemq-5.5.1/webapps/demo/sandbox/index.html +31 -0
  279. data/apache-activemq-5.5.1/webapps/demo/sandbox/portfolio.html +93 -0
  280. data/apache-activemq-5.5.1/webapps/demo/sandbox/portfolio.js +49 -0
  281. data/apache-activemq-5.5.1/webapps/demo/sandbox/util.js +52 -0
  282. data/apache-activemq-5.5.1/webapps/demo/sandbox/webmq.js +149 -0
  283. data/apache-activemq-5.5.1/webapps/demo/send.html +51 -0
  284. data/apache-activemq-5.5.1/webapps/demo/style.css +440 -0
  285. data/apache-activemq-5.5.1/webapps/demo/test/amq_test.html +311 -0
  286. data/apache-activemq-5.5.1/webapps/demo/test/assets/README +4 -0
  287. data/apache-activemq-5.5.1/webapps/demo/test/assets/jsunittest.js +1017 -0
  288. data/apache-activemq-5.5.1/webapps/demo/test/assets/unittest.css +54 -0
  289. data/apache-activemq-5.5.1/webapps/favicon.ico +0 -0
  290. data/apache-activemq-5.5.1/webapps/fileserver/META-INF/LICENSE +203 -0
  291. data/apache-activemq-5.5.1/webapps/fileserver/META-INF/NOTICE +5 -0
  292. data/apache-activemq-5.5.1/webapps/fileserver/WEB-INF/classes/org/apache/activemq/util/FilenameGuardFilter$GuardedHttpServletRequest.class +0 -0
  293. data/apache-activemq-5.5.1/webapps/fileserver/WEB-INF/classes/org/apache/activemq/util/FilenameGuardFilter.class +0 -0
  294. data/apache-activemq-5.5.1/webapps/fileserver/WEB-INF/classes/org/apache/activemq/util/IOHelper.class +0 -0
  295. data/apache-activemq-5.5.1/webapps/fileserver/WEB-INF/classes/org/apache/activemq/util/RestFilter.class +0 -0
  296. data/apache-activemq-5.5.1/webapps/fileserver/WEB-INF/web.xml +56 -0
  297. data/apache-activemq-5.5.1/webapps/fileserver/index.html +30 -0
  298. data/apache-activemq-5.5.1/webapps/index.html +145 -0
  299. data/apache-activemq-5.5.1/webapps/styles/site.css +206 -0
  300. data/apache-activemq-5.5.1/webapps/styles/type-settings.css +177 -0
  301. data/lib/activemq.rb +11 -0
  302. metadata +382 -0
@@ -0,0 +1,85 @@
1
+
2
+ Apache ActiveMQ
3
+ Copyright 2005-2008 The Apache Software Foundation
4
+
5
+ This product includes software developed by
6
+ The Apache Software Foundation (http://www.apache.org/).
7
+
8
+
9
+ =========================================================================
10
+ == Spring Notice ==
11
+ =========================================================================
12
+
13
+ This product includes software developed by
14
+ the Apache Software Foundation (http://www.apache.org).
15
+
16
+ This product also includes software developed by
17
+ Clinton Begin (http://www.ibatis.com).
18
+
19
+ The end-user documentation included with a redistribution, if any,
20
+ must include the following acknowledgement:
21
+
22
+ "This product includes software developed by the Spring Framework
23
+ Project (http://www.springframework.org)."
24
+
25
+ Alternately, this acknowledgement may appear in the software itself,
26
+ if and wherever such third-party acknowledgements normally appear.
27
+
28
+ The names "Spring" and "Spring Framework" must not be used to
29
+ endorse or promote products derived from this software without
30
+ prior written permission. For written permission, please contact
31
+ rod.johnson@interface21.com or juergen.hoeller@interface21.com.
32
+
33
+
34
+ =========================================================================
35
+ == MX4J Notice ==
36
+ =========================================================================
37
+
38
+ This product includes software developed by the MX4J project
39
+ (http://sourceforge.net/projects/mx4j).
40
+
41
+ ==============================================================
42
+ Jetty Web Container
43
+ Copyright 1995-2006 Mort Bay Consulting Pty Ltd
44
+ ==============================================================
45
+
46
+ This product includes some software developed at The Apache Software
47
+ Foundation (http://www.apache.org/).
48
+
49
+ The javax.servlet package used by Jetty is copyright
50
+ Sun Microsystems, Inc and Apache Software Foundation. It is
51
+ distributed under the Common Development and Distribution License.
52
+ You can obtain a copy of the license at
53
+ https://glassfish.dev.java.net/public/CDDLv1.0.html.
54
+
55
+ The UnixCrypt.java code ~Implements the one way cryptography used by
56
+ Unix systems for simple password protection. Copyright 1996 Aki Yoshida,
57
+ modified April 2001 by Iris Van den Broeke, Daniel Deville.
58
+
59
+ The default JSP implementation is provided by the Glassfish JSP engine
60
+ from project Glassfish http://glassfish.dev.java.net. Copyright 2005
61
+ Sun Microsystems, Inc. and portions Copyright Apache Software Foundation.
62
+
63
+ Some portions of the code are Copyright:
64
+ 2006 Tim Vernum
65
+ 1999 Jason Gilbert.
66
+
67
+ The jboss integration module contains some LGPL code.
68
+
69
+ ===============================================================
70
+ == NOTICE File for JmDNS ==
71
+ ===============================================================
72
+
73
+ Java Multicast Domain Name Server (JmDNS)
74
+
75
+ This project was originally developed by Arthur van Hoff under the GNU
76
+ Lesser General Public License as jRendevous. It was moved to Sourceforge
77
+ by Rick Blair and renamed to JmDNS with the Arthur's kind permission.
78
+
79
+ Currently it has been re-released under the Apache License, Version 2.0.
80
+
81
+ Details of the Apache License, Version 2.0 can be found at:
82
+ http://www.apache.org/licenses/
83
+
84
+
85
+ For other details please see the README.txt file.
@@ -0,0 +1,63 @@
1
+ Welcome to Apache ActiveMQ
2
+ =======================================================================
3
+ Apache ActiveMQ is a high performance Apache 2.0 licensed Message
4
+ Broker and JMS 1.1 implementation.
5
+
6
+ Getting Started
7
+ ===============
8
+ To help you get started, try the following links:-
9
+
10
+ Getting Started
11
+ http://activemq.apache.org/version-5-getting-started.html
12
+
13
+ Building
14
+ http://activemq.apache.org/version-5-getting-started.html#GettingStarted-WindowsSourceInstallation
15
+ http://activemq.apache.org/version-5-getting-started.html#GettingStarted-UnixSourceInstallation
16
+
17
+ Examples
18
+ http://activemq.apache.org/examples.html
19
+
20
+ We welcome contributions of all kinds, for details of how you can help
21
+ http://activemq.apache.org/contributing.html
22
+
23
+ Please refer to the website for details of finding the issue tracker,
24
+ email lists, wiki or IRC channel at http://activemq.apache.org/
25
+
26
+ Please help us make Apache ActiveMQ better - we appreciate any feedback
27
+ you may have.
28
+
29
+ Enjoy!
30
+
31
+ Licensing
32
+ =======================================================================
33
+
34
+ This software is licensed under the terms you may find in the file
35
+ named "LICENSE.txt" in this directory.
36
+
37
+ This distribution includes cryptographic software. The country in
38
+ which you currently reside may have restrictions on the import,
39
+ possession, use, and/or re-export to another country, of
40
+ encryption software. BEFORE using any encryption software, please
41
+ check your country's laws, regulations and policies concerning the
42
+ import, possession, or use, and re-export of encryption software, to
43
+ see if this is permitted. See <http://www.wassenaar.org/> for more
44
+ information.
45
+
46
+ The U.S. Government Department of Commerce, Bureau of Industry and
47
+ Security (BIS), has classified this software as Export Commodity
48
+ Control Number (ECCN) 5D002.C.1, which includes information security
49
+ software using or performing cryptographic functions with asymmetric
50
+ algorithms. The form and manner of this Apache Software Foundation
51
+ distribution makes it eligible for export under the License Exception
52
+ ENC Technology Software Unrestricted (TSU) exception (see the BIS
53
+ Export Administration Regulations, Section 740.13) for both object
54
+ code and source code.
55
+
56
+ The following provides more details on the included cryptographic
57
+ software:
58
+
59
+ ActiveMQ supports the use of SSL TCP connections when used with
60
+ with a JVM supporting the Java Cryptography extensions
61
+ <http://java.sun.com/javase/technologies/security/>. ActiveMQ does
62
+ not include these libraries itself, but is designed to use them.
63
+
@@ -0,0 +1,42 @@
1
+ Deploying the ActiveMQ-WebConsole
2
+ =================================
3
+
4
+ In the default configuration ActiveMQ automatically starts the web console in the
5
+ same VM as the broker. The console is accessibly under http://localhost:8161/admin/.
6
+
7
+
8
+ However it's also possible to start the web console in a seperate VM and connect it
9
+ to the broker via JMS and JMX. The reasons to do so may include increased reliablity
10
+ of the broker itself (f.e. the embedded web console could use up all the available
11
+ memory) or the monitoring of a master/slave system.
12
+
13
+ Just deploy the war into your prefered servlet container and add the apache-activemq.jar
14
+ to the classpath of the container (f.e. under Tomcat that'd be common/lib and under
15
+ Jetty the lib-directory). Two options are available for the configuration of the broker
16
+ and jmx uri(s):
17
+
18
+ * System Properties
19
+ -----------------
20
+ Specify the following system properties in your webcontainer:
21
+ -Dwebconsole.type=properties
22
+ -Dwebconsole.jms.url=<url of the broker> (f.e. tcp://localhost:61616)
23
+ -Dwebconsole.jmx.url=<jmx url to the broker> (f.e. service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi)
24
+
25
+ * JNDI
26
+ ----
27
+ If your servlet container supports JNDI it's possible to use a JMS-ConnectionFactory
28
+ configured outside the war:
29
+ java:comp/env/jms/connectionFactory: javax.jms.ConnectionFactory for the broker
30
+ java:comp/env/jmx/url: URL of the brokers JMX (Type java.lang.String)
31
+
32
+
33
+
34
+ Master/Slave monitoring
35
+ -----------------------
36
+ To configure the web console to monitor a master/slave configuration configure the jms/jmx
37
+ as follows (system properties shown, but this option is also avaiable when using JNDI):
38
+ -Dwebconsole.jms.url=failover:(tcp://serverA:61616,tcp://serverB:61616)
39
+ -Dwebconsole.jmx.url=service:jmx:rmi:///jndi/rmi://serverA:1099/jmxrmi,service:jmx:rmi:///jndi/rmi://serverB:1099/jmxrmi
40
+ With this configuration the web console with switch to the slave as the master is no longer
41
+ available and back as soon as the master is back up.
42
+
@@ -0,0 +1,653 @@
1
+ #!/bin/sh
2
+ # ------------------------------------------------------------------------
3
+ # Licensed to the Apache Software Foundation (ASF) under one or more
4
+ # contributor license agreements. See the NOTICE file distributed with
5
+ # this work for additional information regarding copyright ownership.
6
+ # The ASF licenses this file to You under the Apache License, Version 2.0
7
+ # (the "License"); you may not use this file except in compliance with
8
+ # the License. You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ # ------------------------------------------------------------------------
18
+ #
19
+ # This script controls standalone Apache ActiveMQ service processes.
20
+ # To ensure compatibility to macosx and cygwin we do not utilize
21
+ # lsb standard infrastructure for controlling daemons like
22
+ # "start-stop-daemon".
23
+ #
24
+ # See also http://activemq.apache.org/activemq-command-line-tools-reference.html
25
+ # for additional commandline arguments
26
+ #
27
+ # Authors:
28
+ # Marc Schoechlin <ms@256bit.org>
29
+
30
+ # ------------------------------------------------------------------------
31
+ # CONFIGURATION
32
+ ACTIVEMQ_CONFIGS="/etc/default/activemq $HOME/.activemqrc"
33
+
34
+ # Backup invocation parameters
35
+ COMMANDLINE_ARGS="$@"
36
+
37
+ # For using instances
38
+ if ( basename $0 | grep "activemq-instance-" > /dev/null);then
39
+ INST="$(basename $0|sed 's/^activemq-instance-//;s/\.sh$//')"
40
+ ACTIVEMQ_CONFIGS="/etc/default/activemq-instance-${INST} $HOME/.activemqrc-instance-${INST}"
41
+ echo "INFO: Using alternative activemq configuration files: $ACCTIVEMQ_CONFIGS"
42
+ fi
43
+
44
+ ## START:DEFAULTCONFIG
45
+ # ------------------------------------------------------------------------
46
+ # Configuration file for running Apache Active MQ as standalone provider
47
+ #
48
+ # This file overwrites the predefined settings of the sysv init-script
49
+ #
50
+ # Active MQ installation dir
51
+ if [ -z "$ACTIVEMQ_HOME" ] ; then
52
+ # try to find ACTIVEMQ
53
+ if [ -d /opt/activemq ] ; then
54
+ ACTIVEMQ_HOME=/opt/activemq
55
+ fi
56
+
57
+ if [ -d "${HOME}/opt/activemq" ] ; then
58
+ ACTIVEMQ_HOME="${HOME}/opt/activemq"
59
+ fi
60
+
61
+ ## resolve links - $0 may be a link to activemq's home
62
+ PRG="$0"
63
+ progname=`basename "$0"`
64
+ saveddir=`pwd`
65
+
66
+ # need this for relative symlinks
67
+ dirname_prg=`dirname "$PRG"`
68
+ cd "$dirname_prg"
69
+
70
+ while [ -h "$PRG" ] ; do
71
+ ls=`ls -ld "$PRG"`
72
+ link=`expr "$ls" : '.*-> \(.*\)$'`
73
+ if expr "$link" : '.*/.*' > /dev/null; then
74
+ PRG="$link"
75
+ else
76
+ PRG=`dirname "$PRG"`"/$link"
77
+ fi
78
+ done
79
+
80
+ ACTIVEMQ_HOME=`dirname "$PRG"`/..
81
+
82
+ cd "$saveddir"
83
+
84
+ # make it fully qualified
85
+ ACTIVEMQ_HOME=`cd "$ACTIVEMQ_HOME" && pwd`
86
+ fi
87
+
88
+ if [ -z "$ACTIVEMQ_BASE" ] ; then
89
+ ACTIVEMQ_BASE="$ACTIVEMQ_HOME"
90
+ fi
91
+
92
+ # Active MQ configuration directory
93
+ ACTIVEMQ_CONFIG_DIR="$ACTIVEMQ_BASE/conf"
94
+
95
+ # Active MQ configuration directory
96
+ if [ -z "$ACTIVEMQ_DATA_DIR" ]; then
97
+ ACTIVEMQ_DATA_DIR="$ACTIVEMQ_BASE/data"
98
+ fi
99
+
100
+ if [ ! -d "$ACTIVEMQ_DATA_DIR" ]; then
101
+ mkdir $ACTIVEMQ_DATA_DIR
102
+ fi
103
+
104
+ # Location of the pidfile
105
+ if [ -z "$ACTIVEMQ_PIDFILE" ]; then
106
+ ACTIVEMQ_PIDFILE="$ACTIVEMQ_DATA_DIR/activemq.pid"
107
+ fi
108
+
109
+ # Location of the java installation
110
+ # Specify the location of your java installation using JAVA_HOME, or specify the
111
+ # path to the "java" binary using JAVACMD
112
+ # (set JAVACMD to "auto" for automatic detection)
113
+ #JAVA_HOME=""
114
+ JAVACMD="auto"
115
+
116
+ # Configure a user with non root priviledges, if no user is specified do not change user
117
+ ACTIVEMQ_USER=""
118
+
119
+ # Set jvm memory configuration
120
+ ACTIVEMQ_OPTS_MEMORY="-Xms256M -Xmx256M"
121
+
122
+ if [ -z "$ACTIVEMQ_OPTS" ] ; then
123
+ ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS_MEMORY -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties"
124
+ fi
125
+
126
+ # Uncomment to enable audit logging
127
+ #ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS -Dorg.apache.activemq.audit=true"
128
+
129
+ # Set jvm jmx configuration
130
+ # This enables jmx access over a configured jmx-tcp-port.
131
+ # You have to configure the first four settings if you run a ibm jvm, caused by the
132
+ # fact that IBM's jvm does not support VirtualMachine.attach(PID).
133
+ # JMX access is needed for quering a running activemq instance to gain data or to
134
+ # trigger management operations.
135
+ #
136
+ # Example for ${ACTIVEMQ_CONFIG_DIR}/jmx.access:
137
+ # ---
138
+ # # The "monitorRole" role has readonly access.
139
+ # # The "controlRole" role has readwrite access.
140
+ # monitorRole readonly
141
+ # controlRole readwrite
142
+ # ---
143
+ #
144
+ # Example for ${ACTIVEMQ_CONFIG_DIR}/jmx.password:
145
+ # ---
146
+ # # The "monitorRole" role has password "abc123".
147
+ # # # The "controlRole" role has password "abcd1234".
148
+ # monitorRole abc123
149
+ # controlRole abcd1234
150
+ # ---
151
+ #
152
+ # ACTIVEMQ_SUNJMX_START="-Dcom.sun.management.jmxremote.port=11099 "
153
+ # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONFIG_DIR}/jmx.password"
154
+ # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONFIG_DIR}/jmx.access"
155
+ # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false"
156
+ ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote"
157
+
158
+ # Set jvm jmx configuration for controlling the broker process
159
+ # You only have to configure the first four settings if you run a ibm jvm, caused by the
160
+ # fact that IBM's jvm does not support VirtualMachine.attach(PID)
161
+ # (see also com.sun.management.jmxremote.port, .jmx.password.file and .jmx.access.file )
162
+ #ACTIVEMQ_SUNJMX_CONTROL="--jmxurl service:jmx:rmi:///jndi/rmi://127.0.0.1:11099/jmxrmi --jmxuser controlRole --jmxpassword abcd1234"
163
+ ACTIVEMQ_SUNJMX_CONTROL=""
164
+
165
+ # Specify the queue manager URL for using "browse" option of sysv initscript
166
+ ACTIVEMQ_QUEUEMANAGERURL="--amqurl tcp://localhost:61616"
167
+
168
+ # Set additional JSE arguments
169
+ ACTIVEMQ_SSL_OPTS="$SSL_OPTS"
170
+
171
+ # Uncomment to enable YourKit profiling
172
+ #ACTIVEMQ_DEBUG_OPTS="-agentlib:yjpagent"
173
+
174
+ # Uncomment to enable remote debugging
175
+ #ACTIVEMQ_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
176
+
177
+ # ActiveMQ tries to shutdown the broker by jmx,
178
+ # after a specified number of seconds send SIGKILL
179
+ ACTIVEMQ_KILL_MAXSECONDS=30
180
+
181
+ ## END:DEFAULTCONFIG
182
+
183
+ # ------------------------------------------------------------------------
184
+ # LOAD CONFIGURATION
185
+
186
+ # load activemq configuration
187
+ CONFIG_LOAD="no"
188
+ for ACTIVEMQ_CONFIG in $ACTIVEMQ_CONFIGS;do
189
+ if [ -f "$ACTIVEMQ_CONFIG" ] ; then
190
+ ( . $ACTIVEMQ_CONFIG >/dev/null 2>&1 )
191
+ if [ "$?" != "0" ];then
192
+ echo "ERROR: There are syntax errors in '$ACTIVEMQ_CONFIG'"
193
+ exit 1
194
+ else
195
+ echo "INFO: Loading '$ACTIVEMQ_CONFIG'"
196
+ . $ACTIVEMQ_CONFIG
197
+ CONFIG_LOAD="yes"
198
+ fi
199
+ fi
200
+ done
201
+
202
+ # inform user that default configuration is loaded, no suitable configfile found
203
+ if [ "$CONFIG_LOAD" != "yes" ];then
204
+ if [ "$1" != "setup" ];then
205
+ echo "INFO: Using default configuration";
206
+ echo "(you can configure options in one of these file: $ACTIVEMQ_CONFIGS)"
207
+ echo
208
+ echo "INFO: Invoke the following command to create a configuration file"
209
+ CONFIGS=`echo $ACTIVEMQ_CONFIGS|sed 's/[ ][ ]*/ | /'`
210
+ echo "$0 setup [ $CONFIGS ]"
211
+ echo
212
+ fi
213
+ fi
214
+
215
+ # create configuration if requested
216
+ if [ "$1" = "setup" ];then
217
+ if [ -z "$2" ];then
218
+ echo "ERROR: Specify configuration file"
219
+ exit 1
220
+ fi
221
+ echo "INFO: Creating configuration file: $2"
222
+ (
223
+ P_STATE="0"
224
+ while read LINE ;do
225
+ if (echo "$LINE" | grep "START:DEFAULTCONFIG" >/dev/null );then
226
+ P_STATE="1"
227
+ continue;
228
+ fi
229
+ if (echo "$LINE" | grep "END:DEFAULTCONFIG" >/dev/null);then
230
+ P_STATE="0"
231
+ break;
232
+ fi
233
+ if [ "$P_STATE" -eq "1" ];then
234
+ echo $LINE
235
+ fi
236
+ done < $0
237
+ ) > $2
238
+ echo "INFO: It's recommend to limit access to '$2' to the priviledged user"
239
+ echo "INFO: (recommended: chown `whoami`:nogroup '$2'; chmod 600 '$2')"
240
+ exit $?
241
+ fi
242
+
243
+ # ------------------------------------------------------------------------
244
+ # OS SPECIFIC SUPPORT
245
+
246
+ OSTYPE="unknown"
247
+
248
+ case "`uname`" in
249
+ CYGWIN*) OSTYPE="cygwin" ;;
250
+ Darwin*)
251
+ OSTYPE="darwin"
252
+ if [-z "$JAVA_HOME"] && [ "$JAVACMD" = "auto" ];then
253
+ JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
254
+ fi
255
+ ;;
256
+ esac
257
+
258
+ # For Cygwin, ensure paths are in UNIX format before anything is touched
259
+ if [ "$OSTYPE" = "cygwin" ]; then
260
+ [ -n "$ACTIVEMQ_HOME" ] &&
261
+ ACTIVEMQ_HOME="`cygpath --unix "$ACTIVEMQ_HOME"`"
262
+ [ -n "$JAVA_HOME" ] &&
263
+ JAVA_HOME="`cygpath --unix "$JAVA_HOME"`"
264
+ [ -n "$CLASSPATH" ] &&
265
+ CLASSPATH="`cygpath --path --unix "$CLASSPATH"`"
266
+ fi
267
+
268
+ # Detect the location of the java binary
269
+ if [ -z "$JAVACMD" ] || [ "$JAVACMD" = "auto" ] ; then
270
+ if [ -n "$JAVA_HOME" ] ; then
271
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
272
+ # IBM's JDK on AIX uses strange locations for the executables
273
+ JAVACMD="$JAVA_HOME/jre/sh/java"
274
+ else
275
+ JAVACMD="$JAVA_HOME/bin/java"
276
+ fi
277
+ fi
278
+ fi
279
+
280
+ # Hm, we still do not know the location of the java binary
281
+ if [ ! -x "$JAVACMD" ] ; then
282
+ JAVACMD=`which java 2> /dev/null `
283
+ if [ -z "$JAVACMD" ] ; then
284
+ JAVACMD=java
285
+ fi
286
+ fi
287
+ # Stop here if no java installation is defined/found
288
+ if [ ! -x "$JAVACMD" ] ; then
289
+ echo "ERROR: Configuration variable JAVA_HOME or JAVACMD is not defined correctly."
290
+ echo " (JAVA_HOME='$JAVAHOME', JAVACMD='$JAVACMD')"
291
+ exit 1
292
+ fi
293
+
294
+ echo "INFO: Using java '$JAVACMD'"
295
+
296
+ if [ -z "$ACTIVEMQ_BASE" ] ; then
297
+ ACTIVEMQ_BASE="$ACTIVEMQ_HOME"
298
+ fi
299
+
300
+ # For Cygwin, switch paths to Windows format before running java if [ "$OSTYPE" = "cygwin" ]; then
301
+ if [ "$OSTYPE" = "cygwin" ];then
302
+ ACTIVEMQ_HOME=`cygpath --windows "$ACTIVEMQ_HOME"`
303
+ ACTIVEMQ_BASE=`cygpath --windows "$ACTIVEMQ_BASE"`
304
+ ACTIVEMQ_CLASSPATH=`cygpath --path --windows "$ACTIVEMQ_CLASSPATH"`
305
+ JAVA_HOME=`cygpath --windows "$JAVA_HOME"`
306
+ CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
307
+ CYGHOME=`cygpath --windows "$HOME"`
308
+ if [ -n "$CYGHOME" ]; then
309
+ ACTIVEMQ_CYGWIN="-Dcygwin.user.home=\"$CYGHOME\""
310
+ fi
311
+ fi
312
+
313
+ # Set default classpath
314
+ # Add instance conf dir before AMQ install conf dir to pick up instance-specific classpath entries first
315
+ ACTIVEMQ_CLASSPATH="${ACTIVEMQ_CONFIG_DIR};${ACTIVEMQ_CLASSPATH}"
316
+ if [ "${ACTIVEMQ_BASE}" != "${ACTIVEMQ_HOME}" ]; then
317
+ ACTIVEMQ_CLASSPATH="${ACTIVEMQ_BASE}/conf;${ACTIVEMQ_CLASSPATH}"
318
+ fi
319
+
320
+
321
+
322
+ # ------------------------------------------------------------------------
323
+ # HELPER FUNCTIONS
324
+
325
+ # Start the ActiveMQ JAR
326
+ #
327
+ #
328
+ # @ARG1 : the name of the PID-file
329
+ # If specified, this function starts the java process in background as a daemon
330
+ # and stores the pid of the created process in the file.
331
+ # Output on stdout/stderr will be supressed if this parameter is specified
332
+ # @RET : If unless 0 something went wrong
333
+ #
334
+ # Note: This function uses a lot of globally defined variables
335
+ # - if $ACTIVEMQ_USER is set, the function tries starts the java process whith the specified
336
+ # user
337
+ invokeJar(){
338
+ PIDFILE="$1"
339
+ RET="1"
340
+ CUSER="$(whoami 2>/dev/null)"
341
+
342
+ # Solaris fix
343
+ if [ ! $? -eq 0 ]; then
344
+ CUSER="$(/usr/ucb/whoami)"
345
+ fi
346
+
347
+ if [ ! -f "${ACTIVEMQ_HOME}/bin/run.jar" ];then
348
+ echo "ERROR: '${ACTIVEMQ_HOME}/bin/run.jar' does not exist"
349
+ exit 1
350
+ fi
351
+
352
+ if ( [ -z "$ACTIVEMQ_USER" ] || [ "$ACTIVEMQ_USER" = "$CUSER" ] );then
353
+ DOIT_PREFIX="sh -c "
354
+ DOIT_POSTFIX=";"
355
+ elif [ "$(id -u)" = "0" ];then
356
+ DOIT_PREFIX="su -c "
357
+ DOIT_POSTFIX=" - $ACTIVEMQ_USER"
358
+ echo "INFO: changing to user '$ACTIVEMQ_USER' to invoke java"
359
+ fi
360
+ # Execute java binary
361
+ if [ -n "$PIDFILE" ] && [ "$PIDFILE" != "stop" ];then
362
+ $DOIT_PREFIX "$JAVACMD $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS \
363
+ -Dactivemq.classpath=\"${ACTIVEMQ_CLASSPATH}\" \
364
+ -Dactivemq.home=\"${ACTIVEMQ_HOME}\" \
365
+ -Dactivemq.base=\"${ACTIVEMQ_BASE}\" \
366
+ $ACTIVEMQ_CYGWIN \
367
+ -jar \"${ACTIVEMQ_HOME}/bin/run.jar\" $COMMANDLINE_ARGS >/dev/null 2>&1 &
368
+ RET=\"\$?\"; APID=\"\$!\";
369
+ echo \$APID > $PIDFILE;
370
+ echo \"INFO: pidfile created : '$PIDFILE' (pid '\$APID')\";exit \$RET" $DOIT_POSTFIX
371
+ RET="$?"
372
+ elif [ -n "$PIDFILE" ] && [ "$PIDFILE" = "stop" ];then
373
+ PID=`cat $ACTIVEMQ_PIDFILE`
374
+ $DOIT_PREFIX "$JAVACMD $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS \
375
+ -Dactivemq.classpath=\"${ACTIVEMQ_CLASSPATH}\" \
376
+ -Dactivemq.home=\"${ACTIVEMQ_HOME}\" \
377
+ -Dactivemq.base=\"${ACTIVEMQ_BASE}\" \
378
+ $ACTIVEMQ_CYGWIN \
379
+ -jar \"${ACTIVEMQ_HOME}/bin/run.jar\" $COMMANDLINE_ARGS --pid $PID &
380
+ RET=\"\$?\"; APID=\"\$!\";
381
+ echo \$APID > $ACTIVEMQ_DATA_DIR/stop.pid; exit \$RET" $DOIT_POSTFIX
382
+ RET="$?"
383
+ else
384
+ $DOIT_PREFIX "$JAVACMD $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS \
385
+ -Dactivemq.classpath=\"${ACTIVEMQ_CLASSPATH}\" \
386
+ -Dactivemq.home=\"${ACTIVEMQ_HOME}\" \
387
+ -Dactivemq.base=\"${ACTIVEMQ_BASE}\" \
388
+ $ACTIVEMQ_CYGWIN \
389
+ -jar \"${ACTIVEMQ_HOME}/bin/run.jar\" $COMMANDLINE_ARGS" $DOIT_POSTFIX
390
+ RET="$?"
391
+ fi
392
+ return $RET
393
+ }
394
+
395
+ # Check if ActiveMQ is running
396
+ #
397
+ # @RET : 0 => the activemq process is running
398
+ # 1 => process id in $ACTIVEMQ_PIDFILE does not exist anymore
399
+ # 2 => something is wrong with the pid file
400
+ #
401
+ # Note: This function uses globally defined variables
402
+ # - $ACTIVEMQ_PIDFILE : the name of the pid file
403
+
404
+
405
+ checkRunning(){
406
+ if [ -f "$ACTIVEMQ_PIDFILE" ]; then
407
+ if [ -z "$(cat $ACTIVEMQ_PIDFILE)" ];then
408
+ echo "ERROR: Pidfile '$ACTIVEMQ_PIDFILE' exists but contains no pid"
409
+ return 2
410
+ fi
411
+ PID=`cat $ACTIVEMQ_PIDFILE`
412
+ RET=`ps -p $PID|grep java`
413
+ if [ -n "$RET" ];then
414
+ return 0;
415
+ else
416
+ return 1;
417
+ fi
418
+ else
419
+ return 1;
420
+ fi
421
+ }
422
+
423
+ checkStopRunning(){
424
+ PID=$ACTIVEMQ_DATA_DIR/stop.pid
425
+ if [ -f "$PID" ]; then
426
+ if [ -z "$(cat $PID)" ];then
427
+ echo "ERROR: Pidfile '$PID' exists but contains no pid"
428
+ return 2
429
+ fi
430
+ RET=`ps -p $(cat $PID)|grep java`
431
+ if [ -n "$RET" ];then
432
+ return 0;
433
+ else
434
+ return 1;
435
+ fi
436
+ else
437
+ return 1;
438
+ fi
439
+ }
440
+
441
+ # Check if ActiveMQ is running
442
+ #
443
+ # @RET : 0 => the activemq process is running
444
+ # 1 => the activemq process is not running
445
+ #
446
+ # Note: This function uses globally defined variables
447
+ # - $ACTIVEMQ_PIDFILE : the name of the pid file
448
+
449
+
450
+ invoke_status(){
451
+ if ( checkRunning );then
452
+ PID=`cat $ACTIVEMQ_PIDFILE`
453
+ echo "ActiveMQ is running (pid '$PID')"
454
+ exit 0
455
+ fi
456
+ echo "ActiveMQ not running"
457
+ exit 1
458
+ }
459
+
460
+ # Start ActiveMQ if not already running
461
+ #
462
+ # @RET : 0 => is now started, is already started
463
+ # !0 => something went wrong
464
+ #
465
+ # Note: This function uses globally defined variables
466
+ # - $ACTIVEMQ_PIDFILE : the name of the pid file
467
+ # - $ACTIVEMQ_OPTS : Additional options
468
+ # - $ACTIVEMQ_SUNJMX_START : options for JMX settings
469
+ # - $ACTIVEMQ_SSL_OPTS : options for SSL encryption
470
+
471
+ invoke_start(){
472
+ if ( checkRunning );then
473
+ PID=`cat $ACTIVEMQ_PIDFILE`
474
+ echo "INFO: Process with pid '$PID' is already running"
475
+ exit 0
476
+ fi
477
+
478
+ ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS $ACTIVEMQ_SUNJMX_START $ACTIVEMQ_SSL_OPTS"
479
+
480
+ echo "INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details"
481
+ invokeJar $ACTIVEMQ_PIDFILE
482
+ exit "$?"
483
+ }
484
+
485
+ # Start ActiveMQ in foreground (for debugging)
486
+ #
487
+ # @RET : 0 => is now started, is already started
488
+ # !0 => something went wrong
489
+ #
490
+ # Note: This function uses globally defined variables
491
+ # - $ACTIVEMQ_PIDFILE : the name of the pid file
492
+ # - $ACTIVEMQ_OPTS : Additional options
493
+ # - $ACTIVEMQ_SUNJMX_START : options for JMX settings
494
+ # - $ACTIVEMQ_SSL_OPTS : options for SSL encryption
495
+
496
+ invoke_console(){
497
+ if ( checkRunning );then
498
+ echo "ERROR: ActiveMQ is already running"
499
+ exit 1
500
+ fi
501
+
502
+ ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS $ACTIVEMQ_SUNJMX_START $ACTIVEMQ_SSL_OPTS"
503
+
504
+ COMMANDLINE_ARGS="start $(echo $COMMANDLINE_ARGS|sed 's,^console,,')"
505
+ echo "INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C)"
506
+ invokeJar
507
+ exit "$?"
508
+ }
509
+
510
+ # Stop ActiveMQ
511
+ #
512
+ # @RET : 0 => stop was successful
513
+ # !0 => something went wrong
514
+ #
515
+ # Note: This function uses globally defined variables
516
+ # - $ACTIVEMQ_PIDFILE : the name of the pid file
517
+ # - $ACTIVEMQ_KILL_MAXSECONDS : the number of seconds to wait for termination of broker after sending
518
+ # shutdown signal by jmx interface
519
+
520
+ invoke_stop(){
521
+ RET="1"
522
+ if ( checkRunning );then
523
+ ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS $ACTIVEMQ_SSL_OPTS"
524
+ COMMANDLINE_ARGS="$COMMANDLINE_ARGS $ACTIVEMQ_SUNJMX_CONTROL"
525
+ invokeJar "stop"
526
+ RET="$?"
527
+ PID=`cat $ACTIVEMQ_PIDFILE`
528
+ echo "INFO: Waiting at least $ACTIVEMQ_KILL_MAXSECONDS seconds for regular process termination of pid '$PID' : "
529
+ FOUND="0"
530
+ i=1
531
+ while [ $i != $ACTIVEMQ_KILL_MAXSECONDS ]; do
532
+
533
+ if [ ! checkStopRunning ];then
534
+ if [ ! checkRunning ]; then
535
+ echo " FINISHED"
536
+ FOUND="1"
537
+ fi
538
+ break
539
+ fi
540
+
541
+ if (checkRunning);then
542
+ sleep 1
543
+ printf "."
544
+ else
545
+ echo " FINISHED"
546
+ FOUND="1"
547
+ break
548
+ fi
549
+ i=`expr $i + 1`
550
+ done
551
+ if [ "$FOUND" -ne "1" ];then
552
+ echo
553
+ echo "INFO: Regular shutdown not successful, sending SIGKILL to process with pid '$PID'"
554
+ kill -KILL $PID
555
+ RET="1"
556
+ fi
557
+ elif [ -f "$ACTIVEMQ_PIDFILE" ];then
558
+ echo "ERROR: No or outdated process id in '$ACTIVEMQ_PIDFILE'"
559
+ echo
560
+ echo "INFO: Removing $ACTIVEMQ_PIDFILE"
561
+ else
562
+ echo "ActiveMQ not running"
563
+ exit 0
564
+ fi
565
+ rm -f $ACTIVEMQ_PIDFILE >/dev/null 2>&1
566
+ rm -f $ACTIVEMQ_DATA_DIR/stop.pid >/dev/null 2>&1
567
+ exit $RET
568
+ }
569
+
570
+ # Invoke a task on a running ActiveMQ instance
571
+ #
572
+ # @RET : 0 => successful
573
+ # !0 => something went wrong
574
+ #
575
+ # Note: This function uses globally defined variables
576
+ # - $ACTIVEMQ_QUEUEMANAGERURL : The url of the queuemanager
577
+ # - $ACTIVEMQ_OPTS : Additional options
578
+ # - $ACTIVEMQ_SUNJMX_START : options for JMX settings
579
+ # - $ACTIVEMQ_SSL_OPTS : options for SSL encryption
580
+ invoke_task(){
581
+ # call task in java binary
582
+ if ( checkRunning );then
583
+ if [ "$1" = "browse" ] && [ -n "$ACTIVEMQ_QUEUEMANAGERURL" ];then
584
+ ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS $ACTIVEMQ_SSL_OPTS"
585
+ COMMANDLINE_ARGS="$1 $ACTIVEMQ_QUEUEMANAGERURL $(echo $COMMANDLINE_ARGS|sed 's,^browse,,')"
586
+ elif [ "$1" = "query" ] && [ -n "$ACTIVEMQ_QUEUEMANAGERURL" ];then
587
+ ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS $ACTIVEMQ_SSL_OPTS"
588
+ COMMANDLINE_ARGS="$1 $ACTIVEMQ_SUNJMX_CONTROL $(echo $COMMANDLINE_ARGS|sed 's,^query,,')"
589
+ else
590
+ ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS $ACTIVEMQ_SSL_OPTS"
591
+ COMMANDLINE_ARGS="$COMMANDLINE_ARGS $ACTIVEMQ_SUNJMX_CONTROL"
592
+ fi
593
+ invokeJar
594
+ exit $?
595
+ else
596
+ invokeJar
597
+ exit 1
598
+ fi
599
+ }
600
+
601
+ show_help() {
602
+ invokeJar
603
+ RET="$?"
604
+ cat << EOF
605
+ Tasks provided by the sysv init script:
606
+ restart - stop running instance (if there is one), start new instance
607
+ console - start broker in foreground, useful for debugging purposes
608
+ status - check if activemq process is running
609
+ setup - create the specified configuration file for this init script
610
+ (see next usage section)
611
+
612
+ Configuration of this script:
613
+ The configuration of this script can be placed on /etc/default/activemq or $HOME/.activemqrc.
614
+ To use additional configurations for running multiple instances on the same operating system
615
+ rename or symlink script to a name matching to activemq-instance-<INSTANCENAME>.
616
+ This changes the configuration location to /etc/default/activemq-instance-<INSTANCENAME> and
617
+ \$HOME/.activemqrc-instance-<INSTANCENAME>. Configuration files in /etc have higher precedence.
618
+ EOF
619
+ exit $RET
620
+ }
621
+
622
+ # ------------------------------------------------------------------------
623
+ # MAIN
624
+
625
+ # show help
626
+ if [ -z "$1" ];then
627
+ show_help
628
+ fi
629
+
630
+ case "$1" in
631
+ status)
632
+ invoke_status
633
+ ;;
634
+ restart)
635
+ if ( checkRunning );then
636
+ $0 stop
637
+ fi
638
+ $0 status
639
+ $0 start
640
+ $0 status
641
+ ;;
642
+ start)
643
+ invoke_start
644
+ ;;
645
+ console)
646
+ invoke_console
647
+ ;;
648
+ stop)
649
+ invoke_stop
650
+ ;;
651
+ *)
652
+ invoke_task
653
+ esac