standalone-ha.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <server xmlns="urn:jboss:domain:1.4">
  3. <extensions>
  4. <extension module="org.jboss.as.clustering.infinispan"/>
  5. <extension module="org.jboss.as.clustering.jgroups"/>
  6. <extension module="org.jboss.as.connector"/>
  7. <extension module="org.jboss.as.deployment-scanner"/>
  8. <extension module="org.jboss.as.ee"/>
  9. <extension module="org.jboss.as.ejb3"/>
  10. <extension module="org.jboss.as.jaxrs"/>
  11. <extension module="org.jboss.as.jdr"/>
  12. <extension module="org.jboss.as.jmx"/>
  13. <extension module="org.jboss.as.jpa"/>
  14. <extension module="org.jboss.as.jsf"/>
  15. <extension module="org.jboss.as.logging"/>
  16. <extension module="org.jboss.as.mail"/>
  17. <extension module="org.jboss.as.modcluster"/>
  18. <extension module="org.jboss.as.naming"/>
  19. <extension module="org.jboss.as.pojo"/>
  20. <extension module="org.jboss.as.remoting"/>
  21. <extension module="org.jboss.as.sar"/>
  22. <extension module="org.jboss.as.security"/>
  23. <extension module="org.jboss.as.threads"/>
  24. <extension module="org.jboss.as.transactions"/>
  25. <extension module="org.jboss.as.web"/>
  26. <extension module="org.jboss.as.webservices"/>
  27. <extension module="org.jboss.as.weld"/>
  28. </extensions>
  29. <management>
  30. <security-realms>
  31. <security-realm name="ManagementRealm">
  32. <authentication>
  33. <local default-user="$local"/>
  34. <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
  35. </authentication>
  36. </security-realm>
  37. <security-realm name="ApplicationRealm">
  38. <authentication>
  39. <local default-user="$local" allowed-users="*"/>
  40. <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
  41. </authentication>
  42. <authorization>
  43. <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
  44. </authorization>
  45. </security-realm>
  46. </security-realms>
  47. <management-interfaces>
  48. <native-interface security-realm="ManagementRealm">
  49. <socket-binding native="management-native"/>
  50. </native-interface>
  51. <http-interface security-realm="ManagementRealm">
  52. <socket-binding http="management-http"/>
  53. </http-interface>
  54. </management-interfaces>
  55. </management>
  56. <profile>
  57. <subsystem xmlns="urn:jboss:domain:logging:1.2">
  58. <console-handler name="CONSOLE">
  59. <level name="INFO"/>
  60. <formatter>
  61. <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
  62. </formatter>
  63. </console-handler>
  64. <periodic-rotating-file-handler name="FILE" autoflush="true">
  65. <formatter>
  66. <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
  67. </formatter>
  68. <file relative-to="jboss.server.log.dir" path="server.log"/>
  69. <suffix value=".yyyy-MM-dd"/>
  70. <append value="true"/>
  71. </periodic-rotating-file-handler>
  72. <logger category="com.arjuna">
  73. <level name="WARN"/>
  74. </logger>
  75. <logger category="org.apache.tomcat.util.modeler">
  76. <level name="WARN"/>
  77. </logger>
  78. <logger category="org.jboss.as.config">
  79. <level name="DEBUG"/>
  80. </logger>
  81. <logger category="sun.rmi">
  82. <level name="WARN"/>
  83. </logger>
  84. <logger category="jacorb">
  85. <level name="WARN"/>
  86. </logger>
  87. <logger category="jacorb.config">
  88. <level name="ERROR"/>
  89. </logger>
  90. <root-logger>
  91. <level name="INFO"/>
  92. <handlers>
  93. <handler name="CONSOLE"/>
  94. <handler name="FILE"/>
  95. </handlers>
  96. </root-logger>
  97. </subsystem>
  98. <subsystem xmlns="urn:jboss:domain:datasources:1.1">
  99. <datasources>
  100. <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
  101. <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
  102. <driver>h2</driver>
  103. <security>
  104. <user-name>sa</user-name>
  105. <password>sa</password>
  106. </security>
  107. </datasource>
  108. <drivers>
  109. <driver name="h2" module="com.h2database.h2">
  110. <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
  111. </driver>
  112. </drivers>
  113. </datasources>
  114. </subsystem>
  115. <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
  116. <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>
  117. </subsystem>
  118. <subsystem xmlns="urn:jboss:domain:ee:1.1">
  119. <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>
  120. <jboss-descriptor-property-replacement>true</jboss-descriptor-property-replacement>
  121. </subsystem>
  122. <subsystem xmlns="urn:jboss:domain:ejb3:1.4">
  123. <session-bean>
  124. <stateless>
  125. <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
  126. </stateless>
  127. <stateful default-access-timeout="5000" cache-ref="simple" clustered-cache-ref="clustered"/>
  128. <singleton default-access-timeout="5000"/>
  129. </session-bean>
  130. <pools>
  131. <bean-instance-pools>
  132. <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
  133. <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
  134. </bean-instance-pools>
  135. </pools>
  136. <caches>
  137. <cache name="simple" aliases="NoPassivationCache"/>
  138. <cache name="passivating" passivation-store-ref="file" aliases="SimpleStatefulCache"/>
  139. <cache name="clustered" passivation-store-ref="infinispan" aliases="StatefulTreeCache"/>
  140. </caches>
  141. <passivation-stores>
  142. <file-passivation-store name="file"/>
  143. <cluster-passivation-store name="infinispan" cache-container="ejb"/>
  144. </passivation-stores>
  145. <async thread-pool-name="default"/>
  146. <timer-service thread-pool-name="default">
  147. <data-store path="timer-service-data" relative-to="jboss.server.data.dir"/>
  148. </timer-service>
  149. <remote connector-ref="remoting-connector" thread-pool-name="default"/>
  150. <thread-pools>
  151. <thread-pool name="default">
  152. <max-threads count="10"/>
  153. <keepalive-time time="100" unit="milliseconds"/>
  154. </thread-pool>
  155. </thread-pools>
  156. <default-security-domain value="other"/>
  157. <default-missing-method-permissions-deny-access value="true"/>
  158. </subsystem>
  159. <subsystem xmlns="urn:jboss:domain:infinispan:1.4">
  160. <cache-container name="singleton" aliases="cluster ha-partition" default-cache="default">
  161. <transport lock-timeout="60000"/>
  162. <replicated-cache name="default" mode="SYNC" batching="true">
  163. <locking isolation="REPEATABLE_READ"/>
  164. </replicated-cache>
  165. </cache-container>
  166. <cache-container name="web" aliases="standard-session-cache" default-cache="repl" module="org.jboss.as.clustering.web.infinispan">
  167. <transport lock-timeout="60000"/>
  168. <replicated-cache name="repl" mode="ASYNC" batching="true">
  169. <file-store/>
  170. </replicated-cache>
  171. <replicated-cache name="sso" mode="SYNC" batching="true"/>
  172. <distributed-cache name="dist" mode="ASYNC" batching="true" l1-lifespan="0">
  173. <file-store/>
  174. </distributed-cache>
  175. </cache-container>
  176. <cache-container name="ejb" aliases="sfsb sfsb-cache" default-cache="repl" module="org.jboss.as.clustering.ejb3.infinispan">
  177. <transport lock-timeout="60000"/>
  178. <replicated-cache name="repl" mode="ASYNC" batching="true">
  179. <eviction strategy="LRU" max-entries="10000"/>
  180. <file-store/>
  181. </replicated-cache>
  182. <!--
  183. ~ Clustered cache used internally by EJB subsytem for managing the client-mapping(s) of
  184. ~ the socketbinding referenced by the EJB remoting connector
  185. -->
  186. <replicated-cache name="remote-connector-client-mappings" mode="SYNC" batching="true"/>
  187. <distributed-cache name="dist" mode="ASYNC" batching="true" l1-lifespan="0">
  188. <eviction strategy="LRU" max-entries="10000"/>
  189. <file-store/>
  190. </distributed-cache>
  191. </cache-container>
  192. <cache-container name="hibernate" default-cache="local-query" module="org.jboss.as.jpa.hibernate:4">
  193. <transport lock-timeout="60000"/>
  194. <local-cache name="local-query">
  195. <transaction mode="NONE"/>
  196. <eviction strategy="LRU" max-entries="10000"/>
  197. <expiration max-idle="100000"/>
  198. </local-cache>
  199. <invalidation-cache name="entity" mode="SYNC">
  200. <transaction mode="NON_XA"/>
  201. <eviction strategy="LRU" max-entries="10000"/>
  202. <expiration max-idle="100000"/>
  203. </invalidation-cache>
  204. <replicated-cache name="timestamps" mode="ASYNC">
  205. <transaction mode="NONE"/>
  206. <eviction strategy="NONE"/>
  207. </replicated-cache>
  208. </cache-container>
  209. </subsystem>
  210. <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>
  211. <subsystem xmlns="urn:jboss:domain:jca:1.1">
  212. <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>
  213. <bean-validation enabled="true"/>
  214. <default-workmanager>
  215. <short-running-threads>
  216. <core-threads count="50"/>
  217. <queue-length count="50"/>
  218. <max-threads count="50"/>
  219. <keepalive-time time="10" unit="seconds"/>
  220. </short-running-threads>
  221. <long-running-threads>
  222. <core-threads count="50"/>
  223. <queue-length count="50"/>
  224. <max-threads count="50"/>
  225. <keepalive-time time="10" unit="seconds"/>
  226. </long-running-threads>
  227. </default-workmanager>
  228. <cached-connection-manager/>
  229. </subsystem>
  230. <subsystem xmlns="urn:jboss:domain:jdr:1.0"/>
  231. <subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="udp">
  232. <stack name="udp">
  233. <transport type="UDP" socket-binding="jgroups-udp"/>
  234. <protocol type="PING"/>
  235. <protocol type="MERGE3"/>
  236. <protocol type="FD_SOCK" socket-binding="jgroups-udp-fd"/>
  237. <protocol type="FD"/>
  238. <protocol type="VERIFY_SUSPECT"/>
  239. <protocol type="pbcast.NAKACK2"/>
  240. <protocol type="UNICAST2"/>
  241. <protocol type="pbcast.STABLE"/>
  242. <protocol type="pbcast.GMS"/>
  243. <protocol type="UFC"/>
  244. <protocol type="MFC"/>
  245. <protocol type="FRAG2"/>
  246. <protocol type="RSVP"/>
  247. </stack>
  248. <stack name="tcp">
  249. <transport type="TCP" socket-binding="jgroups-tcp"/>
  250. <protocol type="MPING" socket-binding="jgroups-mping"/>
  251. <protocol type="MERGE2"/>
  252. <protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/>
  253. <protocol type="FD"/>
  254. <protocol type="VERIFY_SUSPECT"/>
  255. <protocol type="pbcast.NAKACK2"/>
  256. <protocol type="UNICAST2"/>
  257. <protocol type="pbcast.STABLE"/>
  258. <protocol type="pbcast.GMS"/>
  259. <protocol type="UFC"/>
  260. <protocol type="MFC"/>
  261. <protocol type="FRAG2"/>
  262. <protocol type="RSVP"/>
  263. </stack>
  264. </subsystem>
  265. <subsystem xmlns="urn:jboss:domain:jmx:1.2">
  266. <expose-resolved-model/>
  267. <expose-expression-model/>
  268. <remoting-connector/>
  269. </subsystem>
  270. <subsystem xmlns="urn:jboss:domain:jpa:1.1">
  271. <jpa default-datasource="" default-extended-persistence-inheritance="DEEP"/>
  272. </subsystem>
  273. <subsystem xmlns="urn:jboss:domain:jsf:1.0"/>
  274. <subsystem xmlns="urn:jboss:domain:mail:1.0">
  275. <mail-session jndi-name="java:jboss/mail/Default">
  276. <smtp-server outbound-socket-binding-ref="mail-smtp"/>
  277. </mail-session>
  278. </subsystem>
  279. <subsystem xmlns="urn:jboss:domain:modcluster:1.1">
  280. <mod-cluster-config advertise-socket="modcluster" connector="ajp">
  281. <dynamic-load-provider>
  282. <load-metric type="busyness"/>
  283. </dynamic-load-provider>
  284. </mod-cluster-config>
  285. </subsystem>
  286. <subsystem xmlns="urn:jboss:domain:naming:1.2">
  287. <remote-naming/>
  288. </subsystem>
  289. <subsystem xmlns="urn:jboss:domain:pojo:1.0"/>
  290. <subsystem xmlns="urn:jboss:domain:remoting:1.1">
  291. <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>
  292. </subsystem>
  293. <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"/>
  294. <subsystem xmlns="urn:jboss:domain:sar:1.0"/>
  295. <subsystem xmlns="urn:jboss:domain:security:1.2">
  296. <security-domains>
  297. <security-domain name="other" cache-type="default">
  298. <authentication>
  299. <login-module code="Remoting" flag="optional">
  300. <module-option name="password-stacking" value="useFirstPass"/>
  301. </login-module>
  302. <login-module code="RealmDirect" flag="required">
  303. <module-option name="password-stacking" value="useFirstPass"/>
  304. </login-module>
  305. </authentication>
  306. </security-domain>
  307. <security-domain name="jboss-web-policy" cache-type="default">
  308. <authorization>
  309. <policy-module code="Delegating" flag="required"/>
  310. </authorization>
  311. </security-domain>
  312. <security-domain name="jboss-ejb-policy" cache-type="default">
  313. <authorization>
  314. <policy-module code="Delegating" flag="required"/>
  315. </authorization>
  316. </security-domain>
  317. </security-domains>
  318. </subsystem>
  319. <subsystem xmlns="urn:jboss:domain:threads:1.1"/>
  320. <subsystem xmlns="urn:jboss:domain:transactions:1.2">
  321. <core-environment>
  322. <process-id>
  323. <uuid/>
  324. </process-id>
  325. </core-environment>
  326. <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
  327. <coordinator-environment default-timeout="300"/>
  328. </subsystem>
  329. <subsystem xmlns="urn:jboss:domain:web:1.4" default-virtual-server="default-host" native="false">
  330. <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
  331. <connector name="ajp" protocol="AJP/1.3" scheme="http" socket-binding="ajp"/>
  332. <virtual-server name="default-host" enable-welcome-root="true">
  333. <alias name="localhost"/>
  334. <alias name="example.com"/>
  335. </virtual-server>
  336. </subsystem>
  337. <subsystem xmlns="urn:jboss:domain:webservices:1.2">
  338. <modify-wsdl-address>true</modify-wsdl-address>
  339. <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
  340. <endpoint-config name="Standard-Endpoint-Config"/>
  341. <endpoint-config name="Recording-Endpoint-Config">
  342. <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
  343. <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
  344. </pre-handler-chain>
  345. </endpoint-config>
  346. <client-config name="Standard-Client-Config"/>
  347. </subsystem>
  348. <subsystem xmlns="urn:jboss:domain:weld:1.0"/>
  349. </profile>
  350. <interfaces>
  351. <interface name="management">
  352. <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
  353. </interface>
  354. <interface name="public">
  355. <inet-address value="${jboss.bind.address:127.0.0.1}"/>
  356. </interface>
  357. <!-- TODO - only show this if the jacorb subsystem is added -->
  358. <interface name="unsecure">
  359. <!--
  360. ~ Used for IIOP sockets in the standard configuration.
  361. ~ To secure JacORB you need to setup SSL
  362. -->
  363. <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
  364. </interface>
  365. </interfaces>
  366. <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
  367. <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
  368. <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
  369. <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
  370. <socket-binding name="ajp" port="8009"/>
  371. <socket-binding name="http" port="8080"/>
  372. <socket-binding name="https" port="8443"/>
  373. <socket-binding name="jgroups-mping" port="0" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45700"/>
  374. <socket-binding name="jgroups-tcp" port="7600"/>
  375. <socket-binding name="jgroups-tcp-fd" port="57600"/>
  376. <socket-binding name="jgroups-udp" port="55200" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45688"/>
  377. <socket-binding name="jgroups-udp-fd" port="54200"/>
  378. <socket-binding name="modcluster" port="0" multicast-address="224.0.1.105" multicast-port="23364"/>
  379. <socket-binding name="remoting" port="4447"/>
  380. <socket-binding name="txn-recovery-environment" port="4712"/>
  381. <socket-binding name="txn-status-manager" port="4713"/>
  382. <outbound-socket-binding name="mail-smtp">
  383. <remote-destination host="localhost" port="25"/>
  384. </outbound-socket-binding>
  385. </socket-binding-group>
  386. </server>