standalone-osgi-only.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <server xmlns="urn:jboss:domain:1.4">
  3. <extensions>
  4. <extension module="org.jboss.as.configadmin"/>
  5. <extension module="org.jboss.as.deployment-scanner"/>
  6. <extension module="org.jboss.as.ee"/>
  7. <extension module="org.jboss.as.logging"/>
  8. <extension module="org.jboss.as.naming"/>
  9. <extension module="org.jboss.as.osgi"/>
  10. <extension module="org.jboss.as.remoting"/>
  11. </extensions>
  12. <management>
  13. <security-realms>
  14. <security-realm name="ManagementRealm">
  15. <authentication>
  16. <local default-user="$local"/>
  17. <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
  18. </authentication>
  19. </security-realm>
  20. <security-realm name="ApplicationRealm">
  21. <authentication>
  22. <local default-user="$local" allowed-users="*"/>
  23. <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
  24. </authentication>
  25. <authorization>
  26. <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
  27. </authorization>
  28. </security-realm>
  29. </security-realms>
  30. <management-interfaces>
  31. <native-interface security-realm="ManagementRealm">
  32. <socket-binding native="management-native"/>
  33. </native-interface>
  34. <http-interface security-realm="ManagementRealm">
  35. <socket-binding http="management-http"/>
  36. </http-interface>
  37. </management-interfaces>
  38. </management>
  39. <profile>
  40. <subsystem xmlns="urn:jboss:domain:logging:1.2">
  41. <console-handler name="CONSOLE">
  42. <level name="INFO"/>
  43. <formatter>
  44. <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
  45. </formatter>
  46. </console-handler>
  47. <periodic-rotating-file-handler name="FILE" autoflush="true">
  48. <formatter>
  49. <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
  50. </formatter>
  51. <file relative-to="jboss.server.log.dir" path="server.log"/>
  52. <suffix value=".yyyy-MM-dd"/>
  53. <append value="false"/>
  54. </periodic-rotating-file-handler>
  55. <logger category="org.jboss.osgi">
  56. <level name="DEBUG"/>
  57. </logger>
  58. <root-logger>
  59. <level name="INFO"/>
  60. <handlers>
  61. <handler name="CONSOLE"/>
  62. <handler name="FILE"/>
  63. </handlers>
  64. </root-logger>
  65. </subsystem>
  66. <subsystem xmlns="urn:jboss:domain:configadmin:1.0"/>
  67. <subsystem xmlns="urn:jboss:domain:osgi:1.2" activation="eager">
  68. <properties>
  69. <!-- Specifies the beginning start level of the framework -->
  70. <property name="org.osgi.framework.startlevel.beginning">1</property>
  71. </properties>
  72. <capabilities>
  73. <!-- bundles started in startlevel 1 -->
  74. <capability name="org.apache.felix.log" startlevel="1"/>
  75. <capability name="org.jboss.osgi.logging" startlevel="1"/>
  76. <capability name="org.apache.felix.configadmin" startlevel="1"/>
  77. <capability name="org.jboss.as.osgi.configadmin" startlevel="1"/>
  78. </capabilities>
  79. </subsystem>
  80. <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
  81. <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>
  82. </subsystem>
  83. <subsystem xmlns="urn:jboss:domain:ee:1.1">
  84. <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>
  85. <jboss-descriptor-property-replacement>true</jboss-descriptor-property-replacement>
  86. </subsystem>
  87. <subsystem xmlns="urn:jboss:domain:naming:1.2">
  88. <remote-naming/>
  89. </subsystem>
  90. <subsystem xmlns="urn:jboss:domain:remoting:1.1">
  91. <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>
  92. </subsystem>
  93. </profile>
  94. <interfaces>
  95. <interface name="management">
  96. <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
  97. </interface>
  98. <interface name="public">
  99. <inet-address value="${jboss.bind.address:127.0.0.1}"/>
  100. </interface>
  101. </interfaces>
  102. <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
  103. <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
  104. <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
  105. <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
  106. <socket-binding name="remoting" port="4447"/>
  107. </socket-binding-group>
  108. </server>