standalone-full.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  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.cmp"/>
  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.jacorb"/>
  11. <extension module="org.jboss.as.jaxr"/>
  12. <extension module="org.jboss.as.jaxrs"/>
  13. <extension module="org.jboss.as.jdr"/>
  14. <extension module="org.jboss.as.jmx"/>
  15. <extension module="org.jboss.as.jpa"/>
  16. <extension module="org.jboss.as.jsf"/>
  17. <extension module="org.jboss.as.jsr77"/>
  18. <extension module="org.jboss.as.logging"/>
  19. <extension module="org.jboss.as.mail"/>
  20. <extension module="org.jboss.as.messaging"/>
  21. <extension module="org.jboss.as.naming"/>
  22. <extension module="org.jboss.as.pojo"/>
  23. <extension module="org.jboss.as.remoting"/>
  24. <extension module="org.jboss.as.sar"/>
  25. <extension module="org.jboss.as.security"/>
  26. <extension module="org.jboss.as.threads"/>
  27. <extension module="org.jboss.as.transactions"/>
  28. <extension module="org.jboss.as.web"/>
  29. <extension module="org.jboss.as.webservices"/>
  30. <extension module="org.jboss.as.weld"/>
  31. </extensions>
  32. <management>
  33. <security-realms>
  34. <security-realm name="ManagementRealm">
  35. <authentication>
  36. <local default-user="$local"/>
  37. <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
  38. </authentication>
  39. </security-realm>
  40. <security-realm name="ApplicationRealm">
  41. <authentication>
  42. <local default-user="$local" allowed-users="*"/>
  43. <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
  44. </authentication>
  45. <authorization>
  46. <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
  47. </authorization>
  48. </security-realm>
  49. </security-realms>
  50. <management-interfaces>
  51. <native-interface security-realm="ManagementRealm">
  52. <socket-binding native="management-native"/>
  53. </native-interface>
  54. <http-interface security-realm="ManagementRealm">
  55. <socket-binding http="management-http"/>
  56. </http-interface>
  57. </management-interfaces>
  58. </management>
  59. <profile>
  60. <subsystem xmlns="urn:jboss:domain:logging:1.2">
  61. <console-handler name="CONSOLE">
  62. <level name="INFO"/>
  63. <formatter>
  64. <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
  65. </formatter>
  66. </console-handler>
  67. <periodic-rotating-file-handler name="FILE" autoflush="true">
  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. <append value="true"/>
  74. </periodic-rotating-file-handler>
  75. <logger category="com.arjuna">
  76. <level name="WARN"/>
  77. </logger>
  78. <logger category="org.apache.tomcat.util.modeler">
  79. <level name="WARN"/>
  80. </logger>
  81. <logger category="org.jboss.as.config">
  82. <level name="DEBUG"/>
  83. </logger>
  84. <logger category="sun.rmi">
  85. <level name="WARN"/>
  86. </logger>
  87. <logger category="jacorb">
  88. <level name="WARN"/>
  89. </logger>
  90. <logger category="jacorb.config">
  91. <level name="ERROR"/>
  92. </logger>
  93. <root-logger>
  94. <level name="INFO"/>
  95. <handlers>
  96. <handler name="CONSOLE"/>
  97. <handler name="FILE"/>
  98. </handlers>
  99. </root-logger>
  100. </subsystem>
  101. <subsystem xmlns="urn:jboss:domain:cmp:1.0"/>
  102. <subsystem xmlns="urn:jboss:domain:datasources:1.1">
  103. <datasources>
  104. <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
  105. <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
  106. <driver>h2</driver>
  107. <security>
  108. <user-name>sa</user-name>
  109. <password>sa</password>
  110. </security>
  111. </datasource>
  112. <drivers>
  113. <driver name="h2" module="com.h2database.h2">
  114. <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
  115. </driver>
  116. </drivers>
  117. </datasources>
  118. </subsystem>
  119. <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
  120. <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>
  121. </subsystem>
  122. <subsystem xmlns="urn:jboss:domain:ee:1.1">
  123. <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>
  124. <jboss-descriptor-property-replacement>true</jboss-descriptor-property-replacement>
  125. </subsystem>
  126. <subsystem xmlns="urn:jboss:domain:ejb3:1.4">
  127. <session-bean>
  128. <stateless>
  129. <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
  130. </stateless>
  131. <stateful default-access-timeout="5000" cache-ref="simple"/>
  132. <singleton default-access-timeout="5000"/>
  133. </session-bean>
  134. <mdb>
  135. <resource-adapter-ref resource-adapter-name="hornetq-ra"/>
  136. <bean-instance-pool-ref pool-name="mdb-strict-max-pool"/>
  137. </mdb>
  138. <pools>
  139. <bean-instance-pools>
  140. <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
  141. <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
  142. </bean-instance-pools>
  143. </pools>
  144. <caches>
  145. <cache name="simple" aliases="NoPassivationCache"/>
  146. <cache name="passivating" passivation-store-ref="file" aliases="SimpleStatefulCache"/>
  147. </caches>
  148. <passivation-stores>
  149. <file-passivation-store name="file"/>
  150. </passivation-stores>
  151. <async thread-pool-name="default"/>
  152. <timer-service thread-pool-name="default">
  153. <data-store path="timer-service-data" relative-to="jboss.server.data.dir"/>
  154. </timer-service>
  155. <remote connector-ref="remoting-connector" thread-pool-name="default"/>
  156. <thread-pools>
  157. <thread-pool name="default">
  158. <max-threads count="10"/>
  159. <keepalive-time time="100" unit="milliseconds"/>
  160. </thread-pool>
  161. </thread-pools>
  162. <iiop enable-by-default="false" use-qualified-name="false"/>
  163. <default-security-domain value="other"/>
  164. <default-missing-method-permissions-deny-access value="true"/>
  165. </subsystem>
  166. <subsystem xmlns="urn:jboss:domain:infinispan:1.4">
  167. <cache-container name="web" aliases="standard-session-cache" default-cache="local-web" module="org.jboss.as.clustering.web.infinispan">
  168. <local-cache name="local-web" batching="true">
  169. <file-store passivation="false" purge="false"/>
  170. </local-cache>
  171. </cache-container>
  172. <cache-container name="hibernate" default-cache="local-query" module="org.jboss.as.jpa.hibernate:4">
  173. <local-cache name="entity">
  174. <transaction mode="NON_XA"/>
  175. <eviction strategy="LRU" max-entries="10000"/>
  176. <expiration max-idle="100000"/>
  177. </local-cache>
  178. <local-cache name="local-query">
  179. <transaction mode="NONE"/>
  180. <eviction strategy="LRU" max-entries="10000"/>
  181. <expiration max-idle="100000"/>
  182. </local-cache>
  183. <local-cache name="timestamps">
  184. <transaction mode="NONE"/>
  185. <eviction strategy="NONE"/>
  186. </local-cache>
  187. </cache-container>
  188. </subsystem>
  189. <subsystem xmlns="urn:jboss:domain:jacorb:1.3">
  190. <orb socket-binding="jacorb" ssl-socket-binding="jacorb-ssl">
  191. <initializers transactions="spec" security="identity"/>
  192. </orb>
  193. </subsystem>
  194. <subsystem xmlns="urn:jboss:domain:jaxr:1.1">
  195. <connection-factory jndi-name="java:jboss/jaxr/ConnectionFactory"/>
  196. </subsystem>
  197. <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>
  198. <subsystem xmlns="urn:jboss:domain:jca:1.1">
  199. <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>
  200. <bean-validation enabled="true"/>
  201. <default-workmanager>
  202. <short-running-threads>
  203. <core-threads count="50"/>
  204. <queue-length count="50"/>
  205. <max-threads count="50"/>
  206. <keepalive-time time="10" unit="seconds"/>
  207. </short-running-threads>
  208. <long-running-threads>
  209. <core-threads count="50"/>
  210. <queue-length count="50"/>
  211. <max-threads count="50"/>
  212. <keepalive-time time="10" unit="seconds"/>
  213. </long-running-threads>
  214. </default-workmanager>
  215. <cached-connection-manager/>
  216. </subsystem>
  217. <subsystem xmlns="urn:jboss:domain:jdr:1.0"/>
  218. <subsystem xmlns="urn:jboss:domain:jmx:1.2">
  219. <expose-resolved-model/>
  220. <expose-expression-model/>
  221. <remoting-connector/>
  222. </subsystem>
  223. <subsystem xmlns="urn:jboss:domain:jpa:1.1">
  224. <jpa default-datasource="" default-extended-persistence-inheritance="DEEP"/>
  225. </subsystem>
  226. <subsystem xmlns="urn:jboss:domain:jsf:1.0"/>
  227. <subsystem xmlns="urn:jboss:domain:jsr77:1.0"/>
  228. <subsystem xmlns="urn:jboss:domain:mail:1.0">
  229. <mail-session jndi-name="java:jboss/mail/Default">
  230. <smtp-server outbound-socket-binding-ref="mail-smtp"/>
  231. </mail-session>
  232. </subsystem>
  233. <subsystem xmlns="urn:jboss:domain:messaging:1.3">
  234. <hornetq-server>
  235. <persistence-enabled>true</persistence-enabled>
  236. <journal-file-size>102400</journal-file-size>
  237. <journal-min-files>2</journal-min-files>
  238. <connectors>
  239. <netty-connector name="netty" socket-binding="messaging"/>
  240. <netty-connector name="netty-throughput" socket-binding="messaging-throughput">
  241. <param key="batch-delay" value="50"/>
  242. </netty-connector>
  243. <in-vm-connector name="in-vm" server-id="0"/>
  244. </connectors>
  245. <acceptors>
  246. <netty-acceptor name="netty" socket-binding="messaging"/>
  247. <netty-acceptor name="netty-throughput" socket-binding="messaging-throughput">
  248. <param key="batch-delay" value="50"/>
  249. <param key="direct-deliver" value="false"/>
  250. </netty-acceptor>
  251. <in-vm-acceptor name="in-vm" server-id="0"/>
  252. </acceptors>
  253. <security-settings>
  254. <security-setting match="#">
  255. <permission type="send" roles="guest"/>
  256. <permission type="consume" roles="guest"/>
  257. <permission type="createNonDurableQueue" roles="guest"/>
  258. <permission type="deleteNonDurableQueue" roles="guest"/>
  259. </security-setting>
  260. </security-settings>
  261. <address-settings>
  262. <!--default for catch all-->
  263. <address-setting match="#">
  264. <dead-letter-address>jms.queue.DLQ</dead-letter-address>
  265. <expiry-address>jms.queue.ExpiryQueue</expiry-address>
  266. <redelivery-delay>0</redelivery-delay>
  267. <max-size-bytes>10485760</max-size-bytes>
  268. <address-full-policy>BLOCK</address-full-policy>
  269. <message-counter-history-day-limit>10</message-counter-history-day-limit>
  270. </address-setting>
  271. </address-settings>
  272. <jms-connection-factories>
  273. <connection-factory name="InVmConnectionFactory">
  274. <connectors>
  275. <connector-ref connector-name="in-vm"/>
  276. </connectors>
  277. <entries>
  278. <entry name="java:/ConnectionFactory"/>
  279. </entries>
  280. </connection-factory>
  281. <connection-factory name="RemoteConnectionFactory">
  282. <connectors>
  283. <connector-ref connector-name="netty"/>
  284. </connectors>
  285. <entries>
  286. <entry name="java:jboss/exported/jms/RemoteConnectionFactory"/>
  287. </entries>
  288. </connection-factory>
  289. <pooled-connection-factory name="hornetq-ra">
  290. <transaction mode="xa"/>
  291. <connectors>
  292. <connector-ref connector-name="in-vm"/>
  293. </connectors>
  294. <entries>
  295. <entry name="java:/JmsXA"/>
  296. </entries>
  297. </pooled-connection-factory>
  298. </jms-connection-factories>
  299. </hornetq-server>
  300. </subsystem>
  301. <subsystem xmlns="urn:jboss:domain:naming:1.2">
  302. <remote-naming/>
  303. </subsystem>
  304. <subsystem xmlns="urn:jboss:domain:pojo:1.0"/>
  305. <subsystem xmlns="urn:jboss:domain:remoting:1.1">
  306. <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>
  307. </subsystem>
  308. <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"/>
  309. <subsystem xmlns="urn:jboss:domain:sar:1.0"/>
  310. <subsystem xmlns="urn:jboss:domain:security:1.2">
  311. <security-domains>
  312. <security-domain name="other" cache-type="default">
  313. <authentication>
  314. <login-module code="Remoting" flag="optional">
  315. <module-option name="password-stacking" value="useFirstPass"/>
  316. </login-module>
  317. <login-module code="RealmDirect" flag="required">
  318. <module-option name="password-stacking" value="useFirstPass"/>
  319. </login-module>
  320. </authentication>
  321. </security-domain>
  322. <security-domain name="jboss-web-policy" cache-type="default">
  323. <authorization>
  324. <policy-module code="Delegating" flag="required"/>
  325. </authorization>
  326. </security-domain>
  327. <security-domain name="jboss-ejb-policy" cache-type="default">
  328. <authorization>
  329. <policy-module code="Delegating" flag="required"/>
  330. </authorization>
  331. </security-domain>
  332. </security-domains>
  333. </subsystem>
  334. <subsystem xmlns="urn:jboss:domain:threads:1.1"/>
  335. <subsystem xmlns="urn:jboss:domain:transactions:1.2">
  336. <core-environment>
  337. <process-id>
  338. <uuid/>
  339. </process-id>
  340. </core-environment>
  341. <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
  342. <coordinator-environment default-timeout="300"/>
  343. </subsystem>
  344. <subsystem xmlns="urn:jboss:domain:web:1.4" default-virtual-server="default-host" native="false">
  345. <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
  346. <virtual-server name="default-host" enable-welcome-root="true">
  347. <alias name="localhost"/>
  348. <alias name="example.com"/>
  349. </virtual-server>
  350. </subsystem>
  351. <subsystem xmlns="urn:jboss:domain:webservices:1.2">
  352. <modify-wsdl-address>true</modify-wsdl-address>
  353. <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
  354. <endpoint-config name="Standard-Endpoint-Config"/>
  355. <endpoint-config name="Recording-Endpoint-Config">
  356. <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
  357. <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
  358. </pre-handler-chain>
  359. </endpoint-config>
  360. <client-config name="Standard-Client-Config"/>
  361. </subsystem>
  362. <subsystem xmlns="urn:jboss:domain:weld:1.0"/>
  363. </profile>
  364. <interfaces>
  365. <interface name="management">
  366. <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
  367. </interface>
  368. <interface name="public">
  369. <inet-address value="${jboss.bind.address:127.0.0.1}"/>
  370. </interface>
  371. <!-- TODO - only show this if the jacorb subsystem is added -->
  372. <interface name="unsecure">
  373. <!--
  374. ~ Used for IIOP sockets in the standard configuration.
  375. ~ To secure JacORB you need to setup SSL
  376. -->
  377. <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
  378. </interface>
  379. </interfaces>
  380. <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
  381. <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
  382. <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
  383. <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
  384. <socket-binding name="ajp" port="8009"/>
  385. <socket-binding name="http" port="8080"/>
  386. <socket-binding name="https" port="8443"/>
  387. <socket-binding name="jacorb" interface="unsecure" port="3528"/>
  388. <socket-binding name="jacorb-ssl" interface="unsecure" port="3529"/>
  389. <socket-binding name="messaging" port="5445"/>
  390. <socket-binding name="messaging-group" port="0" multicast-address="${jboss.messaging.group.address:231.7.7.7}" multicast-port="${jboss.messaging.group.port:9876}"/>
  391. <socket-binding name="messaging-throughput" port="5455"/>
  392. <socket-binding name="remoting" port="4447"/>
  393. <socket-binding name="txn-recovery-environment" port="4712"/>
  394. <socket-binding name="txn-status-manager" port="4713"/>
  395. <outbound-socket-binding name="mail-smtp">
  396. <remote-destination host="localhost" port="25"/>
  397. </outbound-socket-binding>
  398. </socket-binding-group>
  399. </server>