Project

General

Profile

Configuration » History » Version 9

chin-yeh, 10/28/2010 11:18 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 4 chin-yeh
This section describes how to configure the logging and settings on the application server. All of the configuration files can be found from SCM repository:
9
> 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
* *note*: replace {environment} with either *production* (for production environment) or *development* (for development environment)
23 4 chin-yeh
* http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ws-mimic/logging/log4j-appender.xml
24 1 chin-yeh
* http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ws-mimic/logging/log4j-category.xml
25
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
* *note*: replace {environment} with either *production* (for production environment) or *development* (for development environment)
51
* http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/hornetq/hornetq-configuration.xml
52
* http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/hornetq/hornetq-jms.xml
53
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 6 chin-yeh
* *note*: replace {environment} with either *production* (for production environment) or *development* (for development environment)
70 7 chin-yeh
* *note*: replace {servername} with the targeted server's hostname, e.g. cwyrnd3-server
71 6 chin-yeh
* http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/{servername}/jboss-init/jboss5hq
72
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