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,155 @@
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
+ # load system-wide activemq configuration
20
+ if [ -f "/etc/activemq.conf" ] ; then
21
+ . /etc/activemq.conf
22
+ fi
23
+
24
+ # provide default values for people who don't use RPMs
25
+ if [ -z "$usejikes" ] ; then
26
+ usejikes=false;
27
+ fi
28
+
29
+ # load user activemq configuration
30
+ if [ -f "$HOME/.activemqrc" ] ; then
31
+ . "$HOME/.activemqrc"
32
+ fi
33
+
34
+ # OS specific support. $var _must_ be set to either true or false.
35
+ cygwin=false;
36
+ darwin=false;
37
+ case "`uname`" in
38
+ CYGWIN*) cygwin=true ;;
39
+ Darwin*) darwin=true
40
+ if [ -z "$JAVA_HOME" ] ; then
41
+ JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
42
+ fi
43
+ ;;
44
+ esac
45
+
46
+ if [ -z "$ACTIVEMQ_HOME" ] ; then
47
+ # try to find ACTIVEMQ
48
+ if [ -d /opt/activemq ] ; then
49
+ ACTIVEMQ_HOME=/opt/activemq
50
+ fi
51
+
52
+ if [ -d "${HOME}/opt/activemq" ] ; then
53
+ ACTIVEMQ_HOME="${HOME}/opt/activemq"
54
+ fi
55
+
56
+ ## resolve links - $0 may be a link to activemq's home
57
+ PRG="$0"
58
+ progname=`basename "$0"`
59
+ saveddir=`pwd`
60
+
61
+ # need this for relative symlinks
62
+ dirname_prg=`dirname "$PRG"`
63
+ cd "$dirname_prg"
64
+
65
+ while [ -h "$PRG" ] ; do
66
+ ls=`ls -ld "$PRG"`
67
+ link=`expr "$ls" : '.*-> \(.*\)$'`
68
+ if expr "$link" : '.*/.*' > /dev/null; then
69
+ PRG="$link"
70
+ else
71
+ PRG=`dirname "$PRG"`"/$link"
72
+ fi
73
+ done
74
+
75
+ ACTIVEMQ_HOME=`dirname "$PRG"`/..
76
+
77
+ cd "$saveddir"
78
+
79
+ # make it fully qualified
80
+ ACTIVEMQ_HOME=`cd "$ACTIVEMQ_HOME" && pwd`
81
+ fi
82
+
83
+ # For Cygwin, ensure paths are in UNIX format before anything is touched
84
+ if $cygwin ; then
85
+ [ -n "$ACTIVEMQ_HOME" ] &&
86
+ ACTIVEMQ_HOME=`cygpath --unix "$ACTIVEMQ_HOME"`
87
+ [ -n "$JAVA_HOME" ] &&
88
+ JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
89
+ [ -n "$CLASSPATH" ] &&
90
+ CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
91
+ fi
92
+
93
+ if [ -z "$JAVACMD" ] ; then
94
+ if [ -n "$JAVA_HOME" ] ; then
95
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
96
+ # IBM's JDK on AIX uses strange locations for the executables
97
+ JAVACMD="$JAVA_HOME/jre/sh/java"
98
+ else
99
+ JAVACMD="$JAVA_HOME/bin/java"
100
+ fi
101
+ else
102
+ JAVACMD=`which java 2> /dev/null `
103
+ if [ -z "$JAVACMD" ] ; then
104
+ JAVACMD=java
105
+ fi
106
+ fi
107
+ fi
108
+
109
+ if [ ! -x "$JAVACMD" ] ; then
110
+ echo "Error: JAVA_HOME is not defined correctly."
111
+ echo " We cannot execute $JAVACMD"
112
+ exit 1
113
+ fi
114
+
115
+ if [ -z "$ACTIVEMQ_BASE" ] ; then
116
+ ACTIVEMQ_BASE="$ACTIVEMQ_HOME"
117
+ fi
118
+
119
+ # For Cygwin, switch paths to Windows format before running java
120
+ if $cygwin; then
121
+ ACTIVEMQ_HOME=`cygpath --windows "$ACTIVEMQ_HOME"`
122
+ ACTIVEMQ_BASE=`cygpath --windows "$ACTIVEMQ_BASE"`
123
+ ACTIVEMQ_CLASSPATH=`cygpath --path --windows "$ACTIVEMQ_CLASSPATH"`
124
+ JAVA_HOME=`cygpath --windows "$JAVA_HOME"`
125
+ CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
126
+ CYGHOME=`cygpath --windows "$HOME"`
127
+ fi
128
+
129
+ # Set default classpath
130
+ ACTIVEMQ_CLASSPATH="${ACTIVEMQ_BASE}/conf;"$ACTIVEMQ_CLASSPATH
131
+
132
+ if [ $1 = "start" ] ; then
133
+ if [ -z "$ACTIVEMQ_OPTS" ] ; then
134
+ ACTIVEMQ_OPTS="-Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties"
135
+ fi
136
+
137
+ if [ -z "$SUNJMX" ] ; then
138
+ #SUNJMX="-Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
139
+ SUNJMX="-Dcom.sun.management.jmxremote"
140
+ fi
141
+
142
+ ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS $SUNJMX $SSL_OPTS"
143
+ fi
144
+
145
+ # Uncomment to enable YourKit profiling
146
+ #ACTIVEMQ_DEBUG_OPTS="-agentlib:yjpagent"
147
+
148
+ # Uncomment to enable remote debugging
149
+ #ACTIVEMQ_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
150
+
151
+ if [ -n "$CYGHOME" ]; then
152
+ exec "$JAVACMD" $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS -Dactivemq.classpath="${ACTIVEMQ_CLASSPATH}" -Dactivemq.home="${ACTIVEMQ_HOME}" -Dactivemq.base="${ACTIVEMQ_BASE}" -Dcygwin.user.home="$CYGHOME" -jar "${ACTIVEMQ_HOME}/bin/run.jar" $@
153
+ else
154
+ exec "$JAVACMD" $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS -Dactivemq.classpath="${ACTIVEMQ_CLASSPATH}" -Dactivemq.home="${ACTIVEMQ_HOME}" -Dactivemq.base="${ACTIVEMQ_BASE}" -jar "${ACTIVEMQ_HOME}/bin/run.jar" $@
155
+ fi
@@ -0,0 +1,543 @@
1
+ #! /bin/sh
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
+ # Application
21
+ APP_NAME="ActiveMQ"
22
+ APP_LONG_NAME="ActiveMQ Broker"
23
+ ACTIVEMQ_HOME="../.."
24
+
25
+ # Wrapper
26
+ WRAPPER_CMD="wrapper"
27
+ WRAPPER_CONF="wrapper.conf"
28
+
29
+ # Priority at which to run the wrapper. See "man nice" for valid priorities.
30
+ # nice is only used if a priority is specified.
31
+ PRIORITY=
32
+
33
+ # Location of the pid file.
34
+ PIDDIR="."
35
+
36
+ # If uncommented, causes the Wrapper to be shutdown using an anchor file.
37
+ # When launched with the 'start' command, it will also ignore all INT and
38
+ # TERM signals.
39
+ #IGNORE_SIGNALS=true
40
+
41
+ # If specified, the Wrapper will be run as the specified user.
42
+ # IMPORTANT - Make sure that the user has the required privileges to write
43
+ # the PID file and wrapper.log files. Failure to be able to write the log
44
+ # file will cause the Wrapper to exit without any way to write out an error
45
+ # message.
46
+ # NOTE - This will set the user which is used to run the Wrapper as well as
47
+ # the JVM and is not useful in situations where a privileged resource or
48
+ # port needs to be allocated prior to the user being changed.
49
+ #RUN_AS_USER=
50
+
51
+ # The following two lines are used by the chkconfig command. Change as is
52
+ # appropriate for your application. They should remain commented.
53
+ # chkconfig: 2345 20 80
54
+ # description: @app.long.name@
55
+
56
+ # Do not modify anything beyond this point
57
+ #-----------------------------------------------------------------------------
58
+
59
+ # load system-wide activemq configuration
60
+ if [ -f "/etc/sysconfig/activemq" ] ; then
61
+ . /etc/sysconfig/activemq
62
+ fi
63
+
64
+ # Get the fully qualified path to the script
65
+ case $0 in
66
+ /*)
67
+ SCRIPT="$0"
68
+ ;;
69
+ *)
70
+ PWD=`pwd`
71
+ SCRIPT="$PWD/$0"
72
+ ;;
73
+ esac
74
+
75
+ # Resolve the true real path without any sym links.
76
+ CHANGED=true
77
+ while [ "X$CHANGED" != "X" ]
78
+ do
79
+ # Change spaces to ":" so the tokens can be parsed.
80
+ SCRIPT=`echo $SCRIPT | sed -e 's; ;:;g'`
81
+ # Get the real path to this script, resolving any symbolic links
82
+ TOKENS=`echo $SCRIPT | sed -e 's;/; ;g'`
83
+ REALPATH=
84
+ for C in $TOKENS; do
85
+ REALPATH="$REALPATH/$C"
86
+ while [ -h "$REALPATH" ] ; do
87
+ LS="`ls -ld "$REALPATH"`"
88
+ LINK="`expr "$LS" : '.*-> \(.*\)$'`"
89
+ if expr "$LINK" : '/.*' > /dev/null; then
90
+ REALPATH="$LINK"
91
+ else
92
+ REALPATH="`dirname "$REALPATH"`""/$LINK"
93
+ fi
94
+ done
95
+ done
96
+ # Change ":" chars back to spaces.
97
+ REALPATH=`echo $REALPATH | sed -e 's;:; ;g'`
98
+
99
+ if [ "$REALPATH" = "$SCRIPT" ]
100
+ then
101
+ CHANGED=""
102
+ else
103
+ SCRIPT="$REALPATH"
104
+ fi
105
+ done
106
+
107
+ # Change the current directory to the location of the script
108
+ cd "`dirname "$REALPATH"`"
109
+ REALDIR=`pwd`
110
+
111
+ # If the PIDDIR is relative, set its value relative to the full REALPATH to avoid problems if
112
+ # the working directory is later changed.
113
+ FIRST_CHAR=`echo $PIDDIR | cut -c1,1`
114
+ if [ "$FIRST_CHAR" != "/" ]
115
+ then
116
+ PIDDIR=$REALDIR/$PIDDIR
117
+ fi
118
+ # Same test for WRAPPER_CMD
119
+ FIRST_CHAR=`echo $WRAPPER_CMD | cut -c1,1`
120
+ if [ "$FIRST_CHAR" != "/" ]
121
+ then
122
+ WRAPPER_CMD=$REALDIR/$WRAPPER_CMD
123
+ fi
124
+ # Same test for WRAPPER_CONF
125
+ FIRST_CHAR=`echo $WRAPPER_CONF | cut -c1,1`
126
+ if [ "$FIRST_CHAR" != "/" ]
127
+ then
128
+ WRAPPER_CONF=$REALDIR/$WRAPPER_CONF
129
+ fi
130
+
131
+ # Process ID
132
+ ANCHORFILE="$PIDDIR/$APP_NAME.anchor"
133
+ PIDFILE="$PIDDIR/$APP_NAME.pid"
134
+ LOCKDIR="/var/lock/subsys"
135
+ LOCKFILE="$LOCKDIR/$APP_NAME"
136
+ pid=""
137
+
138
+ # Resolve the location of the 'ps' command
139
+ PSEXE="/usr/bin/ps"
140
+ if [ ! -x $PSEXE ]
141
+ then
142
+ PSEXE="/bin/ps"
143
+ if [ ! -x $PSEXE ]
144
+ then
145
+ echo "Unable to locate 'ps'."
146
+ echo "Please report this message along with the location of the command on your system."
147
+ exit 1
148
+ fi
149
+ fi
150
+
151
+ # Resolve the os
152
+ DIST_OS=`uname -s | tr [:upper:] [:lower:] | tr -d [:blank:]`
153
+ case "$DIST_OS" in
154
+ 'sunos')
155
+ DIST_OS="solaris"
156
+ ;;
157
+ 'hp-ux' | 'hp-ux64')
158
+ DIST_OS="hpux"
159
+ ;;
160
+ 'darwin')
161
+ DIST_OS="macosx"
162
+ ;;
163
+ 'unix_sv')
164
+ DIST_OS="unixware"
165
+ ;;
166
+ esac
167
+
168
+ # Resolve the architecture
169
+ DIST_ARCH=`uname -p 2>/dev/null | tr [:upper:] [:lower:] | tr -d [:blank:]`
170
+ if [ "$DIST_ARCH" = "unknown" ] || [ "$DIST_ARCH" = "" ]
171
+ then
172
+ DIST_ARCH=`uname -m | tr [:upper:] [:lower:] | tr -d [:blank:]`
173
+ fi
174
+ case "$DIST_ARCH" in
175
+ 'amd64' | 'ia32' | 'ia64' | 'i386' | 'i486' | 'i586' | 'i686' | 'x86_64')
176
+ DIST_ARCH="x86"
177
+ ;;
178
+ 'ip27')
179
+ DIST_ARCH="mips"
180
+ ;;
181
+ 'power' | 'powerpc' | 'power_pc' | 'ppc64')
182
+ DIST_ARCH="ppc"
183
+ ;;
184
+ 'pa_risc' | 'pa-risc')
185
+ DIST_ARCH="parisc"
186
+ ;;
187
+ 'sun4u' | 'sparcv9')
188
+ DIST_ARCH="sparc"
189
+ ;;
190
+ '9000/800')
191
+ DIST_ARCH="parisc"
192
+ ;;
193
+ esac
194
+
195
+ # Decide on the wrapper binary to use.
196
+ # If a 32-bit wrapper binary exists then it will work on 32 or 64 bit
197
+ # platforms, if the 64-bit binary exists then the distribution most
198
+ # likely wants to use long names. Otherwise, look for the default.
199
+ # For macosx, we also want to look for universal binaries.
200
+ WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
201
+ if [ -x $WRAPPER_TEST_CMD ]
202
+ then
203
+ WRAPPER_CMD="$WRAPPER_TEST_CMD"
204
+ else
205
+ if [ "$DIST_OS" = "macosx" ]
206
+ then
207
+ WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-32"
208
+ if [ -x $WRAPPER_TEST_CMD ]
209
+ then
210
+ WRAPPER_CMD="$WRAPPER_TEST_CMD"
211
+ else
212
+ WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
213
+ if [ -x $WRAPPER_TEST_CMD ]
214
+ then
215
+ WRAPPER_CMD="$WRAPPER_TEST_CMD"
216
+ else
217
+ WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-universal-64"
218
+ if [ -x $WRAPPER_TEST_CMD ]
219
+ then
220
+ WRAPPER_CMD="$WRAPPER_TEST_CMD"
221
+ else
222
+ if [ ! -x $WRAPPER_CMD ]
223
+ then
224
+ echo "Unable to locate any of the following binaries:"
225
+ echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
226
+ echo " $WRAPPER_CMD-$DIST_OS-universal-32"
227
+ echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
228
+ echo " $WRAPPER_CMD-$DIST_OS-universal-64"
229
+ echo " $WRAPPER_CMD"
230
+ exit 1
231
+ fi
232
+ fi
233
+ fi
234
+ fi
235
+ else
236
+ WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
237
+ if [ -x $WRAPPER_TEST_CMD ]
238
+ then
239
+ WRAPPER_CMD="$WRAPPER_TEST_CMD"
240
+ else
241
+ if [ ! -x $WRAPPER_CMD ]
242
+ then
243
+ echo "Unable to locate any of the following binaries:"
244
+ echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32"
245
+ echo " $WRAPPER_CMD-$DIST_OS-$DIST_ARCH-64"
246
+ echo " $WRAPPER_CMD"
247
+ exit 1
248
+ fi
249
+ fi
250
+ fi
251
+ fi
252
+
253
+ # Build the nice clause
254
+ if [ "X$PRIORITY" = "X" ]
255
+ then
256
+ CMDNICE=""
257
+ else
258
+ CMDNICE="nice -$PRIORITY"
259
+ fi
260
+
261
+ # Build the anchor file clause.
262
+ if [ "X$IGNORE_SIGNALS" = "X" ]
263
+ then
264
+ ANCHORPROP=
265
+ IGNOREPROP=
266
+ else
267
+ ANCHORPROP=wrapper.anchorfile=$ANCHORFILE
268
+ IGNOREPROP=wrapper.ignore_signals=TRUE
269
+ fi
270
+
271
+ # Build the lock file clause. Only create a lock file if the lock directory exists on this platform.
272
+ if [ -d $LOCKDIR ]
273
+ then
274
+ LOCKPROP=wrapper.lockfile=$LOCKFILE
275
+ else
276
+ LOCKPROP=
277
+ fi
278
+
279
+ checkUser() {
280
+ # Check the configured user. If necessary rerun this script as the desired user.
281
+ if [ "X$RUN_AS_USER" != "X" ]
282
+ then
283
+ # Resolve the location of the 'id' command
284
+ IDEXE="/usr/xpg4/bin/id"
285
+ if [ ! -x $IDEXE ]
286
+ then
287
+ IDEXE="/usr/bin/id"
288
+ if [ ! -x $IDEXE ]
289
+ then
290
+ echo "Unable to locate 'id'."
291
+ echo "Please report this message along with the location of the command on your system."
292
+ exit 1
293
+ fi
294
+ fi
295
+
296
+ if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
297
+ then
298
+ # Already running as the configured user. Avoid password prompts by not calling su.
299
+ RUN_AS_USER=""
300
+ fi
301
+ fi
302
+ if [ "X$RUN_AS_USER" != "X" ]
303
+ then
304
+ # If LOCKPROP and $RUN_AS_USER are defined then the new user will most likely not be
305
+ # able to create the lock file. The Wrapper will be able to update this file once it
306
+ # is created but will not be able to delete it on shutdown. If $2 is defined then
307
+ # the lock file should be created for the current command
308
+ if [ "X$LOCKPROP" != "X" ]
309
+ then
310
+ if [ "X$2" != "X" ]
311
+ then
312
+ # Resolve the primary group
313
+ RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1`
314
+ if [ "X$RUN_AS_GROUP" = "X" ]
315
+ then
316
+ RUN_AS_GROUP=$RUN_AS_USER
317
+ fi
318
+ touch $LOCKFILE
319
+ chown $RUN_AS_USER:$RUN_AS_GROUP $LOCKFILE
320
+ fi
321
+ fi
322
+
323
+ # Still want to change users, recurse. This means that the user will only be
324
+ # prompted for a password once.
325
+ su -m $RUN_AS_USER -c "$REALPATH $1"
326
+
327
+ # Now that we are the original user again, we may need to clean up the lock file.
328
+ if [ "X$LOCKPROP" != "X" ]
329
+ then
330
+ getpid
331
+ if [ "X$pid" = "X" ]
332
+ then
333
+ # Wrapper is not running so make sure the lock file is deleted.
334
+ if [ -f $LOCKFILE ]
335
+ then
336
+ rm $LOCKFILE
337
+ fi
338
+ fi
339
+ fi
340
+
341
+ exit 0
342
+ fi
343
+ }
344
+
345
+ getpid() {
346
+ if [ -f $PIDFILE ]
347
+ then
348
+ if [ -r $PIDFILE ]
349
+ then
350
+ pid=`cat $PIDFILE`
351
+ if [ "X$pid" != "X" ]
352
+ then
353
+ # It is possible that 'a' process with the pid exists but that it is not the
354
+ # correct process. This can happen in a number of cases, but the most
355
+ # common is during system startup after an unclean shutdown.
356
+ # The ps statement below looks for the specific wrapper command running as
357
+ # the pid. If it is not found then the pid file is considered to be stale.
358
+ pidtest=`$PSEXE -p $pid -o args | grep $WRAPPER_CMD | tail -1`
359
+ if [ "X$pidtest" = "X" ]
360
+ then
361
+ # This is a stale pid file.
362
+ rm -f $PIDFILE
363
+ echo "Removed stale pid file: $PIDFILE"
364
+ pid=""
365
+ fi
366
+ fi
367
+ else
368
+ echo "Cannot read $PIDFILE."
369
+ exit 1
370
+ fi
371
+ fi
372
+ }
373
+
374
+ testpid() {
375
+ pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1`
376
+ if [ "X$pid" = "X" ]
377
+ then
378
+ # Process is gone so remove the pid file.
379
+ rm -f $PIDFILE
380
+ pid=""
381
+ fi
382
+ }
383
+
384
+ console() {
385
+ echo "Running $APP_LONG_NAME..."
386
+ getpid
387
+ if [ "X$pid" = "X" ]
388
+ then
389
+ COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE $ANCHORPROP $LOCKPROP"
390
+ exec $COMMAND_LINE
391
+ else
392
+ echo "$APP_LONG_NAME is already running."
393
+ exit 1
394
+ fi
395
+ }
396
+
397
+ start() {
398
+ echo "Starting $APP_LONG_NAME..."
399
+ getpid
400
+ if [ "X$pid" = "X" ]
401
+ then
402
+ COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE $ANCHORPROP $IGNOREPROP $LOCKPROP"
403
+ exec $COMMAND_LINE
404
+ else
405
+ echo "$APP_LONG_NAME is already running."
406
+ exit 1
407
+ fi
408
+ }
409
+
410
+ stopit() {
411
+ echo "Stopping $APP_LONG_NAME..."
412
+ getpid
413
+ if [ "X$pid" = "X" ]
414
+ then
415
+ echo "$APP_LONG_NAME was not running."
416
+ else
417
+ if [ "X$IGNORE_SIGNALS" = "X" ]
418
+ then
419
+ # Running so try to stop it.
420
+ kill $pid
421
+ if [ $? -ne 0 ]
422
+ then
423
+ # An explanation for the failure should have been given
424
+ echo "Unable to stop $APP_LONG_NAME."
425
+ exit 1
426
+ fi
427
+ else
428
+ rm -f $ANCHORFILE
429
+ if [ -f $ANCHORFILE ]
430
+ then
431
+ # An explanation for the failure should have been given
432
+ echo "Unable to stop $APP_LONG_NAME."
433
+ exit 1
434
+ fi
435
+ fi
436
+
437
+ # We can not predict how long it will take for the wrapper to
438
+ # actually stop as it depends on settings in wrapper.conf.
439
+ # Loop until it does.
440
+ savepid=$pid
441
+ CNT=0
442
+ TOTCNT=0
443
+ while [ "X$pid" != "X" ]
444
+ do
445
+ # Show a waiting message every 5 seconds.
446
+ if [ "$CNT" -lt "5" ]
447
+ then
448
+ CNT=`expr $CNT + 1`
449
+ else
450
+ echo "Waiting for $APP_LONG_NAME to exit..."
451
+ CNT=0
452
+ fi
453
+ TOTCNT=`expr $TOTCNT + 1`
454
+
455
+ sleep 1
456
+
457
+ testpid
458
+ done
459
+
460
+ pid=$savepid
461
+ testpid
462
+ if [ "X$pid" != "X" ]
463
+ then
464
+ echo "Failed to stop $APP_LONG_NAME."
465
+ exit 1
466
+ else
467
+ echo "Stopped $APP_LONG_NAME."
468
+ fi
469
+ fi
470
+ }
471
+
472
+ status() {
473
+ getpid
474
+ if [ "X$pid" = "X" ]
475
+ then
476
+ echo "$APP_LONG_NAME is not running."
477
+ exit 1
478
+ else
479
+ echo "$APP_LONG_NAME is running ($pid)."
480
+ exit 0
481
+ fi
482
+ }
483
+
484
+ dump() {
485
+ echo "Dumping $APP_LONG_NAME..."
486
+ getpid
487
+ if [ "X$pid" = "X" ]
488
+ then
489
+ echo "$APP_LONG_NAME was not running."
490
+
491
+ else
492
+ kill -3 $pid
493
+
494
+ if [ $? -ne 0 ]
495
+ then
496
+ echo "Failed to dump $APP_LONG_NAME."
497
+ exit 1
498
+ else
499
+ echo "Dumped $APP_LONG_NAME."
500
+ fi
501
+ fi
502
+ }
503
+
504
+ case "$1" in
505
+
506
+ 'console')
507
+ checkUser $1 touchlock
508
+ console
509
+ ;;
510
+
511
+ 'start')
512
+ checkUser $1 touchlock
513
+ start
514
+ ;;
515
+
516
+ 'stop')
517
+ checkUser $1
518
+ stopit
519
+ ;;
520
+
521
+ 'restart')
522
+ checkUser $1 touchlock
523
+ stopit
524
+ start
525
+ ;;
526
+
527
+ 'status')
528
+ checkUser $1
529
+ status
530
+ ;;
531
+
532
+ 'dump')
533
+ checkUser $1
534
+ dump
535
+ ;;
536
+
537
+ *)
538
+ echo "Usage: $0 { console | start | stop | restart | status | dump }"
539
+ exit 1
540
+ ;;
541
+ esac
542
+
543
+ exit 0