Project

General

Profile

Administration » History » Version 20

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