Project

General

Profile

Deployment » History » Version 25

chin-yeh, 07/22/2011 02:08 PM

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 21 Chooi-Mey
Deployment Architecture:
12
!DeploymentView.JPG!
13
14
15 20 chin-yeh
The deployment's tasks are summarized in the below table:
16 2 chin-yeh
|_.Component|_.Type|_.Target|
17 10 chin-yeh
|ecwyconnector|WAR|Dot Com Mall / QueueSystem|
18 2 chin-yeh
|ecosway-adaptor|JAR|US Mall|
19
|ws-mimic|WAR|US Mall / QueueSystem|
20
|ws-status|WAR|US Mall|
21
22
In general, this deployment task involves 2 parts: 
23 9 chin-yeh
# [[Deployment#Upload-properties-files|Upload properties files]]
24 8 chin-yeh
# [[Deployment#Deploy-WARJAR-file|Deploy WAR/JAR file]]
25 2 chin-yeh
26
27
h2. Upload properties files
28 1 chin-yeh
29 19 chin-yeh
*This section is dedicated for the first time deployment only.* For subsequent deployment, you should update the existing properties files when needed. 
30 17 chin-yeh
31
All of the properties files can be found in SVN repository:
32
> http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config
33 2 chin-yeh
34
All of the properties files should store in the directory:
35 25 chin-yeh
> /data/ecwyconnector
36 2 chin-yeh
37
h3. ws-mimic
38
39 3 chin-yeh
*List of the properties files to be uploaded:*
40 5 chin-yeh
* *Note*: replace {environment} with either *production* (for production environment) or *development* (for development environment)
41
** *application.properties* - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ws-mimic/properties/application.properties
42
** *jndi-factory.properties* - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ws-mimic/properties/jndi-factory.properties
43 2 chin-yeh
44 1 chin-yeh
*Steps:*
45 3 chin-yeh
# see the [[Deployment#Deployment]] section for the deployment target
46 25 chin-yeh
# upload the following files to */data/ecwyconnector/ws-mimic/* directory via ftp or sftp:
47 3 chin-yeh
** application.properties
48
** jndi-factory.properties
49
# make sure *everyone* has the read-access to the above files
50
# done
51 2 chin-yeh
52 1 chin-yeh
h3. ecosway-adaptor
53
54 3 chin-yeh
*List of the properties files to be uploaded:*
55 5 chin-yeh
* *Note*: replace {environment} with either *production* (for production environment) or *development* (for development environment)
56
** *application.properties* - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ecosway-adaptor/properties/application.properties
57
** *database.properties* - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ecosway-adaptor/properties/database.properties
58
** *registration/template.properties* - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ecosway-adaptor/properties/registration/template.properties
59 3 chin-yeh
60
*Steps:*
61
# see the [[Deployment#Deployment]] section for the deployment target
62 25 chin-yeh
# upload the following file(s) to */data/ecwyconnector/ecosway-adaptor/* directory via ftp or sftp:
63 1 chin-yeh
** application.properties
64 3 chin-yeh
** database.properties
65 25 chin-yeh
# upload the following file(s) to */data/ecwyconnector/ecosway-adaptor/registration/* directory via ftp or sftp:
66 3 chin-yeh
** template.properties
67
# make sure *everyone* has the read-access to the above files
68
# done
69 5 chin-yeh
70
h3. ws-status
71 2 chin-yeh
72 6 chin-yeh
*List of the properties files to be uploaded:*
73
* *Note*: replace {environment} with either *production* (for production environment) or *development* (for development environment)
74 23 chin-yeh
** *database.properties* - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ws-status/properties/database.properties
75 6 chin-yeh
76
*Steps:*
77
# see the [[Deployment#Deployment]] section for the deployment target
78 25 chin-yeh
# upload the following file(s) to */data/ecwyconnector/ws-status/* directory via ftp or sftp:
79 6 chin-yeh
** database.properties
80
# make sure *everyone* has the read-access to the above files
81 1 chin-yeh
# done
82 23 chin-yeh
83
h3. ecwyadaptor
84
85
*List of the properties files to be uploaded:*
86
* *Note*: replace {environment} with either *production* (for production environment) or *development* (for development environment)
87 24 chin-yeh
88
*Steps:*
89
# see the [[Deployment#Deployment]] section for the deployment target
90 25 chin-yeh
# upload the following file(s) to */data/ecwyconnector/ecwyadaptor/* directory via ftp or sftp:
91 23 chin-yeh
** *database.properties* - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ecwyadaptor/properties/database.properties
92
# make sure *everyone* has the read-access to the above files
93
# done
94
95 1 chin-yeh
96 7 chin-yeh
h2. Deploy WAR/JAR file
97
98
* Refer to [[Deployment#Deployment]] section to see the list of available components and deployment target. 
99
* Refer to the [[Documentation#ModulesComponents|Components]] section for the latest component version.
100
101 14 chin-yeh
h3. Deploy ecwyconnector
102 11 chin-yeh
103
*Steps:*
104 22 chin-yeh
# choose one of the methods:
105
## build from *source files*:
106
### build the deployment file (see [[Build components from sources]])
107
### rename the deployment file to *ecwyconnector.war*
108
## download the binary from *internal repository* (see [[General Info:SearchBrowse artifact|Nexus]]):
109
*** component name: *ecwyconnector*
110
*** component version: _see_ [[Documentation#ModulesComponents|Latest Version]]
111 11 chin-yeh
# upload the file to target server
112
** if target server is Jboss AS 4.2.2
113
*** upload to */usr/local/jboss-4.2.2.GA/server/{profile name}/deploy*
114 12 chin-yeh
# restart jboss
115 16 chin-yeh
# done
116 11 chin-yeh
117 15 chin-yeh
h3. Deploy ecosway-adaptor
118 7 chin-yeh
119 14 chin-yeh
See [[Deploy ecosway-adaptor]]
120 1 chin-yeh
121
h3. Deploy ws-mimic
122
123
*Steps:*
124 22 chin-yeh
# choose one of the methods:
125
## build from *source files*
126
### build the deployment file (see [[Build components from sources]])
127
### rename the deployment file to *ws-mimic.war*
128
## download the binary from *internal repository* (see [[General Info:SearchBrowse artifact|Nexus]]):
129
*** component name: *ws-mimic*
130
*** component version: _see_ [[Documentation#ModulesComponents|Latest Version]]
131 16 chin-yeh
# upload the file to target server
132
<pre>
133
.../jboss5.1.0.GA/server/{profile name}/deploy
134
</pre>
135
# restart jboss
136
# done
137
138 14 chin-yeh
h3. Deploy ws-status
139 16 chin-yeh
140
See [[Deploy ws-status]]