-
Notifications
You must be signed in to change notification settings - Fork 0
/
batch-config.xml
64 lines (54 loc) · 2.63 KB
/
batch-config.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
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
<?xml version="1.0" encoding="UTF-8"?>
<component-configuration
xmlns = "http://tis.co.jp/nablarch/component-configuration">
<!-- データベース接続構成 -->
<import file="db-default.xml"/>
<!-- ハンドラーキュー構成 -->
<list name="handlerQueue">
<!-- バッチ終了コード指定ハンドラ -->
<component class="nablarch.fw.handler.StatusCodeConvertHandler" />
<!-- 共通エラーハンドラー -->
<component class="nablarch.fw.handler.GlobalErrorHandler" />
<!-- スレッドコンテキスト管理ハンドラ-->
<component class="nablarch.common.handler.threadcontext.ThreadContextHandler">
<property name="attributes">
<list>
<!-- ユーザID -->
<component class="nablarch.common.handler.threadcontext.UserIdAttribute">
<property name="sessionKey" value="user.id" />
<property name="anonymousId" value="9999999999" />
</component>
<!-- リクエストID -->
<component class="nablarch.common.handler.threadcontext.RequestIdAttribute" />
<!-- 言語 -->
<component class="nablarch.common.handler.threadcontext.LanguageAttribute">
<property name="defaultLanguage" value="ja" />
</component>
<!-- 実行時ID -->
<component class="nablarch.common.handler.threadcontext.ExecutionIdAttribute" />
</list>
</property>
</component>
<!-- データベース接続管理ハンドラ(データベースリーダ用) -->
<component class="nablarch.common.handler.DbConnectionManagementHandler" />
<!-- 業務アクションディスパッチハンドラ -->
<component class="nablarch.fw.handler.RequestPathJavaPackageMapping">
<property name="basePackage" value="nablarch.fw.batch.sample"/>
<property name="immediate" value="false" />
</component>
<!-- マルチスレッド実行制御ハンドラ -->
<component class="nablarch.fw.handler.MultiThreadExecutionHandler">
<property name="concurrentNumber" value="3" />
<property name="terminationTimeout" value="600" />
</component>
<!-- データベース接続管理ハンドラ(業務処理用) -->
<component class="nablarch.common.handler.DbConnectionManagementHandler" />
<!-- ループハンドラ -->
<component class="nablarch.fw.handler.LoopHandler" />
<!-- データリードハンドラ -->
<component class="nablarch.fw.handler.DataReadHandler">
<property name="maxCount" value="${maxExecutionCount}"/>
</component>
</list>
<!-- ハンドラーキュー構成(END) -->
</component-configuration>