standalone.xml.template 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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.connector"/>
  6. <extension module="org.jboss.as.deployment-scanner"/>
  7. <extension module="org.jboss.as.ee"/>
  8. <extension module="org.jboss.as.ejb3"/>
  9. <extension module="org.jboss.as.jaxrs"/>
  10. <extension module="org.jboss.as.jdr"/>
  11. <extension module="org.jboss.as.jmx"/>
  12. <extension module="org.jboss.as.jpa"/>
  13. <extension module="org.jboss.as.jsf"/>
  14. <extension module="org.jboss.as.logging"/>
  15. <extension module="org.jboss.as.mail"/>
  16. <extension module="org.jboss.as.naming"/>
  17. <extension module="org.jboss.as.pojo"/>
  18. <extension module="org.jboss.as.remoting"/>
  19. <extension module="org.jboss.as.sar"/>
  20. <extension module="org.jboss.as.security"/>
  21. <extension module="org.jboss.as.threads"/>
  22. <extension module="org.jboss.as.transactions"/>
  23. <extension module="org.jboss.as.web"/>
  24. <extension module="org.jboss.as.webservices"/>
  25. <extension module="org.jboss.as.weld"/>
  26. </extensions>
  27. <management>
  28. <security-realms>
  29. <security-realm name="ManagementRealm">
  30. <authentication>
  31. <local default-user="$local"/>
  32. <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
  33. </authentication>
  34. </security-realm>
  35. <security-realm name="ApplicationRealm">
  36. <authentication>
  37. <local default-user="$local" allowed-users="*"/>
  38. <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
  39. </authentication>
  40. <authorization>
  41. <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
  42. </authorization>
  43. </security-realm>
  44. </security-realms>
  45. <management-interfaces>
  46. <native-interface security-realm="ManagementRealm">
  47. <socket-binding native="management-native"/>
  48. </native-interface>
  49. <http-interface security-realm="ManagementRealm">
  50. <socket-binding http="management-http"/>
  51. </http-interface>
  52. </management-interfaces>
  53. </management>
  54. <profile>
  55. <subsystem xmlns="urn:jboss:domain:logging:1.2">
  56. <console-handler name="CONSOLE">
  57. <level name="INFO"/>
  58. <formatter>
  59. <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
  60. </formatter>
  61. </console-handler>
  62. <periodic-rotating-file-handler name="FILE" autoflush="true">
  63. <formatter>
  64. <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
  65. </formatter>
  66. <file relative-to="jboss.server.log.dir" path="server.log"/>
  67. <suffix value=".yyyy-MM-dd"/>
  68. <append value="true"/>
  69. </periodic-rotating-file-handler>
  70. <logger category="com.arjuna">
  71. <level name="WARN"/>
  72. </logger>
  73. <logger category="org.apache.tomcat.util.modeler">
  74. <level name="WARN"/>
  75. </logger>
  76. <logger category="org.jboss.as.config">
  77. <level name="DEBUG"/>
  78. </logger>
  79. <logger category="sun.rmi">
  80. <level name="WARN"/>
  81. </logger>
  82. <logger category="jacorb">
  83. <level name="WARN"/>
  84. </logger>
  85. <logger category="jacorb.config">
  86. <level name="ERROR"/>
  87. </logger>
  88. <root-logger>
  89. <level name="INFO"/>
  90. <handlers>
  91. <handler name="CONSOLE"/>
  92. <handler name="FILE"/>
  93. </handlers>
  94. </root-logger>
  95. </subsystem>
  96. <subsystem xmlns="urn:jboss:domain:datasources:1.1">
  97. <datasources>
  98. <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
  99. <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
  100. <driver>h2</driver>
  101. <security>
  102. <user-name>sa</user-name>
  103. <password>sa</password>
  104. </security>
  105. </datasource>
  106. <drivers>
  107. <driver name="h2" module="com.h2database.h2">
  108. <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
  109. </driver>
  110. </drivers>
  111. </datasources>
  112. </subsystem>
  113. <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
  114. <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>
  115. </subsystem>
  116. <subsystem xmlns="urn:jboss:domain:ee:1.1">
  117. <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>
  118. <jboss-descriptor-property-replacement>true</jboss-descriptor-property-replacement>
  119. </subsystem>
  120. <subsystem xmlns="urn:jboss:domain:ejb3:1.4">
  121. <session-bean>
  122. <stateless>
  123. <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
  124. </stateless>
  125. <stateful default-access-timeout="5000" cache-ref="simple"/>
  126. <singleton default-access-timeout="5000"/>
  127. </session-bean>
  128. <pools>
  129. <bean-instance-pools>
  130. <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
  131. <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
  132. </bean-instance-pools>
  133. </pools>
  134. <caches>
  135. <cache name="simple" aliases="NoPassivationCache"/>
  136. <cache name="passivating" passivation-store-ref="file" aliases="SimpleStatefulCache"/>
  137. </caches>
  138. <passivation-stores>
  139. <file-passivation-store name="file"/>
  140. </passivation-stores>
  141. <async thread-pool-name="default"/>
  142. <timer-service thread-pool-name="default">
  143. <data-store path="timer-service-data" relative-to="jboss.server.data.dir"/>
  144. </timer-service>
  145. <remote connector-ref="remoting-connector" thread-pool-name="default"/>
  146. <thread-pools>
  147. <thread-pool name="default">
  148. <max-threads count="10"/>
  149. <keepalive-time time="100" unit="milliseconds"/>
  150. </thread-pool>
  151. </thread-pools>
  152. <default-security-domain value="other"/>
  153. <default-missing-method-permissions-deny-access value="true"/>
  154. </subsystem>
  155. <subsystem xmlns="urn:jboss:domain:infinispan:1.4">
  156. <cache-container name="web" aliases="standard-session-cache" default-cache="local-web" module="org.jboss.as.clustering.web.infinispan">
  157. <local-cache name="local-web" batching="true">
  158. <file-store passivation="false" purge="false"/>
  159. </local-cache>
  160. </cache-container>
  161. <cache-container name="hibernate" default-cache="local-query" module="org.jboss.as.jpa.hibernate:4">
  162. <local-cache name="entity">
  163. <transaction mode="NON_XA"/>
  164. <eviction strategy="LRU" max-entries="10000"/>
  165. <expiration max-idle="100000"/>
  166. </local-cache>
  167. <local-cache name="local-query">
  168. <transaction mode="NONE"/>
  169. <eviction strategy="LRU" max-entries="10000"/>
  170. <expiration max-idle="100000"/>
  171. </local-cache>
  172. <local-cache name="timestamps">
  173. <transaction mode="NONE"/>
  174. <eviction strategy="NONE"/>
  175. </local-cache>
  176. </cache-container>
  177. </subsystem>
  178. <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>
  179. <subsystem xmlns="urn:jboss:domain:jca:1.1">
  180. <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>
  181. <bean-validation enabled="true"/>
  182. <default-workmanager>
  183. <short-running-threads>
  184. <core-threads count="50"/>
  185. <queue-length count="50"/>
  186. <max-threads count="50"/>
  187. <keepalive-time time="10" unit="seconds"/>
  188. </short-running-threads>
  189. <long-running-threads>
  190. <core-threads count="50"/>
  191. <queue-length count="50"/>
  192. <max-threads count="50"/>
  193. <keepalive-time time="10" unit="seconds"/>
  194. </long-running-threads>
  195. </default-workmanager>
  196. <cached-connection-manager/>
  197. </subsystem>
  198. <subsystem xmlns="urn:jboss:domain:jdr:1.0"/>
  199. <subsystem xmlns="urn:jboss:domain:jmx:1.2">
  200. <expose-resolved-model/>
  201. <expose-expression-model/>
  202. <remoting-connector/>
  203. </subsystem>
  204. <subsystem xmlns="urn:jboss:domain:jpa:1.1">
  205. <jpa default-datasource="" default-extended-persistence-inheritance="DEEP"/>
  206. </subsystem>
  207. <subsystem xmlns="urn:jboss:domain:jsf:1.0"/>
  208. <subsystem xmlns="urn:jboss:domain:mail:1.0">
  209. <mail-session jndi-name="java:jboss/mail/Default">
  210. <smtp-server outbound-socket-binding-ref="mail-smtp"/>
  211. </mail-session>
  212. </subsystem>
  213. <subsystem xmlns="urn:jboss:domain:naming:1.2">
  214. <remote-naming/>
  215. </subsystem>
  216. <subsystem xmlns="urn:jboss:domain:pojo:1.0"/>
  217. <subsystem xmlns="urn:jboss:domain:remoting:1.1">
  218. <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>
  219. </subsystem>
  220. <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"/>
  221. <subsystem xmlns="urn:jboss:domain:sar:1.0"/>
  222. <subsystem xmlns="urn:jboss:domain:security:1.2">
  223. <security-domains>
  224. <security-domain name="other" cache-type="default">
  225. <authentication>
  226. <login-module code="Remoting" flag="optional">
  227. <module-option name="password-stacking" value="useFirstPass"/>
  228. </login-module>
  229. <login-module code="RealmDirect" flag="required">
  230. <module-option name="password-stacking" value="useFirstPass"/>
  231. </login-module>
  232. </authentication>
  233. </security-domain>
  234. <security-domain name="jboss-web-policy" cache-type="default">
  235. <authorization>
  236. <policy-module code="Delegating" flag="required"/>
  237. </authorization>
  238. </security-domain>
  239. <security-domain name="jboss-ejb-policy" cache-type="default">
  240. <authorization>
  241. <policy-module code="Delegating" flag="required"/>
  242. </authorization>
  243. </security-domain>
  244. </security-domains>
  245. </subsystem>
  246. <subsystem xmlns="urn:jboss:domain:threads:1.1"/>
  247. <subsystem xmlns="urn:jboss:domain:transactions:1.2">
  248. <core-environment>
  249. <process-id>
  250. <uuid/>
  251. </process-id>
  252. </core-environment>
  253. <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
  254. <coordinator-environment default-timeout="300"/>
  255. </subsystem>
  256. <subsystem xmlns="urn:jboss:domain:web:1.4" default-virtual-server="default-host" native="false">
  257. <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
  258. <virtual-server name="default-host" enable-welcome-root="true">
  259. <alias name="localhost"/>
  260. <alias name="example.com"/>
  261. </virtual-server>
  262. </subsystem>
  263. <subsystem xmlns="urn:jboss:domain:webservices:1.2">
  264. <modify-wsdl-address>true</modify-wsdl-address>
  265. <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
  266. <endpoint-config name="Standard-Endpoint-Config"/>
  267. <endpoint-config name="Recording-Endpoint-Config">
  268. <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
  269. <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
  270. </pre-handler-chain>
  271. </endpoint-config>
  272. <client-config name="Standard-Client-Config"/>
  273. </subsystem>
  274. <subsystem xmlns="urn:jboss:domain:weld:1.0"/>
  275. </profile>
  276. <interfaces>
  277. <interface name="management">
  278. <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
  279. </interface>
  280. <interface name="public">
  281. <inet-address value="${jboss.bind.address:127.0.0.1}"/>
  282. </interface>
  283. <!-- TODO - only show this if the jacorb subsystem is added -->
  284. <interface name="unsecure">
  285. <!--
  286. ~ Used for IIOP sockets in the standard configuration.
  287. ~ To secure JacORB you need to setup SSL
  288. -->
  289. <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
  290. </interface>
  291. </interfaces>
  292. <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
  293. <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
  294. <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
  295. <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
  296. <socket-binding name="ajp" port="8009"/>
  297. <socket-binding name="http" port="8080"/>
  298. <socket-binding name="https" port="8443"/>
  299. <socket-binding name="remoting" port="4447"/>
  300. <socket-binding name="txn-recovery-environment" port="4712"/>
  301. <socket-binding name="txn-status-manager" port="4713"/>
  302. <outbound-socket-binding name="mail-smtp">
  303. <remote-destination host="localhost" port="25"/>
  304. </outbound-socket-binding>
  305. </socket-binding-group>
  306. </server>