standalone-hornetq-colocated.xml 23 KB

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