You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

468 lines
24 KiB

7 years ago
  1. <?xml version="1.0" ?>
  2. <server xmlns="urn:jboss:domain:4.2">
  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.transactions"/>
  24. <extension module="org.jboss.as.webservices"/>
  25. <extension module="org.jboss.as.weld"/>
  26. <extension module="org.wildfly.extension.batch.jberet"/>
  27. <extension module="org.wildfly.extension.bean-validation"/>
  28. <extension module="org.wildfly.extension.clustering.singleton"/>
  29. <extension module="org.wildfly.extension.io"/>
  30. <extension module="org.wildfly.extension.request-controller"/>
  31. <extension module="org.wildfly.extension.security.manager"/>
  32. <extension module="org.wildfly.extension.undertow"/>
  33. </extensions>
  34. <management>
  35. <security-realms>
  36. <security-realm name="ManagementRealm">
  37. <authentication>
  38. <local default-user="$local" skip-group-loading="true"/>
  39. <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
  40. </authentication>
  41. <authorization map-groups-to-roles="false">
  42. <properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
  43. </authorization>
  44. </security-realm>
  45. <security-realm name="ApplicationRealm">
  46. <server-identities>
  47. <ssl>
  48. <keystore path="application.keystore" relative-to="jboss.server.config.dir" keystore-password="password" alias="server" key-password="password" generate-self-signed-certificate-host="localhost"/>
  49. </ssl>
  50. </server-identities>
  51. <authentication>
  52. <local default-user="$local" allowed-users="*" skip-group-loading="true"/>
  53. <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
  54. </authentication>
  55. <authorization>
  56. <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
  57. </authorization>
  58. </security-realm>
  59. </security-realms>
  60. <audit-log>
  61. <formatters>
  62. <json-formatter name="json-formatter"/>
  63. </formatters>
  64. <handlers>
  65. <file-handler name="file" formatter="json-formatter" path="audit-log.log" relative-to="jboss.server.data.dir"/>
  66. </handlers>
  67. <logger log-boot="true" log-read-only="false" enabled="false">
  68. <handlers>
  69. <handler name="file"/>
  70. </handlers>
  71. </logger>
  72. </audit-log>
  73. <management-interfaces>
  74. <http-interface security-realm="ManagementRealm" http-upgrade-enabled="true">
  75. <socket-binding http="management-http"/>
  76. </http-interface>
  77. </management-interfaces>
  78. <access-control provider="simple">
  79. <role-mapping>
  80. <role name="SuperUser">
  81. <include>
  82. <user name="$local"/>
  83. </include>
  84. </role>
  85. </role-mapping>
  86. </access-control>
  87. </management>
  88. <profile>
  89. <subsystem xmlns="urn:jboss:domain:logging:3.0">
  90. <console-handler name="CONSOLE">
  91. <level name="INFO"/>
  92. <formatter>
  93. <named-formatter name="COLOR-PATTERN"/>
  94. </formatter>
  95. </console-handler>
  96. <periodic-rotating-file-handler name="FILE" autoflush="true">
  97. <formatter>
  98. <named-formatter name="PATTERN"/>
  99. </formatter>
  100. <file relative-to="jboss.server.log.dir" path="server.log"/>
  101. <suffix value=".yyyy-MM-dd"/>
  102. <append value="true"/>
  103. </periodic-rotating-file-handler>
  104. <logger category="com.arjuna">
  105. <level name="WARN"/>
  106. </logger>
  107. <logger category="org.jboss.as.config">
  108. <level name="DEBUG"/>
  109. </logger>
  110. <logger category="sun.rmi">
  111. <level name="WARN"/>
  112. </logger>
  113. <root-logger>
  114. <level name="INFO"/>
  115. <handlers>
  116. <handler name="CONSOLE"/>
  117. <handler name="FILE"/>
  118. </handlers>
  119. </root-logger>
  120. <formatter name="PATTERN">
  121. <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/>
  122. </formatter>
  123. <formatter name="COLOR-PATTERN">
  124. <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/>
  125. </formatter>
  126. </subsystem>
  127. <subsystem xmlns="urn:jboss:domain:batch-jberet:1.0">
  128. <default-job-repository name="in-memory"/>
  129. <default-thread-pool name="batch"/>
  130. <job-repository name="in-memory">
  131. <in-memory/>
  132. </job-repository>
  133. <thread-pool name="batch">
  134. <max-threads count="10"/>
  135. <keepalive-time time="30" unit="seconds"/>
  136. </thread-pool>
  137. </subsystem>
  138. <subsystem xmlns="urn:jboss:domain:bean-validation:1.0"/>
  139. <subsystem xmlns="urn:jboss:domain:datasources:4.0">
  140. <datasources>
  141. <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
  142. <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>
  143. <driver>h2</driver>
  144. <security>
  145. <user-name>sa</user-name>
  146. <password>sa</password>
  147. </security>
  148. </datasource>
  149. <drivers>
  150. <driver name="h2" module="com.h2database.h2">
  151. <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
  152. </driver>
  153. </drivers>
  154. </datasources>
  155. </subsystem>
  156. <subsystem xmlns="urn:jboss:domain:deployment-scanner:2.0">
  157. <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" runtime-failure-causes-rollback="${jboss.deployment.scanner.rollback.on.failure:false}"/>
  158. </subsystem>
  159. <subsystem xmlns="urn:jboss:domain:ee:4.0">
  160. <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>
  161. <concurrent>
  162. <context-services>
  163. <context-service name="default" jndi-name="java:jboss/ee/concurrency/context/default" use-transaction-setup-provider="true"/>
  164. </context-services>
  165. <managed-thread-factories>
  166. <managed-thread-factory name="default" jndi-name="java:jboss/ee/concurrency/factory/default" context-service="default"/>
  167. </managed-thread-factories>
  168. <managed-executor-services>
  169. <managed-executor-service name="default" jndi-name="java:jboss/ee/concurrency/executor/default" context-service="default" hung-task-threshold="60000" keepalive-time="5000"/>
  170. </managed-executor-services>
  171. <managed-scheduled-executor-services>
  172. <managed-scheduled-executor-service name="default" jndi-name="java:jboss/ee/concurrency/scheduler/default" context-service="default" hung-task-threshold="60000" keepalive-time="3000"/>
  173. </managed-scheduled-executor-services>
  174. </concurrent>
  175. <default-bindings context-service="java:jboss/ee/concurrency/context/default" datasource="java:jboss/datasources/ExampleDS" managed-executor-service="java:jboss/ee/concurrency/executor/default" managed-scheduled-executor-service="java:jboss/ee/concurrency/scheduler/default" managed-thread-factory="java:jboss/ee/concurrency/factory/default"/>
  176. </subsystem>
  177. <subsystem xmlns="urn:jboss:domain:ejb3:4.0">
  178. <session-bean>
  179. <stateless>
  180. <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
  181. </stateless>
  182. <stateful default-access-timeout="5000" cache-ref="distributable" passivation-disabled-cache-ref="simple"/>
  183. <singleton default-access-timeout="5000"/>
  184. </session-bean>
  185. <pools>
  186. <bean-instance-pools>
  187. <strict-max-pool name="slsb-strict-max-pool" derive-size="from-worker-pools" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
  188. <strict-max-pool name="mdb-strict-max-pool" derive-size="from-cpu-count" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
  189. </bean-instance-pools>
  190. </pools>
  191. <caches>
  192. <cache name="simple"/>
  193. <cache name="distributable" passivation-store-ref="infinispan" aliases="passivating clustered"/>
  194. </caches>
  195. <passivation-stores>
  196. <passivation-store name="infinispan" cache-container="ejb" max-size="10000"/>
  197. </passivation-stores>
  198. <async thread-pool-name="default"/>
  199. <timer-service thread-pool-name="default" default-data-store="default-file-store">
  200. <data-stores>
  201. <file-data-store name="default-file-store" path="timer-service-data" relative-to="jboss.server.data.dir"/>
  202. </data-stores>
  203. </timer-service>
  204. <remote connector-ref="http-remoting-connector" thread-pool-name="default"/>
  205. <thread-pools>
  206. <thread-pool name="default">
  207. <max-threads count="10"/>
  208. <keepalive-time time="100" unit="milliseconds"/>
  209. </thread-pool>
  210. </thread-pools>
  211. <default-security-domain value="other"/>
  212. <default-missing-method-permissions-deny-access value="true"/>
  213. <log-system-exceptions value="true"/>
  214. </subsystem>
  215. <subsystem xmlns="urn:jboss:domain:io:1.1">
  216. <worker name="default"/>
  217. <buffer-pool name="default"/>
  218. </subsystem>
  219. <subsystem xmlns="urn:jboss:domain:infinispan:4.0">
  220. <cache-container name="server" aliases="singleton cluster" default-cache="default" module="org.wildfly.clustering.server">
  221. <transport lock-timeout="60000"/>
  222. <replicated-cache name="default" mode="SYNC">
  223. <transaction mode="BATCH"/>
  224. </replicated-cache>
  225. </cache-container>
  226. <cache-container name="web" default-cache="dist" module="org.wildfly.clustering.web.infinispan">
  227. <transport lock-timeout="60000"/>
  228. <distributed-cache name="dist" mode="ASYNC" l1-lifespan="0" owners="2">
  229. <locking isolation="REPEATABLE_READ"/>
  230. <transaction mode="BATCH"/>
  231. <file-store/>
  232. </distributed-cache>
  233. <distributed-cache name="concurrent" mode="SYNC" l1-lifespan="0" owners="2">
  234. <file-store/>
  235. </distributed-cache>
  236. </cache-container>
  237. <cache-container name="ejb" aliases="sfsb" default-cache="dist" module="org.wildfly.clustering.ejb.infinispan">
  238. <transport lock-timeout="60000"/>
  239. <distributed-cache name="dist" mode="ASYNC" l1-lifespan="0" owners="2">
  240. <locking isolation="REPEATABLE_READ"/>
  241. <transaction mode="BATCH"/>
  242. <file-store/>
  243. </distributed-cache>
  244. </cache-container>
  245. <cache-container name="hibernate" default-cache="local-query" module="org.hibernate.infinispan">
  246. <transport lock-timeout="60000"/>
  247. <local-cache name="local-query">
  248. <eviction strategy="LRU" max-entries="10000"/>
  249. <expiration max-idle="100000"/>
  250. </local-cache>
  251. <invalidation-cache name="entity" mode="SYNC">
  252. <transaction mode="NON_XA"/>
  253. <eviction strategy="LRU" max-entries="10000"/>
  254. <expiration max-idle="100000"/>
  255. </invalidation-cache>
  256. <replicated-cache name="timestamps" mode="ASYNC"/>
  257. </cache-container>
  258. </subsystem>
  259. <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>
  260. <subsystem xmlns="urn:jboss:domain:jca:4.0">
  261. <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>
  262. <bean-validation enabled="true"/>
  263. <default-workmanager>
  264. <short-running-threads>
  265. <core-threads count="50"/>
  266. <queue-length count="50"/>
  267. <max-threads count="50"/>
  268. <keepalive-time time="10" unit="seconds"/>
  269. </short-running-threads>
  270. <long-running-threads>
  271. <core-threads count="50"/>
  272. <queue-length count="50"/>
  273. <max-threads count="50"/>
  274. <keepalive-time time="10" unit="seconds"/>
  275. </long-running-threads>
  276. </default-workmanager>
  277. <cached-connection-manager/>
  278. </subsystem>
  279. <subsystem xmlns="urn:jboss:domain:jdr:1.0"/>
  280. <subsystem xmlns="urn:jboss:domain:jgroups:4.0">
  281. <channels default="ee">
  282. <channel name="ee" stack="udp"/>
  283. </channels>
  284. <stacks>
  285. <stack name="udp">
  286. <transport type="UDP" socket-binding="jgroups-udp"/>
  287. <protocol type="PING"/>
  288. <protocol type="MERGE3"/>
  289. <protocol type="FD_SOCK" socket-binding="jgroups-udp-fd"/>
  290. <protocol type="FD_ALL"/>
  291. <protocol type="VERIFY_SUSPECT"/>
  292. <protocol type="pbcast.NAKACK2"/>
  293. <protocol type="UNICAST3"/>
  294. <protocol type="pbcast.STABLE"/>
  295. <protocol type="pbcast.GMS"/>
  296. <protocol type="UFC"/>
  297. <protocol type="MFC"/>
  298. <protocol type="FRAG2"/>
  299. </stack>
  300. <stack name="tcp">
  301. <transport type="TCP" socket-binding="jgroups-tcp"/>
  302. <protocol type="MPING" socket-binding="jgroups-mping"/>
  303. <protocol type="MERGE3"/>
  304. <protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/>
  305. <protocol type="FD"/>
  306. <protocol type="VERIFY_SUSPECT"/>
  307. <protocol type="pbcast.NAKACK2"/>
  308. <protocol type="UNICAST3"/>
  309. <protocol type="pbcast.STABLE"/>
  310. <protocol type="pbcast.GMS"/>
  311. <protocol type="MFC"/>
  312. <protocol type="FRAG2"/>
  313. </stack>
  314. </stacks>
  315. </subsystem>
  316. <subsystem xmlns="urn:jboss:domain:jmx:1.3">
  317. <expose-resolved-model/>
  318. <expose-expression-model/>
  319. <remoting-connector/>
  320. </subsystem>
  321. <subsystem xmlns="urn:jboss:domain:jpa:1.1">
  322. <jpa default-datasource="" default-extended-persistence-inheritance="DEEP"/>
  323. </subsystem>
  324. <subsystem xmlns="urn:jboss:domain:jsf:1.0"/>
  325. <subsystem xmlns="urn:jboss:domain:mail:2.0">
  326. <mail-session name="default" jndi-name="java:jboss/mail/Default">
  327. <smtp-server outbound-socket-binding-ref="mail-smtp"/>
  328. </mail-session>
  329. </subsystem>
  330. <subsystem xmlns="urn:jboss:domain:modcluster:2.0">
  331. <mod-cluster-config advertise-socket="modcluster" connector="ajp">
  332. <dynamic-load-provider>
  333. <load-metric type="cpu"/>
  334. </dynamic-load-provider>
  335. </mod-cluster-config>
  336. </subsystem>
  337. <subsystem xmlns="urn:jboss:domain:naming:2.0">
  338. <remote-naming/>
  339. </subsystem>
  340. <subsystem xmlns="urn:jboss:domain:pojo:1.0"/>
  341. <subsystem xmlns="urn:jboss:domain:remoting:3.0">
  342. <endpoint/>
  343. <http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/>
  344. </subsystem>
  345. <subsystem xmlns="urn:jboss:domain:resource-adapters:4.0"/>
  346. <subsystem xmlns="urn:jboss:domain:request-controller:1.0"/>
  347. <subsystem xmlns="urn:jboss:domain:sar:1.0"/>
  348. <subsystem xmlns="urn:jboss:domain:security-manager:1.0">
  349. <deployment-permissions>
  350. <maximum-set>
  351. <permission class="java.security.AllPermission"/>
  352. </maximum-set>
  353. </deployment-permissions>
  354. </subsystem>
  355. <subsystem xmlns="urn:jboss:domain:security:1.2">
  356. <security-domains>
  357. <security-domain name="other" cache-type="default">
  358. <authentication>
  359. <login-module code="Remoting" flag="optional">
  360. <module-option name="password-stacking" value="useFirstPass"/>
  361. </login-module>
  362. <login-module code="RealmDirect" flag="required">
  363. <module-option name="password-stacking" value="useFirstPass"/>
  364. </login-module>
  365. </authentication>
  366. </security-domain>
  367. <security-domain name="jboss-web-policy" cache-type="default">
  368. <authorization>
  369. <policy-module code="Delegating" flag="required"/>
  370. </authorization>
  371. </security-domain>
  372. <security-domain name="jboss-ejb-policy" cache-type="default">
  373. <authorization>
  374. <policy-module code="Delegating" flag="required"/>
  375. </authorization>
  376. </security-domain>
  377. <security-domain name="jaspitest" cache-type="default">
  378. <authentication-jaspi>
  379. <login-module-stack name="dummy">
  380. <login-module code="Dummy" flag="optional"/>
  381. </login-module-stack>
  382. <auth-module code="Dummy"/>
  383. </authentication-jaspi>
  384. </security-domain>
  385. </security-domains>
  386. </subsystem>
  387. <subsystem xmlns="urn:jboss:domain:singleton:1.0">
  388. <singleton-policies default="default">
  389. <singleton-policy name="default" cache-container="server">
  390. <simple-election-policy/>
  391. </singleton-policy>
  392. </singleton-policies>
  393. </subsystem>
  394. <subsystem xmlns="urn:jboss:domain:transactions:3.0">
  395. <core-environment>
  396. <process-id>
  397. <uuid/>
  398. </process-id>
  399. </core-environment>
  400. <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
  401. </subsystem>
  402. <subsystem xmlns="urn:jboss:domain:undertow:3.1">
  403. <buffer-cache name="default"/>
  404. <server name="default-server">
  405. <ajp-listener name="ajp" socket-binding="ajp"/>
  406. <http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
  407. <https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>
  408. <host name="default-host" alias="localhost">
  409. <location name="/" handler="welcome-content"/>
  410. <filter-ref name="server-header"/>
  411. <filter-ref name="x-powered-by-header"/>
  412. </host>
  413. </server>
  414. <servlet-container name="default">
  415. <jsp-config/>
  416. <websockets/>
  417. </servlet-container>
  418. <handlers>
  419. <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
  420. </handlers>
  421. <filters>
  422. <response-header name="server-header" header-name="Server" header-value="WildFly/10"/>
  423. <response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>
  424. </filters>
  425. </subsystem>
  426. <subsystem xmlns="urn:jboss:domain:webservices:2.0">
  427. <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
  428. <endpoint-config name="Standard-Endpoint-Config"/>
  429. <endpoint-config name="Recording-Endpoint-Config">
  430. <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
  431. <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
  432. </pre-handler-chain>
  433. </endpoint-config>
  434. <client-config name="Standard-Client-Config"/>
  435. </subsystem>
  436. <subsystem xmlns="urn:jboss:domain:weld:3.0"/>
  437. </profile>
  438. <interfaces>
  439. <interface name="management">
  440. <inet-address value="${jboss.bind.address.management:172.28.5.2}"/>
  441. </interface>
  442. <interface name="public">
  443. <inet-address value="${jboss.bind.address:172.28.5.2}"/>
  444. </interface>
  445. <interface name="private">
  446. <inet-address value="${jboss.bind.address.private:172.28.5.2}"/>
  447. </interface>
  448. </interfaces>
  449. <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
  450. <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
  451. <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/>
  452. <socket-binding name="ajp" port="${jboss.ajp.port:8009}"/>
  453. <socket-binding name="http" port="${jboss.http.port:8080}"/>
  454. <socket-binding name="https" port="${jboss.https.port:8443}"/>
  455. <socket-binding name="jgroups-mping" interface="private" port="0" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45700"/>
  456. <socket-binding name="jgroups-tcp" interface="private" port="7600"/>
  457. <socket-binding name="jgroups-tcp-fd" interface="private" port="57600"/>
  458. <socket-binding name="jgroups-udp" interface="private" port="55200" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45688"/>
  459. <socket-binding name="jgroups-udp-fd" interface="private" port="54200"/>
  460. <socket-binding name="modcluster" port="0" multicast-address="224.0.1.105" multicast-port="23364"/>
  461. <socket-binding name="txn-recovery-environment" port="4712"/>
  462. <socket-binding name="txn-status-manager" port="4713"/>
  463. <outbound-socket-binding name="mail-smtp">
  464. <remote-destination host="localhost" port="25"/>
  465. </outbound-socket-binding>
  466. </socket-binding-group>
  467. </server>