Permalink
Browse files

requested ported commit

  • Loading branch information...
0 parents commit fc06d73895b4920eb31527fcd8f1a72619ebf74c @jfclere jfclere committed Aug 5, 2009
Showing with 36,298 additions and 0 deletions.
  1. +9 −0 .classpath
  2. +23 −0 .project
  3. +104 −0 JBossORG-EULA.txt
  4. +33 −0 README.txt
  5. +91 −0 build-demo.xml
  6. +51 −0 build-jbossweb.xml
  7. +443 −0 build-test.xml
  8. +10 −0 docs/README
  9. +165 −0 lgpl.txt
  10. +84 −0 local.properties
  11. 0 native/advertise/.deps
  12. +23 −0 native/advertise/Makefile.in
  13. +17 −0 native/advertise/README
  14. +12 −0 native/advertise/buildconf
  15. +24 −0 native/advertise/configure.in
  16. +702 −0 native/advertise/mod_advertise.c
  17. +146 −0 native/advertise/mod_advertise.h
  18. +154 −0 native/include/balancer.h
  19. +156 −0 native/include/context.h
  20. +149 −0 native/include/host.h
  21. +51 −0 native/include/mod_clustersize.h
  22. +48 −0 native/include/mod_proxy_cluster.h
  23. +217 −0 native/include/node.h
  24. +156 −0 native/include/sessionid.h
  25. +163 −0 native/include/slotmem.h
  26. 0 native/mod_manager/.deps
  27. +23 −0 native/mod_manager/Makefile.in
  28. +228 −0 native/mod_manager/balancer.c
  29. +12 −0 native/mod_manager/buildconf
  30. +24 −0 native/mod_manager/configure.in
  31. +229 −0 native/mod_manager/context.c
  32. +226 −0 native/mod_manager/host.c
  33. +1,941 −0 native/mod_manager/mod_manager.c
  34. +281 −0 native/mod_manager/node.c
  35. +226 −0 native/mod_manager/sessionid.c
  36. 0 native/mod_proxy_cluster/.deps
  37. +34 −0 native/mod_proxy_cluster/Makefile.in
  38. +11 −0 native/mod_proxy_cluster/buildconf
  39. +28 −0 native/mod_proxy_cluster/config.m4.patch
  40. +24 −0 native/mod_proxy_cluster/configure.in
  41. +49 −0 native/mod_proxy_cluster/mod_proxy_ajp.patch
  42. +2,066 −0 native/mod_proxy_cluster/mod_proxy_cluster.c
  43. 0 native/mod_slotmem/.deps
  44. +23 −0 native/mod_slotmem/Makefile.in
  45. +12 −0 native/mod_slotmem/buildconf
  46. +24 −0 native/mod_slotmem/configure.in
  47. +108 −0 native/mod_slotmem/mod_sharedmem.c
  48. +549 −0 native/mod_slotmem/sharedmem_util.c
  49. +20 −0 native/mod_slotmem/sharedmem_util.h
  50. +406 −0 pom.xml
  51. +30 −0 src/assembly/bin.xml
  52. +18 −0 src/assembly/sar.xml
  53. +31 −0 src/demo/java/org/jboss/modcluster/demo/Constants.java
  54. +146 −0 src/demo/java/org/jboss/modcluster/demo/client/ChartManager.java
  55. +1,013 −0 src/demo/java/org/jboss/modcluster/demo/client/ModClusterDemo.java
  56. +436 −0 src/demo/java/org/jboss/modcluster/demo/client/RequestDriver.java
  57. +69 −0 src/demo/java/org/jboss/modcluster/demo/client/load/ServerLoadParam.java
  58. +148 −0 src/demo/java/org/jboss/modcluster/demo/client/load/ServerLoadServlets.java
  59. +70 −0 src/demo/java/org/jboss/modcluster/demo/servlet/ActiveSessionsLoadServlet.java
  60. +112 −0 src/demo/java/org/jboss/modcluster/demo/servlet/BusyConnectorsLoadServlet.java
  61. +108 −0 src/demo/java/org/jboss/modcluster/demo/servlet/ConnectionPoolLoadServlet.java
  62. +78 −0 src/demo/java/org/jboss/modcluster/demo/servlet/HeapMemoryLoadServlet.java
  63. +137 −0 src/demo/java/org/jboss/modcluster/demo/servlet/LoadServlet.java
  64. +83 −0 src/demo/java/org/jboss/modcluster/demo/servlet/ReceiveTrafficLoadServlet.java
  65. +98 −0 src/demo/java/org/jboss/modcluster/demo/servlet/RecordServlet.java
  66. +57 −0 src/demo/java/org/jboss/modcluster/demo/servlet/RequestCountLoadServlet.java
  67. +95 −0 src/demo/java/org/jboss/modcluster/demo/servlet/SendTrafficLoadServlet.java
  68. +67 −0 src/demo/java/org/jboss/modcluster/demo/servlet/SystemLoadServlet.java
  69. +72 −0 src/demo/java/org/jboss/modcluster/demo/servlet/ThreadCountLoadServlet.java
  70. +12 −0 src/demo/resources/run-demo.bat
  71. +16 −0 src/demo/resources/run-demo.sh
  72. +144 −0 src/demo/resources/web.xml
  73. +181 −0 src/main/java/org/jboss/modcluster/AbstractModClusterService.java
  74. +360 −0 src/main/java/org/jboss/modcluster/CatalinaEventHandler.java
  75. +203 −0 src/main/java/org/jboss/modcluster/CatalinaEventHandlerAdapter.java
  76. +27 −0 src/main/java/org/jboss/modcluster/Constants.java
  77. +48 −0 src/main/java/org/jboss/modcluster/ContainerEventHandler.java
  78. +40 −0 src/main/java/org/jboss/modcluster/LocalStrings.properties
  79. +232 −0 src/main/java/org/jboss/modcluster/ModClusterListener.java
  80. +60 −0 src/main/java/org/jboss/modcluster/ModClusterService.java
  81. +96 −0 src/main/java/org/jboss/modcluster/ModClusterServiceMBean.java
  82. +31 −0 src/main/java/org/jboss/modcluster/ServerProvider.java
  83. +333 −0 src/main/java/org/jboss/modcluster/Utils.java
  84. +58 −0 src/main/java/org/jboss/modcluster/advertise/AdvertiseListener.java
  85. +34 −0 src/main/java/org/jboss/modcluster/advertise/AdvertiseListenerFactory.java
  86. +36 −0 src/main/java/org/jboss/modcluster/advertise/MulticastSocketFactory.java
  87. +63 −0 src/main/java/org/jboss/modcluster/advertise/impl/AdvertiseEventType.java
  88. +43 −0 src/main/java/org/jboss/modcluster/advertise/impl/AdvertiseListenerFactoryImpl.java
  89. +549 −0 src/main/java/org/jboss/modcluster/advertise/impl/AdvertiseListenerImpl.java
  90. +123 −0 src/main/java/org/jboss/modcluster/advertise/impl/AdvertisedServer.java
  91. +115 −0 src/main/java/org/jboss/modcluster/advertise/impl/MulticastSocketFactoryImpl.java
  92. +55 −0 src/main/java/org/jboss/modcluster/config/BalancerConfiguration.java
  93. +55 −0 src/main/java/org/jboss/modcluster/config/LoadConfiguration.java
  94. +75 −0 src/main/java/org/jboss/modcluster/config/MCMPHandlerConfiguration.java
  95. +192 −0 src/main/java/org/jboss/modcluster/config/ModClusterConfig.java
  96. +67 −0 src/main/java/org/jboss/modcluster/config/NodeConfiguration.java
  97. +108 −0 src/main/java/org/jboss/modcluster/config/SSLConfiguration.java
  98. +34 −0 src/main/java/org/jboss/modcluster/config/ha/HAConfiguration.java
  99. +35 −0 src/main/java/org/jboss/modcluster/config/ha/HAModClusterConfig.java
  100. +52 −0 src/main/java/org/jboss/modcluster/ha/ClusteredMCMPHandler.java
  101. +582 −0 src/main/java/org/jboss/modcluster/ha/ClusteredMCMPHandlerImpl.java
  102. +972 −0 src/main/java/org/jboss/modcluster/ha/HAModClusterService.java
  103. +38 −0 src/main/java/org/jboss/modcluster/ha/HAModClusterServiceMBean.java
  104. +38 −0 src/main/java/org/jboss/modcluster/ha/HASingletonAwareResetRequestSource.java
  105. +152 −0 src/main/java/org/jboss/modcluster/ha/HASingletonAwareResetRequestSourceImpl.java
  106. +188 −0 src/main/java/org/jboss/modcluster/ha/ModClusterServiceDRMEntry.java
  107. +50 −0 src/main/java/org/jboss/modcluster/ha/rpc/BooleanGroupRpcResponse.java
  108. +49 −0 src/main/java/org/jboss/modcluster/ha/rpc/ClusteredMCMPHandlerRpcHandler.java
  109. +50 −0 src/main/java/org/jboss/modcluster/ha/rpc/GroupRpcResponse.java
  110. +53 −0 src/main/java/org/jboss/modcluster/ha/rpc/GroupRpcResponseFilter.java
  111. +53 −0 src/main/java/org/jboss/modcluster/ha/rpc/InetAddressGroupRpcResponse.java
  112. +51 −0 src/main/java/org/jboss/modcluster/ha/rpc/IntegerGroupRpcResponse.java
  113. +93 −0 src/main/java/org/jboss/modcluster/ha/rpc/MCMPServerDiscoveryEvent.java
  114. +41 −0 src/main/java/org/jboss/modcluster/ha/rpc/ModClusterServiceRpcHandler.java
  115. +81 −0 src/main/java/org/jboss/modcluster/ha/rpc/ModClusterServiceStateGroupRpcResponse.java
  116. +66 −0 src/main/java/org/jboss/modcluster/ha/rpc/PeerMCMPDiscoveryStatus.java
  117. +54 −0 src/main/java/org/jboss/modcluster/ha/rpc/ResetRequestGroupRpcResponse.java
  118. +37 −0 src/main/java/org/jboss/modcluster/ha/rpc/ResetRequestSourceRpcHandler.java
  119. +51 −0 src/main/java/org/jboss/modcluster/ha/rpc/StringGroupRpcResponse.java
  120. +60 −0 src/main/java/org/jboss/modcluster/ha/rpc/ThrowableGroupRpcResponse.java
  121. +34 −0 src/main/java/org/jboss/modcluster/load/LoadBalanceFactorProvider.java
  122. +31 −0 src/main/java/org/jboss/modcluster/load/LoadBalanceFactorProviderFactory.java
  123. +236 −0 src/main/java/org/jboss/modcluster/load/impl/DynamicLoadBalanceFactorProvider.java
  124. +63 −0 src/main/java/org/jboss/modcluster/load/impl/DynamicLoadBalanceFactorProviderMBean.java
  125. +53 −0 src/main/java/org/jboss/modcluster/load/impl/SimpleLoadBalanceFactorProvider.java
  126. +33 −0 src/main/java/org/jboss/modcluster/load/impl/SimpleLoadBalanceFactorProviderMBean.java
  127. +31 −0 src/main/java/org/jboss/modcluster/load/metric/LoadContext.java
  128. +46 −0 src/main/java/org/jboss/modcluster/load/metric/LoadMetric.java
  129. +47 −0 src/main/java/org/jboss/modcluster/load/metric/LoadMetricMBean.java
  130. +35 −0 src/main/java/org/jboss/modcluster/load/metric/LoadMetricSource.java
  131. +78 −0 src/main/java/org/jboss/modcluster/load/metric/impl/AbstractLoadMetric.java
  132. +51 −0 src/main/java/org/jboss/modcluster/load/metric/impl/ActiveSessionsLoadMetric.java
  133. +74 −0 src/main/java/org/jboss/modcluster/load/metric/impl/AverageSystemLoadMetric.java
  134. +52 −0 src/main/java/org/jboss/modcluster/load/metric/impl/BusyConnectorsLoadMetric.java
  135. +84 −0 src/main/java/org/jboss/modcluster/load/metric/impl/ConnectionPoolLoadMetricSource.java
  136. +52 −0 src/main/java/org/jboss/modcluster/load/metric/impl/ConnectionPoolUsageLoadMetric.java
  137. +48 −0 src/main/java/org/jboss/modcluster/load/metric/impl/DeterministicLoadState.java
  138. +60 −0 src/main/java/org/jboss/modcluster/load/metric/impl/HeapMemoryUsageLoadMetric.java
  139. +60 −0 src/main/java/org/jboss/modcluster/load/metric/impl/MBeanAttributeLoadMetric.java
  140. +73 −0 src/main/java/org/jboss/modcluster/load/metric/impl/MBeanAttributeRatioLoadMetric.java
  141. +67 −0 src/main/java/org/jboss/modcluster/load/metric/impl/MBeanLoadContext.java
  142. +58 −0 src/main/java/org/jboss/modcluster/load/metric/impl/MBeanLoadMetricSource.java
  143. +107 −0 src/main/java/org/jboss/modcluster/load/metric/impl/MBeanQueryLoadContext.java
  144. +62 −0 src/main/java/org/jboss/modcluster/load/metric/impl/MBeanQueryLoadMetricSource.java
  145. +59 −0 src/main/java/org/jboss/modcluster/load/metric/impl/OperatingSystemLoadMetricSource.java
  146. +63 −0 src/main/java/org/jboss/modcluster/load/metric/impl/ReceiveTrafficLoadMetric.java
  147. +64 −0 src/main/java/org/jboss/modcluster/load/metric/impl/RequestCountLoadMetric.java
  148. +87 −0 src/main/java/org/jboss/modcluster/load/metric/impl/RequestProcessorLoadMetricSource.java
  149. +61 −0 src/main/java/org/jboss/modcluster/load/metric/impl/SelfSourcedLoadMetric.java
  150. +65 −0 src/main/java/org/jboss/modcluster/load/metric/impl/SendTrafficLoadMetric.java
  151. +87 −0 src/main/java/org/jboss/modcluster/load/metric/impl/SessionLoadMetricSource.java
  152. +48 −0 src/main/java/org/jboss/modcluster/load/metric/impl/SourcedLoadMetric.java
  153. +76 −0 src/main/java/org/jboss/modcluster/load/metric/impl/SystemMemoryUsageLoadMetric.java
  154. +87 −0 src/main/java/org/jboss/modcluster/load/metric/impl/ThreadPoolLoadMetricSource.java
  155. +138 −0 src/main/java/org/jboss/modcluster/mbeans-descriptors.xml
  156. +83 −0 src/main/java/org/jboss/modcluster/mcmp/AbstractMCMPHandler.java
  157. +192 −0 src/main/java/org/jboss/modcluster/mcmp/MCMPHandler.java
  158. +43 −0 src/main/java/org/jboss/modcluster/mcmp/MCMPRequest.java
  159. +60 −0 src/main/java/org/jboss/modcluster/mcmp/MCMPRequestFactory.java
  160. +66 −0 src/main/java/org/jboss/modcluster/mcmp/MCMPRequestType.java
  161. +43 −0 src/main/java/org/jboss/modcluster/mcmp/MCMPServer.java
  162. +41 −0 src/main/java/org/jboss/modcluster/mcmp/MCMPServerState.java
  163. +42 −0 src/main/java/org/jboss/modcluster/mcmp/MCMPURLEncoder.java
  164. +62 −0 src/main/java/org/jboss/modcluster/mcmp/ResetRequestSource.java
  165. +1,354 −0 src/main/java/org/jboss/modcluster/mcmp/impl/DefaultMCMPHandler.java
  166. +92 −0 src/main/java/org/jboss/modcluster/mcmp/impl/DefaultMCMPRequest.java
  167. +289 −0 src/main/java/org/jboss/modcluster/mcmp/impl/DefaultMCMPRequestFactory.java
  168. +151 −0 src/main/java/org/jboss/modcluster/mcmp/impl/JSSEKeyManager.java
  169. +454 −0 src/main/java/org/jboss/modcluster/mcmp/impl/JSSESocketFactory.java
  170. +99 −0 src/main/java/org/jboss/modcluster/mcmp/impl/MCMPJBURLEncoder.java
  171. +121 −0 src/main/java/org/jboss/modcluster/mcmp/impl/MCMPTCURLEncoder.java
  172. +200 −0 src/main/java/org/jboss/modcluster/mcmp/impl/ResetRequestSourceImpl.java
  173. +309 −0 src/main/resources/mod-cluster-jboss-beans.xml
  174. +787 −0 src/test/java/org/jboss/modcluster/DefaultJBossWebEventHandlerTestCase.java
  175. +270 −0 src/test/java/org/jboss/modcluster/JBossWebEventHandlerAdapterTestCase.java
  176. +236 −0 src/test/java/org/jboss/modcluster/ModClusterListenerTestCase.java
  177. +215 −0 src/test/java/org/jboss/modcluster/ModClusterServiceTestCase.java
  178. +146 −0 src/test/java/org/jboss/modcluster/advertise/AdvertiseListenerImplTestCase.java
  179. +132 −0 src/test/java/org/jboss/modcluster/advertise/MulticastSocketFactoryImplTestCase.java
  180. +777 −0 src/test/java/org/jboss/modcluster/ha/ClusteredMCMPHandlerTestCase.java
  181. +1,034 −0 src/test/java/org/jboss/modcluster/ha/HAModClusterServiceTestCase.java
  182. +246 −0 src/test/java/org/jboss/modcluster/ha/HASingletonAwareResetRequestSourceTestCase.java
  183. +154 −0 src/test/java/org/jboss/modcluster/load/DynamicLoadBalanceFactorProviderTestCase.java
  184. +49 −0 src/test/java/org/jboss/modcluster/load/SimpleLoadBalanceFactorProviderTestCase.java
  185. +38 −0 src/test/java/org/jboss/modcluster/load/metric/ActiveSessionsLoadMetricTestCase.java
  186. +88 −0 src/test/java/org/jboss/modcluster/load/metric/AverageSystemLoadMetricTestCase.java
  187. +38 −0 src/test/java/org/jboss/modcluster/load/metric/BusyConnectorsLoadMetricTestCase.java
  188. +45 −0 src/test/java/org/jboss/modcluster/load/metric/ConnectionPoolLoadMetricSourceTestCase.java
  189. +39 −0 src/test/java/org/jboss/modcluster/load/metric/ConnectionPoolUsageLoadMetricTestCase.java
  190. +68 −0 src/test/java/org/jboss/modcluster/load/metric/HeapMemoryUsageLoadMetricTestCase.java
  191. +103 −0 src/test/java/org/jboss/modcluster/load/metric/MBeanAttributeLoadMetricTestCase.java
  192. +108 −0 src/test/java/org/jboss/modcluster/load/metric/MBeanAttributeRatioLoadMetricTestCase.java
  193. +81 −0 src/test/java/org/jboss/modcluster/load/metric/MBeanLoadContextTestCase.java
  194. +72 −0 src/test/java/org/jboss/modcluster/load/metric/MBeanLoadMetricSourceTestCase.java
  195. +131 −0 src/test/java/org/jboss/modcluster/load/metric/MBeanQueryLoadContextTestCase.java
  196. +85 −0 src/test/java/org/jboss/modcluster/load/metric/MBeanQueryLoadMetricSourceTestCase.java
  197. +45 −0 src/test/java/org/jboss/modcluster/load/metric/OperatingSystemLoadMetricSourceTestCase.java
  198. +106 −0 src/test/java/org/jboss/modcluster/load/metric/ReceiveTrafficLoadMetricTestCase.java
  199. +105 −0 src/test/java/org/jboss/modcluster/load/metric/RequestCountLoadMetricTestCase.java
  200. +45 −0 src/test/java/org/jboss/modcluster/load/metric/RequestProcessorLoadMetricSourceTestCase.java
  201. +104 −0 src/test/java/org/jboss/modcluster/load/metric/SendTrafficLoadMetricTestCase.java
  202. +45 −0 src/test/java/org/jboss/modcluster/load/metric/SessionLoadMetricSourceTestCase.java
  203. +89 −0 src/test/java/org/jboss/modcluster/load/metric/SystemMemoryUsageLoadMetricTestCase.java
  204. +45 −0 src/test/java/org/jboss/modcluster/load/metric/ThreadPoolLoadMetricSourceTestCase.java
  205. +349 −0 src/test/java/org/jboss/modcluster/mcmp/DefaultMCMPRequestFactoryTestCase.java
  206. +120 −0 src/test/java/org/jboss/modcluster/mcmp/ResetRequestSourceTestCase.java
  207. +59 −0 src/test/java/org/jboss/modcluster/test/MBeanServerConnector.java
  208. +233 −0 src/test/java/org/jboss/modcluster/test/MockProxy.java
  209. +347 −0 src/test/java/org/jboss/modcluster/test/mcmp/MCMPTestCase.java
  210. +990 −0 src/test/resources/test-configs/mod-cluster-httpd/conf/mod-cluster-httpd.conf
  211. +32 −0 src/test/resources/test-configs/mod-cluster-jbossas/deploy/jbossweb.sar/META-INF/jboss-beans.xml
  212. +165 −0 src/test/resources/test-configs/mod-cluster-jbossas/deploy/jbossweb.sar/server.xml
  213. +15 −0 test-jars.xml
  214. +16 −0 test/java/.classpath
  215. +17 −0 test/java/.project
  216. +24 −0 test/java/Advertize.java
  217. +9 −0 test/java/CauseErrorMethod.java
  218. +47 −0 test/java/Clients/JBWEB-117/JBWEB-117.xml
  219. +26 −0 test/java/Clients/JBWEB-117/build.xml
  220. +2 −0 test/java/Clients/JBWEB-117/metainf/context.xml
  221. +92 −0 test/java/Clients/JBWEB-117/src/JBWEB_117.java
  222. +9 −0 test/java/ConfigMethod.java
  223. +9 −0 test/java/DisableMethod.java
  224. +9 −0 test/java/DumpMethod.java
  225. +9 −0 test/java/EnableMethod.java
  226. +9 −0 test/java/InfoMethod.java
  227. +28 −0 test/java/README.txt
  228. +9 −0 test/java/RemoveMethod.java
  229. +9 −0 test/java/StatusMethod.java
  230. +9 −0 test/java/StopMethod.java
  231. +109 −0 test/java/TestHttpClient.java
  232. +43 −0 test/java/TestHttpClient.sh
  233. +35 −0 test/java/apachectl.bat
  234. +44 −0 test/java/build.properties.default
  235. +309 −0 test/java/build.xml
  236. +24 −0 test/java/conf/web.xml
  237. +254 −0 test/java/installhttpd.sh
  238. +307 −0 test/java/org/jboss/mod_cluster/Client.java
  239. +149 −0 test/java/org/jboss/mod_cluster/ClientBasicAuthen.java
  240. +136 −0 test/java/org/jboss/mod_cluster/Domaintest.java
  241. +277 −0 test/java/org/jboss/mod_cluster/JBossWeb.java
  242. +248 −0 test/java/org/jboss/mod_cluster/Maintest.java
  243. +143 −0 test/java/org/jboss/mod_cluster/MyCount.java
  244. +98 −0 test/java/org/jboss/mod_cluster/NodeInfo.java
  245. +68 −0 test/java/org/jboss/mod_cluster/ServerThread.java
  246. +98 −0 test/java/org/jboss/mod_cluster/StartJBossWeb.java
  247. +165 −0 test/java/org/jboss/mod_cluster/TestAddDel.java
  248. +142 −0 test/java/org/jboss/mod_cluster/TestBase.java
  249. +157 −0 test/java/org/jboss/mod_cluster/TestFailover.java
  250. +54 −0 test/java/org/jboss/mod_cluster/TestJBWEB_117.java
  251. +180 −0 test/java/org/jboss/mod_cluster/TestStickyForce.java
  252. +161 −0 test/java/org/jboss/mod_cluster/TestStickyRemove.java
  253. +57 −0 test/java/org/jboss/mod_cluster/Test_Chunk_JBWEB_117.java
  254. +53 −0 test/java/org/jboss/mod_cluster/Test_Native_JBWEB_117.java
  255. +63 −0 test/native/Advertise.c
  256. +5 −0 test/native/Makefile
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" output="target/classes" path="src/main/java"/>
+ <classpathentry kind="src" output="target/demo/classes" path="src/demo/java"/>
+ <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+ <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>mod_cluster</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,104 @@
+LICENSE AGREEMENT
+JBOSS(r)
+
+This License Agreement governs the use of the Software Packages and any updates to the Software
+Packages, regardless of the delivery mechanism. Each Software Package is a collective work
+under U.S. Copyright Law. Subject to the following terms, Red Hat, Inc. ("Red Hat") grants to
+the user ("Client") a license to the applicable collective work(s) pursuant to the
+GNU Lesser General Public License v. 2.1 except for the following Software Packages:
+(a) JBoss Portal Forums and JBoss Transactions JTS, each of which is licensed pursuant to the
+GNU General Public License v.2;
+
+(b) JBoss Rules, which is licensed pursuant to the Apache License v.2.0;
+
+(c) an optional download for JBoss Cache for the Berkeley DB for Java database, which is licensed under the
+(open source) Sleepycat License (if Client does not wish to use the open source version of this database,
+it may purchase a license from Sleepycat Software);
+
+and (d) the BPEL extension for JBoss jBPM, which is licensed under the Common Public License v.1,
+and, pursuant to the OASIS BPEL4WS standard, requires parties wishing to redistribute to enter various
+royalty-free patent licenses.
+
+Each of the foregoing licenses is available at http://www.opensource.org/licenses/index.php.
+
+1. The Software. "Software Packages" refer to the various software modules that are created and made available
+for distribution by the JBoss.org open source community at http://www.jboss.org. Each of the Software Packages
+may be comprised of hundreds of software components. The end user license agreement for each component is located in
+the component's source code. With the exception of certain image files identified in Section 2 below,
+the license terms for the components permit Client to copy, modify, and redistribute the component,
+in both source code and binary code forms. This agreement does not limit Client's rights under,
+or grant Client rights that supersede, the license terms of any particular component.
+
+2. Intellectual Property Rights. The Software Packages are owned by Red Hat and others and are protected under copyright
+and other laws. Title to the Software Packages and any component, or to any copy, modification, or merged portion shall
+remain with the aforementioned, subject to the applicable license. The "JBoss" trademark, "Red Hat" trademark, the
+individual Software Package trademarks, and the "Shadowman" logo are registered trademarks of Red Hat and its affiliates
+in the U.S. and other countries. This agreement permits Client to distribute unmodified copies of the Software Packages
+using the Red Hat trademarks that Red Hat has inserted in the Software Packages on the condition that Client follows Red Hat's
+trademark guidelines for those trademarks located at http://www.redhat.com/about/corporate/trademark/. Client must abide by
+these trademark guidelines when distributing the Software Packages, regardless of whether the Software Packages have been modified.
+If Client modifies the Software Packages, then Client must replace all Red Hat trademarks and logos identified at
+http://www.jboss.com/company/logos unless a separate agreement with Red Hat is executed or other permission granted.
+Merely deleting the files containing the Red Hat trademarks may corrupt the Software Packages.
+
+3. Limited Warranty. Except as specifically stated in this Paragraph 3 or a license for a particular
+component, to the maximum extent permitted under applicable law, the Software Packages and the
+components are provided and licensed "as is" without warranty of any kind, expressed or implied,
+including the implied warranties of merchantability, non-infringement or fitness for a particular purpose.
+Red Hat warrants that the media on which Software Packages may be furnished will be free from defects in
+materials and manufacture under normal use for a period of 30 days from the date of delivery to Client.
+Red Hat does not warrant that the functions contained in the Software Packages will meet Client's requirements
+or that the operation of the Software Packages will be entirely error free or appear precisely as described
+in the accompanying documentation. This warranty extends only to the party that purchases the Services
+pertaining to the Software Packages from Red Hat or a Red Hat authorized distributor.
+
+4. Limitation of Remedies and Liability. To the maximum extent permitted by applicable law, the remedies
+described below are accepted by Client as its only remedies. Red Hat's entire liability, and Client's
+exclusive remedies, shall be: If the Software media is defective, Client may return it within 30 days of
+delivery along with a copy of Client's payment receipt and Red Hat, at its option, will replace it or
+refund the money paid by Client for the Software. To the maximum extent permitted by applicable law,
+Red Hat or any Red Hat authorized dealer will not be liable to Client for any incidental or consequential
+damages, including lost profits or lost savings arising out of the use or inability to use the Software,
+even if Red Hat or such dealer has been advised of the possibility of such damages. In no event shall
+Red Hat's liability under this agreement exceed the amount that Client paid to Red Hat under this
+Agreement during the twelve months preceding the action.
+
+5. Export Control. As required by U.S. law, Client represents and warrants that it:
+(a) understands that the Software Packages are subject to export controls under the
+U.S. Commerce Department's Export Administration Regulations ("EAR");
+
+(b) is not located in a prohibited destination country under the EAR or U.S. sanctions regulations
+(currently Cuba, Iran, Iraq, Libya, North Korea, Sudan and Syria);
+
+(c) will not export, re-export, or transfer the Software Packages to any prohibited destination, entity,
+or individual without the necessary export license(s) or authorizations(s) from the U.S. Government;
+
+(d) will not use or transfer the Software Packages for use in any sensitive nuclear, chemical or
+biological weapons, or missile technology end-uses unless authorized by the U.S. Government by
+regulation or specific license;
+
+(e) understands and agrees that if it is in the United States and exports or transfers the Software
+Packages to eligible end users, it will, as required by EAR Section 740.17(e), submit semi-annual
+reports to the Commerce Department's Bureau of Industry & Security (BIS), which include the name and
+address (including country) of each transferee;
+
+and (f) understands that countries other than the United States may restrict the import, use, or
+export of encryption products and that it shall be solely responsible for compliance with any such
+import, use, or export restrictions.
+
+6. Third Party Programs. Red Hat may distribute third party software programs with the Software Packages
+that are not part of the Software Packages and which Client must install separately. These third party
+programs are subject to their own license terms. The license terms either accompany the programs or
+can be viewed at http://www.redhat.com/licenses/. If Client does not agree to abide by the applicable
+license terms for such programs, then Client may not install them. If Client wishes to install the programs
+on more than one system or transfer the programs to another party, then Client must contact the licensor
+of the programs.
+
+7. General. If any provision of this agreement is held to be unenforceable, that shall not affect the
+enforceability of the remaining provisions. This License Agreement shall be governed by the laws of the
+State of North Carolina and of the United States, without regard to any conflict of laws provisions,
+except that the United Nations Convention on the International Sale of Goods shall not apply.
+
+Copyright 2006-2007 Red Hat, Inc. All rights reserved.
+"JBoss" and the JBoss logo are registered trademarks of Red Hat, Inc.
+All other trademarks are the property of their respective owners.
@@ -0,0 +1,33 @@
+mod-cluster
+===========
+
+Instructions
+------------
+
+JBoss AS
+
+1. Copy the exploded sar "mod-cluster.sar" directory into the deploy directory
+ of a JBoss server profile.
+2. Modify the server.xml within jbossweb.sar and add a clustered mode engine
+ listener as documented here:
+ http://www.jboss.org/mod_cluster/java/config.html
+
+
+JBoss Web
+
+1. Copy the jar file contained in the mod-cluster.sar directory into the lib
+ directory of your JBoss Web installation.
+2. Copy the following dependency jars into the same lib directory:
+
+3. Modify the server.xml within the conf directory and add a non-cluster mode
+ engine listener as documented here:
+ http://www.jboss.org/mod_cluster/java/config.html
+
+
+Additional notes for Tomcat
+
+1.
+
+
+This software is distributed under the terms of the FSF Lesser Gnu
+Public License (see lgpl.txt).
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--======================================================================-->
+<!-- -->
+<!-- JBoss, the OpenSource J2EE webOS -->
+<!-- -->
+<!-- Distributable under LGPL license. -->
+<!-- See terms of license at http://www.gnu.org. -->
+<!-- -->
+<!--======================================================================-->
+<project default="main" name="JBoss/mod_cluster Demo" xmlns:server="http://jboss.org/ns/test/ant/server">
+
+ <property environment="env"></property>
+
+ <!-- TODO: consolidate common properties with build-test.xml -->
+ <property name="module.output" location="${basedir}/target"/>
+ <property name="module.src" location="${basedir}/src"/>
+
+ <property name="demo.src" location="${module.src}/demo"/>
+ <property name="demo.src.java" location="${demo.src}/java"/>
+ <property name="demo.src.resources" location="${demo.src}/resources"/>
+ <property name="demo.output" location="${module.output}/demo"/>
+ <property name="demo.output.classes" location="${demo.output}/classes"/>
+ <property name="demo.output.client" location="${demo.output}/client"/>
+ <property name="demo.output.server" location="${demo.output}/server"/>
+ <property name="demo.client.jar" value="mod-cluster-demo.jar"></property>
+ <property name="demo.server.war" value="load-demo.war"></property>
+ <property name="demo.dependencies.lib" location="${module.output}/dependencies/lib"></property>
+
+ <path id="demo">
+ <fileset dir="${demo.dependencies.lib}" includes="*.jar"/>
+ </path>
+
+ <target name="main" depends="init, compile-demo">
+ <jar destfile="${demo.output.client}/lib/${demo.client.jar}">
+ <fileset dir="${demo.output.classes}" excludes="**/server/**"></fileset>
+ <manifest>
+ <attribute name="Main-Class" value="org.jboss.modcluster.demo.client.ModClusterDemo"/>
+ </manifest>
+ </jar>
+ <copy todir="${demo.output.client}">
+ <fileset dir="${demo.src.resources}">
+ <include name="run-demo.sh"/>
+ <include name="run-demo.bat"/>
+ </fileset>
+ </copy>
+ <copy todir="${demo.output.client}/lib">
+ <fileset dir="${demo.dependencies.lib}">
+ <include name="jcommon.jar"/>
+ <include name="jfreechart.jar"/>
+ </fileset>
+ </copy>
+ <war destfile="${demo.output.server}/${demo.server.war}" webxml="${demo.src.resources}/web.xml">
+ <classes dir="${demo.output.classes}" excludes="**/client/**"></classes>
+ <lib dir="${demo.dependencies.lib}">
+ <include name="commons-httpclient.jar"/>
+ <include name="commons-codec.jar"/>
+ </lib>
+ </war>
+
+ <fixcrlf srcdir="${demo.output.client}"
+ eol="lf" eof="remove"
+ includes="**/*.sh"/>
+
+ <fixcrlf srcdir="${demo.output.client}"
+ eol="crlf" eof="remove"
+ includes="**/*.bat, **/*.cmd"/>
+
+ <chmod perm="+x">
+ <fileset dir="${demo.output.client}">
+ <include name="**/*.sh"/>
+ </fileset>
+ </chmod>
+ </target>
+
+ <target name="init">
+ <mkdir dir="${demo.output}"/>
+ <mkdir dir="${demo.output.classes}"></mkdir>
+ <mkdir dir="${demo.output.client}"/>
+ <mkdir dir="${demo.output.client}/lib"/>
+ <mkdir dir="${demo.output.server}"/>
+ </target>
+
+ <target name="compile-demo">
+ <!-- Why doesn't this work without fork? -->
+ <javac destdir="${demo.output.classes}" srcdir="${demo.src.java}" classpathref="demo" fork="true"></javac>
+ </target>
+
+ <target name="run-demo" depends="main">
+ <java jar="${demo.output.client}/${demo.client.jar}" classpathref="demo" fork="true"></java>
+ </target>
+</project>
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+<!--
+ * Copyright(c) 2008 Red Hat Middleware, LLC,
+ * and individual contributors as indicated by the @authors tag.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library in the file COPYING.LIB;
+ * if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ *
+ * @author Brian Stansberry
+ * @version $Revision$
+-->
+<project name="jbossweb" default="all" basedir=".">
+
+ <!-- See "build.properties.sample" in the top level directory for all -->
+ <!-- property values you must customize for successful building!!! -->
+ <property file="${user.home}/build.properties"/>
+ <property file="build.properties"/>
+
+ <property file="build.properties.default"/>
+
+ <property name="target.dir" value="${basedir}/target"/>
+ <property name="out.dir" value="${target.dir}/JBossWeb-Tomcat/"/>
+ <property name="out.lib" value="${out.dir}/lib"/>
+ <property name="dependencies.dir" value="${target.dir}/dependencies/lib/"/>
+
+
+ <target name="all">
+ <mkdir dir="${out.lib}"/>
+ <copy todir="${out.lib}">
+ <fileset dir="${dependencies.dir}">
+ <include name="jboss-logging-spi.jar"/>
+ <include name="jboss-logging-jdk.jar"/>
+ </fileset>
+ </copy>
+ <copy tofile="${out.lib}/mod-cluster.jar" file="${target.dir}/${mod-cluster.jar.name}.jar"/>
+ </target>
+</project>
Oops, something went wrong.

0 comments on commit fc06d73

Please sign in to comment.