-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathserver.xml
More file actions
93 lines (76 loc) · 3.95 KB
/
server.xml
File metadata and controls
93 lines (76 loc) · 3.95 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<server description="Server for BonusPayout sample">
<!-- Enable features -->
<featureManager>
<feature>batchManagement-1.0</feature>
<feature>localConnector-1.0</feature>
<feature>appSecurity-2.0</feature>
<!-- This sample can work without CDI configured, but the use of CDI is always strongly encouraged with batch. -->
<feature>cdi-2.0</feature>
<!-- Admin Center Java Batch tool, don't download by default -->
<feature>adminCenter-1.0</feature>
</featureManager>
<!-- A user of the Admin Center Java Batch tool must ALSO be an administrator. This is independent of whatever batch roles,
"batchAdmin", "batchSubmitter", etc. are mapped to this user.
Leave this commented out for now -->
<administrator-role>
<user>bob</user>
</administrator-role>
<!-- To access this server from a remote client add a host attribute to
the following element, e.g. host="*" -->
<httpEndpoint httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/>
<library id="DerbyLib">
<fileset dir="${shared.resource.dir}/derby"/>
</library>
<logging traceSpecification="BonusPayout=finer:com.ibm.ws.batch.JobLogger=finest"/>
<!--
Debug batch runtime:
<logging traceSpecification="BonusPayout=all=enabled:com.ibm.jbatch.*=all:com.ibm.ws.jbatch.*=all"/>
Debug batch runtime and JDBC:
<logging traceSpecification="BonusPayout=all=enabled:com.ibm.jbatch.*=all:com.ibm.ws.jbatch.*=all:RRA=all:WAS.j2c=all"/>
-->
<dataSource id="batchDB" type="javax.sql.XADataSource">
<jdbcDriver libraryRef="DerbyLib"/>
<!-- The 'db.url' databaseName is set in bootstrap.properties -->
<properties.derby.embedded createDatabase="create" databaseName="${db.url}" user="user" password="pass"/>
</dataSource>
<!-- In this sample we'll use the same database (as the runtime DB) but use a different DS to access it.
Note that, while the database can be auto-created here, the application table within it needs to be
by first running the Maven build (so the app will fail if first run in WDT without creating the tables).
-->
<dataSource id="appDB" jndiName="jdbc/batch" type="javax.sql.XADataSource">
<jdbcDriver libraryRef="DerbyLib"/>
<properties.derby.embedded createDatabase="create" databaseName="${db.url}" user="user" password="pass"/>
</dataSource>
<!--
Create a non-transactional datasource that can be used with a holdable cursor. Another option
would be to remove the attribute: transactional="false" and have a one-phase-only resource
that could be used to enlist via a "last participant" optimization -->
<dataSource id="appReadOnlyDB" jndiName="jdbc/ReadOnlyDS" transactional="false">
<!--
<dataSource id="appReadOnlyDB" jndiName="jdbc/ReadOnlyDS">
-->
<jdbcDriver libraryRef="DerbyLib"/>
<properties.derby.embedded createDatabase="create" databaseName="${db.url}" user="user" password="pass"/>
<connectionManager enableSharingForDirectLookups="false"/>
</dataSource>
<databaseStore dataSourceRef="batchDB" id="BatchDatabaseStore" schema="JBATCH" tablePrefix=""/>
<batchPersistence jobStoreRef="BatchDatabaseStore"/>
<applicationMonitor updateTrigger="mbean"/>
<keyStore id="defaultKeyStore" password="Liberty"/>
<basicRegistry id="basic" realm="ibm/api">
<user name="bob" password="bobpwd"/>
<user name="jane" password="janepwd"/>
<user name="sam" password="sampwd"/>
</basicRegistry>
<authorization-roles id="com.ibm.ws.batch">
<security-role name="batchAdmin">
<user name="bob"/>
</security-role>
<security-role name="batchAdmin">
<user name="jane"/>
</security-role>
<security-role name="batchSubmitter">
<user name="sam"/>
</security-role>
</authorization-roles>
</server>