PageRenderTime 54ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/jboss-as-7.1.1.Final/testsuite/integration/basic/src/test/resources/legacy-configs/standalone/7-0-1-ha.xml

#
XML | 379 lines | 316 code | 12 blank | 51 comment | 0 complexity | c069372f3c6430ea0928f26ec7c9ff9a MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
  1. <!--
  2. ~ JBoss, Home of Professional Open Source.
  3. ~ Copyright 2011, Red Hat, Inc., and individual contributors
  4. ~ as indicated by the @author tags. See the copyright.txt file in the
  5. ~ distribution for a full listing of individual contributors.
  6. ~
  7. ~ This is free software; you can redistribute it and/or modify it
  8. ~ under the terms of the GNU Lesser General Public License as
  9. ~ published by the Free Software Foundation; either version 2.1 of
  10. ~ the License, or (at your option) any later version.
  11. ~
  12. ~ This software is distributed in the hope that it will be useful,
  13. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. ~ Lesser General Public License for more details.
  16. ~
  17. ~ You should have received a copy of the GNU Lesser General Public
  18. ~ License along with this software; if not, write to the Free
  19. ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20. ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21. -->
  22. <server xmlns="urn:jboss:domain:1.0">
  23. <extensions>
  24. <extension module="org.jboss.as.clustering.infinispan"/>
  25. <extension module="org.jboss.as.clustering.jgroups"/>
  26. <extension module="org.jboss.as.connector"/>
  27. <extension module="org.jboss.as.deployment-scanner"/>
  28. <extension module="org.jboss.as.ee"/>
  29. <extension module="org.jboss.as.ejb3"/>
  30. <extension module="org.jboss.as.jaxrs"/>
  31. <extension module="org.jboss.as.jmx"/>
  32. <extension module="org.jboss.as.jpa"/>
  33. <extension module="org.jboss.as.logging"/>
  34. <extension module="org.jboss.as.modcluster"/>
  35. <extension module="org.jboss.as.naming"/>
  36. <extension module="org.jboss.as.osgi"/>
  37. <extension module="org.jboss.as.remoting"/>
  38. <extension module="org.jboss.as.sar"/>
  39. <extension module="org.jboss.as.security"/>
  40. <extension module="org.jboss.as.threads"/>
  41. <extension module="org.jboss.as.transactions"/>
  42. <extension module="org.jboss.as.web" />
  43. <extension module="org.jboss.as.weld" />
  44. </extensions>
  45. <management>
  46. <security-realms>
  47. <security-realm name="PropertiesMgmtSecurityRealm">
  48. <authentication>
  49. <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir" />
  50. </authentication>
  51. </security-realm>
  52. </security-realms>
  53. <management-interfaces>
  54. <native-interface interface="management" port="9999" />
  55. <http-interface interface="management" port="9990"/>
  56. </management-interfaces>
  57. </management>
  58. <profile>
  59. <subsystem xmlns="urn:jboss:domain:logging:1.1">
  60. <console-handler name="CONSOLE">
  61. <level name="INFO"/>
  62. <formatter>
  63. <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
  64. </formatter>
  65. </console-handler>
  66. <periodic-rotating-file-handler name="FILE">
  67. <level name="INFO"/>
  68. <formatter>
  69. <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
  70. </formatter>
  71. <file relative-to="jboss.server.log.dir" path="server.log"/>
  72. <suffix value=".yyyy-MM-dd"/>
  73. </periodic-rotating-file-handler>
  74. <logger category="com.arjuna">
  75. <level name="WARN"/>
  76. </logger>
  77. <logger category="org.apache.tomcat.util.modeler">
  78. <level name="WARN"/>
  79. </logger>
  80. <logger category="sun.rmi">
  81. <level name="WARN"/>
  82. </logger>
  83. <root-logger>
  84. <level name="INFO"/>
  85. <handlers>
  86. <handler name="CONSOLE"/>
  87. <handler name="FILE"/>
  88. </handlers>
  89. </root-logger>
  90. </subsystem>
  91. <subsystem xmlns="urn:jboss:domain:datasources:1.0">
  92. <datasources>
  93. <datasource jndi-name="java:jboss/datasources/ExampleDS" enabled="true" use-java-context="true" pool-name="H2DS">
  94. <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
  95. <driver>h2</driver>
  96. <pool></pool>
  97. <security>
  98. <user-name>sa</user-name>
  99. <password>sa</password>
  100. </security>
  101. </datasource>
  102. <drivers>
  103. <driver name="h2" module="com.h2database.h2">
  104. <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
  105. </driver>
  106. </drivers>
  107. </datasources>
  108. </subsystem>
  109. <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0">
  110. <deployment-scanner scan-interval="5000" relative-to="jboss.server.base.dir" path="deployments" />
  111. </subsystem>
  112. <subsystem xmlns="urn:jboss:domain:ee:1.0" />
  113. <subsystem xmlns="urn:jboss:domain:ejb3:1.1" lite="true">
  114. <!-- EJB3 pools -->
  115. <pools>
  116. <bean-instance-pools>
  117. <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5"
  118. instance-acquisition-timeout-unit="MINUTES"/>
  119. </bean-instance-pools>
  120. </pools>
  121. <!-- Session bean configurations -->
  122. <session-bean>
  123. <stateless>
  124. <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
  125. </stateless>
  126. </session-bean>
  127. </subsystem>
  128. <subsystem xmlns="urn:jboss:domain:infinispan:1.0" default-cache-container="cluster">
  129. <cache-container name="cluster" default-cache="default">
  130. <alias>ha-partition</alias>
  131. <replicated-cache name="default" mode="SYNC" batching="true">
  132. <locking isolation="REPEATABLE_READ"/>
  133. </replicated-cache>
  134. </cache-container>
  135. <cache-container name="web" default-cache="repl">
  136. <alias>standard-session-cache</alias>
  137. <replicated-cache name="repl" mode="ASYNC" batching="true">
  138. <locking isolation="REPEATABLE_READ"/>
  139. <file-store/>
  140. </replicated-cache>
  141. <distributed-cache name="dist" mode="ASYNC" batching="true">
  142. <locking isolation="REPEATABLE_READ"/>
  143. <file-store/>
  144. </distributed-cache>
  145. </cache-container>
  146. <cache-container name="sfsb" default-cache="repl">
  147. <alias>sfsb-cache</alias>
  148. <alias>jboss.cache:service=EJB3SFSBClusteredCache</alias>
  149. <replicated-cache name="repl" mode="ASYNC" batching="true">
  150. <locking isolation="REPEATABLE_READ"/>
  151. <eviction strategy="LRU" max-entries="10000"/>
  152. <file-store/>
  153. </replicated-cache>
  154. </cache-container>
  155. <cache-container name="hibernate" default-cache="local-query">
  156. <invalidation-cache name="entity" mode="SYNC">
  157. <eviction strategy="LRU" max-entries="10000"/>
  158. <expiration max-idle="100000"/>
  159. </invalidation-cache>
  160. <local-cache name="local-query">
  161. <eviction strategy="LRU" max-entries="10000"/>
  162. <expiration max-idle="100000"/>
  163. </local-cache>
  164. <replicated-cache name="timestamps" mode="ASYNC">
  165. <eviction strategy="NONE"/>
  166. </replicated-cache>
  167. </cache-container>
  168. </subsystem>
  169. <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>
  170. <subsystem xmlns="urn:jboss:domain:jca:1.0">
  171. <archive-validation enabled="false" />
  172. <bean-validation enabled="false" />
  173. <default-workmanager>
  174. <short-running-threads blocking="true">
  175. <core-threads count="10" per-cpu="20"/>
  176. <queue-length count="10" per-cpu="20"/>
  177. <max-threads count="10" per-cpu="20"/>
  178. <keepalive-time time="10" unit="seconds"/>
  179. </short-running-threads>
  180. <long-running-threads blocking="true">
  181. <core-threads count="10" per-cpu="20"/>
  182. <queue-length count="10" per-cpu="20"/>
  183. <max-threads count="10" per-cpu="20"/>
  184. <keepalive-time time="10" unit="seconds"/>
  185. </long-running-threads>
  186. </default-workmanager>
  187. </subsystem>
  188. <subsystem xmlns="urn:jboss:domain:jgroups:1.0" default-stack="udp">
  189. <stack name="udp">
  190. <transport type="UDP" socket-binding="jgroups-udp" diagnostics-socket-binding="jgroups-diagnostics"/>
  191. <protocol type="PING"/>
  192. <protocol type="MERGE2"/>
  193. <protocol type="FD_SOCK" socket-binding="jgroups-udp-fd"/>
  194. <protocol type="FD"/>
  195. <protocol type="VERIFY_SUSPECT"/>
  196. <protocol type="BARRIER"/>
  197. <protocol type="pbcast.NAKACK"/>
  198. <protocol type="UNICAST"/>
  199. <protocol type="pbcast.STABLE"/>
  200. <!-- Not valid in 7.1
  201. <protocol type="VIEW_SYNC"/>
  202. -->
  203. <protocol type="pbcast.GMS"/>
  204. <protocol type="UFC"/>
  205. <protocol type="MFC"/>
  206. <protocol type="FRAG2"/>
  207. <!-- Not valid in 7.1
  208. <protocol type="pbcast.STREAMING_STATE_TRANSFER"/>
  209. -->
  210. <protocol type="pbcast.STATE_TRANSFER"/>
  211. <protocol type="pbcast.FLUSH"/>
  212. </stack>
  213. <stack name="tcp">
  214. <transport type="TCP" socket-binding="jgroups-tcp" diagnostics-socket-binding="jgroups-diagnostics"/>
  215. <protocol type="MPING" socket-binding="jgroups-mping"/>
  216. <protocol type="MERGE2"/>
  217. <protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/>
  218. <protocol type="FD"/>
  219. <protocol type="VERIFY_SUSPECT"/>
  220. <protocol type="BARRIER"/>
  221. <protocol type="pbcast.NAKACK"/>
  222. <protocol type="UNICAST"/>
  223. <protocol type="pbcast.STABLE"/>
  224. <!-- Not valid in 7.1
  225. <protocol type="VIEW_SYNC"/>
  226. -->
  227. <protocol type="pbcast.GMS"/>
  228. <protocol type="UFC"/>
  229. <protocol type="MFC"/>
  230. <protocol type="FRAG2"/>
  231. <!-- Not valid in 7.1
  232. <protocol type="pbcast.STREAMING_STATE_TRANSFER"/>
  233. -->
  234. <protocol type="pbcast.STATE_TRANSFER"/>
  235. <protocol type="pbcast.FLUSH"/>
  236. </stack>
  237. </subsystem>
  238. <subsystem xmlns="urn:jboss:domain:jmx:1.0">
  239. <jmx-connector registry-binding="jmx-connector-registry" server-binding="jmx-connector-server" />
  240. </subsystem>
  241. <subsystem xmlns="urn:jboss:domain:jpa:1.0">
  242. <jpa default-datasource=""/>
  243. </subsystem>
  244. <subsystem xmlns="urn:jboss:domain:modcluster:1.0">
  245. <mod-cluster-config advertise-socket="modcluster" />
  246. </subsystem>
  247. <subsystem xmlns="urn:jboss:domain:osgi:1.0" activation="lazy">
  248. <configuration pid="org.apache.felix.webconsole.internal.servlet.OsgiManager">
  249. <property name="manager.root">jboss-osgi</property>
  250. </configuration>
  251. <properties>
  252. <!--
  253. A comma seperated list of module identifiers. Each system module
  254. is added as a dependency to the OSGi framework module. The packages
  255. from these system modules can be made visible as framework system packages.
  256. http://www.osgi.org/javadoc/r4v42/org/osgi/framework/Constants.html#FRAMEWORK_SYSTEMPACKAGES_EXTRA
  257. -->
  258. <property name="org.jboss.osgi.system.modules">
  259. org.apache.commons.logging,
  260. org.apache.log4j,
  261. org.jboss.as.osgi,
  262. org.slf4j,
  263. </property>
  264. <!--
  265. Framework environment property identifying extra packages which the system bundle
  266. must export from the current execution environment
  267. -->
  268. <property name="org.osgi.framework.system.packages.extra">
  269. org.apache.commons.logging;version=1.1.1,
  270. org.apache.log4j;version=1.2,
  271. org.jboss.as.osgi.service;version=7.0,
  272. org.jboss.osgi.deployment.interceptor;version=1.0,
  273. org.jboss.osgi.spi.capability;version=1.0,
  274. org.jboss.osgi.spi.util;version=1.0,
  275. org.jboss.osgi.testing;version=1.0,
  276. org.jboss.osgi.vfs;version=1.0,
  277. org.slf4j;version=1.5.10,
  278. </property>
  279. <!-- Specifies the beginning start level of the framework -->
  280. <property name="org.osgi.framework.startlevel.beginning">1</property>
  281. </properties>
  282. <modules>
  283. <!-- modules registered with the OSGi layer on startup -->
  284. <module identifier="javaee.api"/>
  285. <module identifier="org.jboss.logging"/>
  286. <!-- bundles installed on startup -->
  287. <module identifier="org.apache.aries.util"/>
  288. <module identifier="org.jboss.osgi.webconsole"/>
  289. <module identifier="org.osgi.compendium"/>
  290. <!-- bundles started in startlevel 1 -->
  291. <module identifier="org.apache.felix.log" startlevel="1"/>
  292. <module identifier="org.jboss.osgi.logging" startlevel="1"/>
  293. <module identifier="org.apache.felix.configadmin" startlevel="1"/>
  294. <module identifier="org.jboss.as.osgi.configadmin" startlevel="1"/>
  295. <!-- bundles started in startlevel 2 -->
  296. <module identifier="org.apache.aries.jmx" startlevel="2"/>
  297. <module identifier="org.apache.felix.eventadmin" startlevel="2"/>
  298. <module identifier="org.apache.felix.metatype" startlevel="2"/>
  299. <module identifier="org.apache.felix.scr" startlevel="2"/>
  300. <module identifier="org.apache.felix.webconsole" startlevel="2"/>
  301. <module identifier="org.jboss.osgi.jmx" startlevel="2"/>
  302. <module identifier="org.jboss.osgi.http" startlevel="2"/>
  303. <!-- bundles started in startlevel 3 -->
  304. <module identifier="org.jboss.osgi.blueprint" startlevel="3"/>
  305. <module identifier="org.jboss.osgi.webapp" startlevel="3"/>
  306. <module identifier="org.jboss.osgi.xerces" startlevel="3"/>
  307. </modules>
  308. </subsystem>
  309. <subsystem xmlns="urn:jboss:domain:naming:1.0" />
  310. <subsystem xmlns="urn:jboss:domain:remoting:1.0"/>
  311. <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0" />
  312. <subsystem xmlns="urn:jboss:domain:sar:1.0"/>
  313. <subsystem xmlns="urn:jboss:domain:security:1.0">
  314. <security-domains>
  315. <security-domain name="other" cache-type="default">
  316. <authentication>
  317. <login-module code="UsersRoles" flag="required"/>
  318. </authentication>
  319. </security-domain>
  320. </security-domains>
  321. </subsystem>
  322. <subsystem xmlns="urn:jboss:domain:threads:1.0"/>
  323. <subsystem xmlns="urn:jboss:domain:transactions:1.0">
  324. <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
  325. <core-environment>
  326. <process-id>
  327. <uuid />
  328. </process-id>
  329. </core-environment>
  330. <coordinator-environment default-timeout="300"/>
  331. </subsystem>
  332. <subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host">
  333. <connector name="http" scheme="http" protocol="HTTP/1.1" socket-binding="http"/>
  334. <virtual-server name="default-host" enable-welcome-root="true">
  335. <alias name="localhost" />
  336. <alias name="example.com" />
  337. </virtual-server>
  338. </subsystem>
  339. <subsystem xmlns="urn:jboss:domain:weld:1.0" />
  340. </profile>
  341. <interfaces>
  342. <interface name="management">
  343. <inet-address value="127.0.0.1"/>
  344. </interface>
  345. <interface name="public">
  346. <inet-address value="127.0.0.1"/>
  347. </interface>
  348. </interfaces>
  349. <socket-binding-group name="standard-sockets" default-interface="public">
  350. <socket-binding name="http" port="8080"/>
  351. <socket-binding name="https" port="8443"/>
  352. <socket-binding name="jgroups-udp" port="55200" multicast-address="230.0.0.4" multicast-port="45688"/>
  353. <socket-binding name="jgroups-udp-fd" port="54200"/>
  354. <socket-binding name="jgroups-diagnostics" port="0" multicast-address="224.0.75.75" multicast-port="7500"/>
  355. <socket-binding name="jgroups-tcp" port="7600"/>
  356. <socket-binding name="jgroups-tcp-fd" port="57600"/>
  357. <socket-binding name="jgroups-mping" port="0" multicast-address="230.0.0.4" multicast-port="45700"/>
  358. <socket-binding name="jmx-connector-registry" port="1090"/>
  359. <socket-binding name="jmx-connector-server" port="1091"/>
  360. <socket-binding name="jndi" port="1099"/>
  361. <socket-binding name="modcluster" port="0" multicast-address="224.0.1.105" multicast-port="23364"/>
  362. <socket-binding name="osgi-http" port="8090"/>
  363. <socket-binding name="remoting" port="4447"/>
  364. <socket-binding name="txn-recovery-environment" port="4712"/>
  365. <socket-binding name="txn-status-manager" port="4713"/>
  366. </socket-binding-group>
  367. </server>