comparison jboss/config/standalone.xml @ 18:8e68113716ad

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