standalone-osgi.xml 16 KB

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