jruby-activemq 5.5.1-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,181 @@
1
+ <!--
2
+ Licensed to the Apache Software Foundation (ASF) under one or more
3
+ contributor license agreements. See the NOTICE file distributed with
4
+ this work for additional information regarding copyright ownership.
5
+ The ASF licenses this file to You under the Apache License, Version 2.0
6
+ (the "License"); you may not use this file except in compliance with
7
+ the License. You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ -->
17
+
18
+
19
+
20
+
21
+
22
+
23
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
24
+
25
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
26
+ <html>
27
+ <head>
28
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
29
+ <title>ActiveMQ Web Demos</title>
30
+ <style type="text/css" media="screen">
31
+ @import url(/admin/styles/sorttable.css);
32
+ @import url(/admin/styles/type-settings.css);
33
+ @import url(/admin/styles/site.css);
34
+ @import url(/admin/styles/prettify.css);
35
+ </style>
36
+
37
+ <script type='text/javascript' src='/js/common.js'></script>
38
+ <script type='text/javascript' src='/js/css.js'></script>
39
+ <script type='text/javascript' src='/js/standardista-table-sorting.js'></script>
40
+ <script type='text/javascript' src='/js/prettify.js'></script>
41
+ <script>addEvent(window, 'load', prettyPrint)</script>
42
+
43
+
44
+
45
+ </head>
46
+
47
+ <body>
48
+
49
+
50
+ <div class="white_box">
51
+ <div class="header">
52
+ <div class="header_l">
53
+ <div class="header_r">
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <div class="content">
58
+ <div class="content_l">
59
+ <div class="content_r">
60
+
61
+ <div>
62
+
63
+ <!-- Banner -->
64
+ <div id="asf_logo">
65
+ <div id="activemq_logo">
66
+ <a style="float:left; width:280px;display:block;text-indent:-5000px;text-decoration:none;line-height:60px; margin-top:10px; margin-left:100px;"
67
+ href="http://activemq.apache.org/"
68
+ title="The most popular and powerful open source Message Broker">ActiveMQ</a>
69
+ <a style="float:right; width:210px;display:block;text-indent:-5000px;text-decoration:none;line-height:60px; margin-top:15px; margin-right:10px;"
70
+ href="http://www.apache.org/" title="The Apache Software Foundation">ASF</a>
71
+ </div>
72
+ </div>
73
+
74
+
75
+ <div class="top_red_bar">
76
+ <div id="site-breadcrumbs">
77
+ </div>
78
+ <div id="site-quicklinks"><P>
79
+ <a href="http://activemq.apache.org/support.html"
80
+ title="Get help and support using Apache ActiveMQ">Support</a></p>
81
+ </div>
82
+ </div>
83
+
84
+ <table border="0">
85
+ <tbody>
86
+ <tr>
87
+ <td valign="top" width="100%" style="overflow:hidden;">
88
+ <div class="body-content">
89
+ <h1>ActiveMQ Web Demos</h1>
90
+
91
+ <p>
92
+ Here you can find some examples on how you can exchange messages with ActiveMQ broker, using REST and Ajax APIs
93
+ </p>
94
+
95
+ <h2>Market data example</h2>
96
+
97
+ <p>
98
+ <a href="portfolioPublish?count=1&refresh=2&stocks=IBMW&stocks=BEAS&stocks=MSFT&stocks=SUNW">Market data publisher</a> starts publishing
99
+ some mock market data prices
100
+ </p>
101
+
102
+ <p>
103
+ <a href="portfolio/portfolio.html">Portfolio</a> example shows how you could make an interactive trading portfolio which
104
+ updates in real time as the market prices change
105
+ </p>
106
+
107
+ <h2>Chat example</h2>
108
+
109
+ <p>
110
+ <a href="chat.html">Chat room</a> example shows how you can use Streamlets and ActiveMQ to create a simple chat room
111
+ </p>
112
+
113
+ <h2>Simple Form based browser example</h2>
114
+
115
+ <p>
116
+ <a href="send.html">Send a message</a>
117
+ </p>
118
+
119
+ <p>
120
+ <a href="message/FOO/BAR?readTimeout=10000&type=queue">Receive a message</a>
121
+ </p>
122
+
123
+ <h2>Queue browser example</h2>
124
+
125
+ <ul>
126
+ <li><a href="queueBrowse/FOO/BAR">Browse a queue</a></li>
127
+ <li><a href="queueBrowse/FOO/BAR?view=xml">Browse a queue as XML</a></li>
128
+ <li><a href="queueBrowse/FOO/BAR?view=rss&feedType=atom_1.0">Browse a queue as Atom</a></li>
129
+ <li><a href="queueBrowse/FOO/BAR?view=rss&feedType=rss_1.0">Browse a queue as RSS 1.0</a></li>
130
+ <li><a href="queueBrowse/FOO/BAR?view=rss&feedType=rss_2.0">Browse a queue as RSS 2.0</a></li>
131
+ </ul>
132
+ </div>
133
+ </td>
134
+ <td valign="top">
135
+
136
+ <div class="navigation">
137
+ <div class="navigation_top">
138
+ <div class="navigation_bottom">
139
+ <H3>Useful Links</H3>
140
+
141
+ <ul class="alternate" type="square">
142
+ <li><a href="http://activemq.apache.org/"
143
+ title="The most popular and powerful open source Message Broker">Documentation</a></li>
144
+ <li><a href="http://activemq.apache.org/faq.html">FAQ</a></li>
145
+ <li><a href="http://activemq.apache.org/download.html">Downloads</a>
146
+ </li>
147
+ <li><a href="http://activemq.apache.org/discussion-forums.html">Forums</a>
148
+ </li>
149
+ </ul>
150
+ </div>
151
+ </div>
152
+ </div>
153
+ </td>
154
+ </tr>
155
+ </tbody>
156
+ </table>
157
+
158
+
159
+ <div class="bottom_red_bar"></div>
160
+ </div>
161
+ </div>
162
+ </div>
163
+ </div>
164
+ <div class="black_box">
165
+ <div class="footer">
166
+ <div class="footer_l">
167
+ <div class="footer_r">
168
+ <div>
169
+ Copyright 2005-2007 The Apache Software Foundation.
170
+
171
+ (<a href="?printable=true">printable version</a>)
172
+ </div>
173
+ </div>
174
+ </div>
175
+ </div>
176
+ </div>
177
+ </div>
178
+ <div class="design_attribution"><a href="http://hiramchirino.com/">Graphic Design By Hiram</a></div>
179
+
180
+ </body>
181
+ </html>
@@ -0,0 +1,307 @@
1
+ /**
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
+ // AMQ Ajax handler
20
+ // This class provides the main API for using the Ajax features of AMQ. It
21
+ // allows JMS messages to be sent and received from javascript when used
22
+ // with the org.apache.activemq.web.MessageListenerServlet.
23
+ //
24
+ // This version of the file provides an adapter interface for the jquery library
25
+ // and a namespace for the Javascript file, private/public variables and
26
+ // methods, and other scripting niceties. -- jim cook 2007/08/28
27
+
28
+ var org = org || {};
29
+ org.activemq = org.activemq || {};
30
+
31
+ org.activemq.Amq = function() {
32
+ var connectStatusHandler;
33
+
34
+ // Just a shortcut to eliminate some redundant typing.
35
+ var adapter = org.activemq.AmqAdapter;
36
+
37
+ if (typeof adapter == 'undefined') {
38
+ throw 'An org.activemq.AmqAdapter must be declared before the amq.js script file.'
39
+ }
40
+
41
+ // The URI of the AjaxServlet.
42
+ var uri;
43
+
44
+ // The number of seconds that the long-polling socket will stay connected.
45
+ // Best to keep this to a value less than one minute.
46
+ var timeout;
47
+
48
+ // A session should not be considered initialized until the JSESSIONID is returned
49
+ // from the initial GET request. Otherwise subscription POSTS may register the
50
+ // subscription with the wrong session.
51
+ var sessionInitialized = false;
52
+
53
+ // This callback will be called after the first GET request returns.
54
+ var sessionInitializedCallback;
55
+
56
+ // Poll delay. if set to positive integer, this is the time to wait in ms
57
+ // before sending the next poll after the last completes.
58
+ var pollDelay;
59
+
60
+ // Inidicates whether logging is active or not. Not by default.
61
+ var logging = false;
62
+
63
+ // 5 second delay if an error occurs during poll. This could be due to
64
+ // server capacity problems or a timeout condition.
65
+ var pollErrorDelay = 5000;
66
+
67
+ // Map of handlers that will respond to message receipts. The id used during
68
+ // addListener(id, destination, handler) is used to key the callback
69
+ // handler.
70
+ var messageHandlers = {};
71
+
72
+ // Indicates whether an AJAX post call is in progress.
73
+ var batchInProgress = false;
74
+
75
+ // A collection of pending messages that accumulate when an AJAX call is in
76
+ // progress. These messages will be delivered as soon as the current call
77
+ // completes. The array contains objects in the format { destination,
78
+ // message, messageType }.
79
+ var messageQueue = [];
80
+
81
+ // String to distinguish this client from others sharing the same session.
82
+ // This can occur when multiple browser windows or tabs using amq.js simultaneously.
83
+ // All windows share the same JESSIONID, but need to consume messages independently.
84
+ var clientId = null;
85
+
86
+ /**
87
+ * Iterate over the returned XML and for each message in the response,
88
+ * invoke the handler with the matching id.
89
+ */
90
+ var messageHandler = function(data) {
91
+ var response = data.getElementsByTagName("ajax-response");
92
+ if (response != null && response.length == 1) {
93
+ connectStatusHandler(true);
94
+ var responses = response[0].childNodes; // <response>
95
+ for (var i = 0; i < responses.length; i++) {
96
+ var responseElement = responses[i];
97
+
98
+ // only process nodes of type element.....
99
+ if (responseElement.nodeType != 1) continue;
100
+
101
+ var id = responseElement.getAttribute('id');
102
+
103
+ var handler = messageHandlers[id];
104
+
105
+ if (logging && handler == null) {
106
+ adapter.log('No handler found to match message with id = ' + id);
107
+ continue;
108
+ }
109
+
110
+ // Loop thru and handle each <message>
111
+ for (var j = 0; j < responseElement.childNodes.length; j++) {
112
+ handler(responseElement.childNodes[j]);
113
+ }
114
+ }
115
+ }
116
+ };
117
+
118
+ var errorHandler = function(xhr, status, ex) {
119
+ connectStatusHandler(false);
120
+ if (logging) adapter.log('Error occurred in ajax call. HTTP result: ' +
121
+ xhr.status + ', status: ' + status);
122
+ }
123
+
124
+ var pollErrorHandler = function(xhr, status, ex) {
125
+ connectStatusHandler(false);
126
+ if (status === 'error' && xhr.status === 0) {
127
+ if (logging) adapter.log('Server connection dropped.');
128
+ setTimeout(function() { sendPoll(); }, pollErrorDelay);
129
+ return;
130
+ }
131
+ if (logging) adapter.log('Error occurred in poll. HTTP result: ' +
132
+ xhr.status + ', status: ' + status);
133
+ setTimeout(function() { sendPoll(); }, pollErrorDelay);
134
+ }
135
+
136
+ var pollHandler = function(data) {
137
+ try {
138
+ messageHandler(data);
139
+ } catch(e) {
140
+ if (logging) adapter.log('Exception in the poll handler: ' + data, e);
141
+ throw(e);
142
+ } finally {
143
+ setTimeout(sendPoll, pollDelay);
144
+ }
145
+ };
146
+
147
+ var initHandler = function(data) {
148
+ sessionInitialized = true;
149
+ if(sessionInitializedCallback) {
150
+ sessionInitializedCallback();
151
+ }
152
+ sendPoll();
153
+ }
154
+
155
+ var sendPoll = function() {
156
+ // Workaround IE6 bug where it caches the response
157
+ // Generate a unique query string with date and random
158
+ var now = new Date();
159
+ var timeoutArg = sessionInitialized ? timeout : 0.001;
160
+ var data = 'timeout=' + timeoutArg * 1000
161
+ + '&d=' + now.getTime()
162
+ + '&r=' + Math.random();
163
+ var successCallback = sessionInitialized ? pollHandler : initHandler;
164
+
165
+ var options = { method: 'get',
166
+ data: addClientId( data ),
167
+ success: successCallback,
168
+ error: pollErrorHandler};
169
+ adapter.ajax(uri, options);
170
+ };
171
+
172
+ var sendJmsMessage = function(destination, message, type, headers) {
173
+ var message = {
174
+ destination: destination,
175
+ message: message,
176
+ messageType: type
177
+ };
178
+ // Add message to outbound queue
179
+ if (batchInProgress) {
180
+ messageQueue[messageQueue.length] = {message:message, headers:headers};
181
+ } else {
182
+ org.activemq.Amq.startBatch();
183
+ adapter.ajax(uri, { method: 'post',
184
+ data: addClientId( buildParams( [message] ) ),
185
+ error: errorHandler,
186
+ headers: headers,
187
+ success: org.activemq.Amq.endBatch});
188
+ }
189
+ };
190
+
191
+ var buildParams = function(msgs) {
192
+ var s = [];
193
+ for (var i = 0, c = msgs.length; i < c; i++) {
194
+ if (i != 0) s[s.length] = '&';
195
+ s[s.length] = ((i == 0) ? 'destination' : 'd' + i);
196
+ s[s.length] = '=';
197
+ s[s.length] = msgs[i].destination;
198
+ s[s.length] = ((i == 0) ? '&message' : '&m' + i);
199
+ s[s.length] = '=';
200
+ s[s.length] = msgs[i].message;
201
+ s[s.length] = ((i == 0) ? '&type' : '&t' + i);
202
+ s[s.length] = '=';
203
+ s[s.length] = msgs[i].messageType;
204
+ }
205
+ return s.join('');
206
+ }
207
+
208
+ // add clientId to data if it exists, before passing data to ajax connection adapter.
209
+ var addClientId = function( data ) {
210
+ var output = data || '';
211
+ if( clientId ) {
212
+ if( output.length > 0 ) {
213
+ output += '&';
214
+ }
215
+ output += 'clientId='+clientId;
216
+ }
217
+ return output;
218
+ }
219
+
220
+ return {
221
+ // optional clientId can be supplied to allow multiple clients (browser windows) within the same session.
222
+ init : function(options) {
223
+ connectStatusHandler = options.connectStatusHandler || function(connected){};
224
+ uri = options.uri || '/amq';
225
+ pollDelay = typeof options.pollDelay == 'number' ? options.pollDelay : 0;
226
+ timeout = typeof options.timeout == 'number' ? options.timeout : 25;
227
+ logging = options.logging;
228
+ sessionInitializedCallback = options.sessionInitializedCallback
229
+ clientId = options.clientId;
230
+ adapter.init(options);
231
+ sendPoll();
232
+
233
+ },
234
+
235
+ startBatch : function() {
236
+ batchInProgress = true;
237
+ },
238
+
239
+ endBatch : function() {
240
+ if (messageQueue.length > 0) {
241
+ var messagesToSend = [];
242
+ var messagesToQueue = [];
243
+ var outgoingHeaders = null;
244
+
245
+ // we need to ensure that messages which set headers are sent by themselves.
246
+ // if 2 'listen' messages were sent together, and a 'selector' header were added to one of them,
247
+ // AMQ would add the selector to both 'listen' commands.
248
+ for(i=0;i<messageQueue.length;i++) {
249
+ // a message with headers should always be sent by itself. if other messages have been added, send this one later.
250
+ if ( messageQueue[ i ].headers && messagesToSend.length == 0 ) {
251
+ messagesToSend[ messagesToSend.length ] = messageQueue[ i ].message;
252
+ outgoingHeaders = messageQueue[ i ].headers;
253
+ } else if ( ! messageQueue[ i ].headers && ! outgoingHeaders ) {
254
+ messagesToSend[ messagesToSend.length ] = messageQueue[ i ].message;
255
+ } else {
256
+ messagesToQueue[ messagesToQueue.length ] = messageQueue[ i ];
257
+ }
258
+ }
259
+ var body = buildParams(messagesToSend);
260
+ messageQueue = messagesToQueue;
261
+ org.activemq.Amq.startBatch();
262
+ adapter.ajax(uri, {
263
+ method: 'post',
264
+ headers: outgoingHeaders,
265
+ data: addClientId( body ),
266
+ success: org.activemq.Amq.endBatch,
267
+ error: errorHandler});
268
+ } else {
269
+ batchInProgress = false;
270
+ }
271
+ },
272
+
273
+ // Send a JMS message to a destination (eg topic://MY.TOPIC). Message
274
+ // should be xml or encoded xml content.
275
+ sendMessage : function(destination, message) {
276
+ sendJmsMessage(destination, message, 'send');
277
+ },
278
+
279
+ // Listen on a channel or topic.
280
+ // handler must be a function taking a message argument
281
+ //
282
+ // Supported options:
283
+ // selector: If supplied, it should be a SQL92 string like "property-name='value'"
284
+ // http://activemq.apache.org/selectors.html
285
+ //
286
+ // Example: addListener( 'handler', 'topic://test-topic', function(msg) { return msg; }, { selector: "property-name='property-value'" } )
287
+ addListener : function(id, destination, handler, options) {
288
+ messageHandlers[id] = handler;
289
+ var headers = options && options.selector ? {selector:options.selector} : null;
290
+ sendJmsMessage(destination, id, 'listen', headers);
291
+ },
292
+
293
+ // remove Listener from channel or topic.
294
+ removeListener : function(id, destination) {
295
+ messageHandlers[id] = null;
296
+ sendJmsMessage(destination, id, 'unlisten');
297
+ },
298
+
299
+ // for unit testing
300
+ getMessageQueue: function() {
301
+ return messageQueue;
302
+ },
303
+ testPollHandler: function( data ) {
304
+ return pollHandler( data );
305
+ }
306
+ };
307
+ }();