Project

General

Profile

Deployment » History » Version 17

chin-yeh, 11/01/2010 11:35 AM

1 2 chin-yeh
{{toc}}
2
3 1 chin-yeh
h1. Deployment
4 2 chin-yeh
5 4 chin-yeh
*Prerequisite:*
6
* Completed [[Installation]] section
7
* Completed [[Configuration]] section
8
9 2 chin-yeh
This section describes how to deploy components/modules to the servers.
10
11
Below table summarizes the deployment's tasks:
12
|_.Component|_.Type|_.Target|
13 10 chin-yeh
|ecwyconnector|WAR|Dot Com Mall / QueueSystem|
14 2 chin-yeh
|ecosway-adaptor|JAR|US Mall|
15
|ws-mimic|WAR|US Mall / QueueSystem|
16
|ws-status|WAR|US Mall|
17
18
In general, this deployment task involves 2 parts: 
19 9 chin-yeh
# [[Deployment#Upload-properties-files|Upload properties files]]
20 8 chin-yeh
# [[Deployment#Deploy-WARJAR-file|Deploy WAR/JAR file]]
21 2 chin-yeh
22
23
h2. Upload properties files
24 1 chin-yeh
25
*This section is dedicated for the first time deployment only.* For the subsequent deployment, you should update the existing properties files if needed. 
26 17 chin-yeh
27
All of the properties files can be found in SVN repository:
28
> http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config
29 2 chin-yeh
30
All of the properties files should store in the directory:
31
> /data/qconnector
32
33
h3. ws-mimic
34
35 3 chin-yeh
*List of the properties files to be uploaded:*
36 5 chin-yeh
* *Note*: replace {environment} with either *production* (for production environment) or *development* (for development environment)
37
** *application.properties* - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ws-mimic/properties/application.properties
38
** *jndi-factory.properties* - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ws-mimic/properties/jndi-factory.properties
39 2 chin-yeh
40 1 chin-yeh
*Steps:*
41 3 chin-yeh
# see the [[Deployment#Deployment]] section for the deployment target
42
# upload the following files to */data/qconnector/ws-mimic/* directory via ftp or sftp:
43
** application.properties
44
** jndi-factory.properties
45
# make sure *everyone* has the read-access to the above files
46
# done
47 2 chin-yeh
48 1 chin-yeh
h3. ecosway-adaptor
49
50 3 chin-yeh
*List of the properties files to be uploaded:*
51 5 chin-yeh
* *Note*: replace {environment} with either *production* (for production environment) or *development* (for development environment)
52
** *application.properties* - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ecosway-adaptor/properties/application.properties
53
** *database.properties* - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ecosway-adaptor/properties/database.properties
54
** *registration/template.properties* - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ecosway-adaptor/properties/registration/template.properties
55 3 chin-yeh
56
*Steps:*
57
# see the [[Deployment#Deployment]] section for the deployment target
58 1 chin-yeh
# upload the following file(s) to */data/qconnector/ecosway-adaptor/* directory via ftp or sftp:
59
** application.properties
60 3 chin-yeh
** database.properties
61
# upload the following file(s) to */data/qconnector/ecosway-adaptor/registration/* directory via ftp or sftp:
62
** template.properties
63
# make sure *everyone* has the read-access to the above files
64
# done
65 5 chin-yeh
66
h3. ws-status
67 2 chin-yeh
68 6 chin-yeh
*List of the properties files to be uploaded:*
69
* *Note*: replace {environment} with either *production* (for production environment) or *development* (for development environment)
70
** *application.properties* - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ws-status/properties/database.properties
71
72
*Steps:*
73
# see the [[Deployment#Deployment]] section for the deployment target
74
# upload the following file(s) to */data/qconnector/ws-status/* directory via ftp or sftp:
75
** database.properties
76
# make sure *everyone* has the read-access to the above files
77 1 chin-yeh
# done
78
79 7 chin-yeh
h2. Deploy WAR/JAR file
80
81
* Refer to [[Deployment#Deployment]] section to see the list of available components and deployment target. 
82
* Refer to the [[Documentation#ModulesComponents|Components]] section for the latest component version.
83
84 14 chin-yeh
h3. Deploy ecwyconnector
85 11 chin-yeh
86
*Steps:*
87
# build the deployment file (see [[Build components from sources]])
88
# rename the deployment file to *ecwyconnector.war*
89
# upload the file to target server
90
** if target server is Jboss AS 4.2.2
91
*** upload to */usr/local/jboss-4.2.2.GA/server/{profile name}/deploy*
92 12 chin-yeh
# restart jboss
93 16 chin-yeh
# done
94 11 chin-yeh
95 14 chin-yeh
h3. Deploy ecosway-adaptor
96 7 chin-yeh
97 15 chin-yeh
See [[Deploy ecosway-adaptor]]
98 7 chin-yeh
99 14 chin-yeh
h3. Deploy ws-mimic
100
101 16 chin-yeh
*Steps:*
102
# build the deployment file (see [[Build components from sources]])
103
# rename the deployment file to *ws-mimic.war*
104
# upload the file to target server
105
<pre>
106
.../jboss5.1.0.GA/server/{profile name}/deploy
107
</pre>
108
# restart jboss
109
# done
110
111 14 chin-yeh
h3. Deploy ws-status
112 16 chin-yeh
113
See [[Deploy ws-status]]