Project

General

Profile

Administration » History » Version 15

chin-yeh, 07/22/2011 10:48 AM

1 2 chin-yeh
{{toc}}
2
3 1 chin-yeh
h1. Administration
4 2 chin-yeh
5
Describes how to administrate the common tasks, for instance, update properties files, change logging level and etc.
6
7 8 chin-yeh
h2. User Guide - Batches/Daemon
8
9 9 chin-yeh
See [[User Guide - Batches/Daemon]]
10 8 chin-yeh
11 2 chin-yeh
h2. Monitor Log Files
12
13 4 chin-yeh
All of the log files can be found in:
14 2 chin-yeh
<pre>
15 15 chin-yeh
/var/ecwyconnector/info.log
16
/var/ecwyconnector/error.log
17
/var/ecwyconnector/debug.log
18 4 chin-yeh
</pre>
19
20
All of the log files for daemon/batches can be found in:
21
<pre>
22 15 chin-yeh
/var/ecwyconnector-batch/batch-info.log
23
/var/ecwyconnector-batch/batch-error.log
24
/var/ecwyconnector-batch/batch-debug.log
25 2 chin-yeh
</pre>
26
27
The log file rotates *daily* or every *10MB* for maximum *100 files*.
28
29
h2. Change Logging Level
30
31
The available logging level:
32
* *INFO* - default level
33
* *DEBUG* - should not set to this level unless necessary
34
* *ERROR*
35
* *WARN*
36
37 3 chin-yeh
_JBoss 4.0.x_
38
> {jboss folder}/server/{profile name}/conf/log4j.xml
39
40
_Jboss 4.2.x / Jboss 5.1.x_
41
> {jboss folder}/server/{profile name}/conf/jboss-log4j.xml
42
43 5 chin-yeh
_Batches/Daemon_
44
> /usr/ecosway/daemon/qconnector/config/log4j.xml
45
46 2 chin-yeh
h2. Update Properties Files
47
48
All of the properties files can be found in:
49
<pre>
50
/data/qconnector
51
</pre>
52
53
h3. ws-mimic
54
55
List of the properties files:
56
* /data/qconnector/application.properties
57
* /data/qconnector/jndi-factory.properties
58
59
* *application.properties*
60
|_.Property name|_.Description|
61
|ws.url|The URL of the web service which process the request|
62
|status.callback.url|the callback URL of the caller to update the status, e.g. Dot Com mall |
63
64
* *jndi-factory.properties*
65
|_.Property name|_.Description|
66
|jndi.initial|the initial context of the JNDI|
67
|jndi.url|the URL of the JNDI provider (JMS)|
68
|jndi.url.pkgs|the naming packages of the JNDI|
69
|jndi.connection.factory|the JNDI name of the JMS connection factory|
70
|session.cache.size|the number of JMS session to be cached|
71
|request.queue.name|the name of the JMS queue which keeps the web service request|
72
|response.queue.name|the name of the JMS queue which keeps the web service response|
73
74
h3. ws-status
75
76
List of the properties files:
77
* /data/qconnector/ws-status/database.properties
78
79
* database.properties
80
|_.Property name|_.Description|
81
|jndi.datasource|the JNDI name of the data source|
82
|db.dialect|the database dialect, e.g. DB2|
83
|db.show.sql|indicates whether to show the SQL used|
84
|db.sql.comment|indicates whether to show the comment of the SQL used|
85
86
h3. ecosway-adaptor
87
88
List of the properties file:
89
* /data/qconnector/ecosway-adaptor/application.properties
90
* /data/qconnector/ecosway-adaptor/database.properties
91
* /data/qconnector/ecosway-adaptor/registration/template.properties
92
93
* *application.properties*
94
|_.Property name|_.Description|
95
|ws.url|the URL of the web service. Currently this is the URL of the mimic of the actual web service|
96 14 chin-yeh
|connector.user|the username of the actual web service|
97
|connector.password|the password of the actual web service|
98 2 chin-yeh
99
* *database.properties*
100
|_.Property name|_.Description|
101
|jndi.datasource|the JNDI name of the data source|
102
|db.dialect|the database dialect, e.g. DB2|
103
|db.show.sql|indicates whether to show the SQL used|
104
|db.sql.comment|indicates whether to show the comment of the SQL used|
105
106 6 chin-yeh
107 11 chin-yeh
h2. Housekeeping
108
109
The following files (e.g. log file, report file), which are older than *30-day*, will be deleted:
110
* *application log folder:*
111
** <pre><<jboss profile>>/log/qconnector</pre>
112
* *daemon/batch log folder:*
113
** <pre>/var/ecwyconnector</pre>
114
* *output folder of generated report:*
115
** <pre>/usr/ecosway/daemon/qconnector/reports</pre>
116
117 12 chin-yeh
The housekeeping script can be found in SVN:
118
> http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/housekeeping
119 11 chin-yeh
120 6 chin-yeh
h2. Scheduled Task
121
122 13 chin-yeh
*Daemon/Batch:*
123 6 chin-yeh
|_.Name|_.Path|_.Scheduled Time|
124
|PendingEventProcessor|/usr/ecosway/daemon/qconnector/pending_event_processor.sh|Hourly|
125 10 Chooi-Mey
|EventReport|/usr/ecosway/daemon/qconnector/event_report.sh|Daily at 0105|
126 13 chin-yeh
127
*Housekeeping:*
128
|_.Name|_.Path|_.Scheduled Time|
129
|Remove application log files which older than 30-day|/usr/ecosway/housekeeping/scripts/delete_old_webapp_log_files.sh|Daily at 0010|
130
|Remove daemon log files which older than 30-day|/usr/ecosway/housekeeping/scripts/delete_old_daemon_log_files.sh|Daily at 0010|
131
|Remove old generated report files which older than 30-day|/usr/ecosway/housekeeping/scripts/delete_old_report_files.sh|Daily at 0010|