/
server.xml
39 lines (34 loc) · 1.35 KB
/
server.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<server description="defaultServer">
<!-- Enable features -->
<featureManager>
<feature>cdi-4.0</feature>
<feature>jaxb-4.0</feature>
<feature>faces-4.0</feature>
<feature>restfulWS-3.0</feature>
<feature>enterpriseBeansLite-4.0</feature>
<feature>persistence-3.0</feature>
</featureManager>
<!-- Define http & https endpoints -->
<httpEndpoint id="defaultHttpEndpoint" host="*"
httpPort="9080" httpsPort="9443" />
<tcpOptions soReuseAddr="true" />
<!-- Automatically expand WAR files and EAR files -->
<applicationManager autoExpand="true" />
<!-- Define web application with its context root and location -->
<webApplication id="javaee-cafe" contextRoot="/"
location="${server.config.dir}/apps/javaee-cafe.war">
</webApplication>
<dataSource id="JavaEECafeDB" jndiName="jdbc/JavaEECafeDB">
<jdbcDriver libraryRef="driver-library" />
<properties.microsoft.sqlserver
serverName="${db.server.name}"
portNumber="1433"
databaseName="${db.name}"
user="${db.user}"
password="${db.password}" />
</dataSource>
<library id="driver-library">
<fileset dir="${shared.resource.dir}" includes="*.jar" />
</library>
</server>