Configuration » History » Version 13
chin-yeh, 07/21/2011 09:48 AM
1 | 3 | chin-yeh | {{toc}} |
---|---|---|---|
2 | |||
3 | 1 | chin-yeh | h1. Configuration |
4 | 2 | chin-yeh | |
5 | 4 | chin-yeh | *Prerequisite:* |
6 | 2 | chin-yeh | * Completed the [[Installation]] section. |
7 | 1 | chin-yeh | |
8 | 11 | chin-yeh | This section describes how to configure the logging and settings on the application server. All of the configuration files can be found in SCM repository: |
9 | 4 | chin-yeh | > Production environment: |
10 | >> http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/production |
||
11 | 5 | chin-yeh | > Development environment: |
12 | 4 | chin-yeh | >> http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/development |
13 | 3 | chin-yeh | |
14 | 7 | chin-yeh | h2. log4j (Jboss AS 5) |
15 | 1 | chin-yeh | |
16 | Describes how to configure the *log4j* logging in Jboss AS 5. |
||
17 | 4 | chin-yeh | |
18 | *Assumes* that Jboss AS 5 is installed in: |
||
19 | > /opt/jboss-5.1.0.GA |
||
20 | |||
21 | 5 | chin-yeh | *List of the configuration files needed:* |
22 | 10 | chin-yeh | * *Note*: replace {environment} with either *production* (for production environment) or *development* (for development environment) |
23 | ** log4j-appender.xml - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ws-mimic/logging/log4j-appender.xml |
||
24 | ** log4j-category.xml - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ws-mimic/logging/log4j-category.xml |
||
25 | 1 | chin-yeh | |
26 | *Steps:* |
||
27 | 5 | chin-yeh | # login as jboss user |
28 | # <code>cd</code> to <code>/opt/jboss-5.1.0.GA/server/default-with-hornetq/conf</code> |
||
29 | <pre> |
||
30 | $ cd /opt/jboss-5.1.0.GA/server/default-with-hornetq/conf |
||
31 | </pre> |
||
32 | # open the *jboss-log4j.xml* |
||
33 | <pre> |
||
34 | $ vi jboss-log4j.xml |
||
35 | </pre> |
||
36 | # append the content of *log4j-appender.xml* (see above) into the *jboss-log4j.xml* |
||
37 | # append the content of *log4j-category.xml* (see above) into the *jboss-log4j.xml* |
||
38 | # save the file, *jboss-log4j.xml* |
||
39 | # restart the jboss |
||
40 | # done |
||
41 | 1 | chin-yeh | |
42 | 7 | chin-yeh | h2. HornetQ 2 |
43 | 1 | chin-yeh | |
44 | 7 | chin-yeh | Describes how to upload the HornetQ's configuration file. |
45 | |||
46 | *Assumes* that Jboss AS 5 is installed in: |
||
47 | > /opt/jboss-5.1.0.GA |
||
48 | |||
49 | *List of the configuration files needed:* |
||
50 | 10 | chin-yeh | * *Note*: replace {environment} with either *production* (for production environment) or *development* (for development environment) |
51 | ** hornetq-configuration.xml - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/hornetq/hornetq-configuration.xml |
||
52 | ** hornetq-jms.xml - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/hornetq/hornetq-jms.xml |
||
53 | 7 | chin-yeh | |
54 | 8 | chin-yeh | *Steps:* |
55 | # login as jboss user |
||
56 | 9 | chin-yeh | # upload and overwrite the file */opt/jboss-5.1.0.GA/server/default-with-hornetq/deploy/hornetq.sar/hornetq-configuration.xml* |
57 | # upload and overwrite the file */opt/jboss-5.1.0.GA/server/default-with-hornetq/deploy/hornetq.sar/hornetq-jms.xml* |
||
58 | 8 | chin-yeh | # restart jboss |
59 | # done |
||
60 | |||
61 | 6 | chin-yeh | h2. init script for Jboss AS 5 |
62 | |||
63 | Describes how to configure the <code>init</code> script for Jboss AS in RHEL. Once configured, the server will start the <code>Jboss AS</code> process upon bootup. However, you may skip this section if you plan to start the Jboss AS manually. |
||
64 | |||
65 | *Assumes* that Jboss AS 5 is installed in: |
||
66 | > /opt/jboss-5.1.0.GA |
||
67 | |||
68 | 1 | chin-yeh | *List of the configuration files needed:* |
69 | 10 | chin-yeh | * *Note*: replace {environment} with either *production* (for production environment) or *development* (for development environment) |
70 | * *Note*: replace {servername} with the targeted server's *hostname*, e.g. cwyrnd3-server |
||
71 | ** jbosshq - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/{servername}/jboss-init/jboss5hq |
||
72 | 6 | chin-yeh | |
73 | *Steps:* |
||
74 | # login as root |
||
75 | # upload the file, *jboss5hq* to */etc/init.d* via ftp or sftp |
||
76 | # execute the following command to put the <code>init</code> into appropriate run level directory: |
||
77 | 1 | chin-yeh | <pre> |
78 | 6 | chin-yeh | # chkconfig --add jboss5hq |
79 | </pre> |
||
80 | 7 | chin-yeh | # done |
81 | 12 | chin-yeh | |
82 | |||
83 | 13 | chin-yeh | h2. Table Used |
84 | 12 | chin-yeh | |
85 | Create the *EVENT_LOG* table in the *USA* database: |
||
86 | <pre> |
||
87 | <code class="sql"> |
||
88 | create table ECOS.EVENT_LOG( |
||
89 | id int NOT NULL GENERATED ALWAYS AS IDENTITY, |
||
90 | description clob(512K), |
||
91 | event_type varchar(100), |
||
92 | status varchar(100), |
||
93 | last_updated timestamp, |
||
94 | error_code varchar(20), |
||
95 | primary key (id) |
||
96 | ); |
||
97 | </code> |
||
98 | </pre> |