standalone-xts.xml 22 KB

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