Administration » History » Version 8
chin-yeh, 04/20/2011 04:18 PM
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 | See [[User Guide - - Batches/Daemon]] |
||
10 | |||
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 | {jboss folder}/server/{profile name}/log/qconnector/info.log |
||
16 | {jboss folder}/server/{profile name}/log/qconnector/error.log |
||
17 | 1 | chin-yeh | {jboss folder}/server/{profile name}/log/qconnector/debug.log |
18 | 4 | chin-yeh | </pre> |
19 | |||
20 | All of the log files for daemon/batches can be found in: |
||
21 | <pre> |
||
22 | /var/ecwyconnector/qconnector-batch-info.log |
||
23 | /var/ecwyconnector/qconnector-batch-error.log |
||
24 | /var/ecwyconnector/qconnector-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 | |||
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 | |||
105 | * *registration/template.properties* |
||
106 | |_.Property name|_.Description| |
||
107 | |registration.template|the template of the web service request| |
||
108 | 6 | chin-yeh | |
109 | h2. Scheduled Task |
||
110 | |||
111 | |_.Name|_.Path|_.Scheduled Time| |
||
112 | |PendingEventProcessor|/usr/ecosway/daemon/qconnector/pending_event_processor.sh|Hourly| |
||
113 | 7 | chin-yeh | |EventReport|/usr/ecosway/daemon/qconnector/event_report.sh|Daily at 0005| |