Project

General

Profile

Deployment » History » Version 23

chin-yeh, 07/20/2011 02:13 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
> /data/qconnector
36
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
# upload the following files to */data/qconnector/ws-mimic/* directory via ftp or sftp:
47
** 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 1 chin-yeh
# upload the following file(s) to */data/qconnector/ecosway-adaptor/* directory via ftp or sftp:
63
** application.properties
64 3 chin-yeh
** database.properties
65
# upload the following file(s) to */data/qconnector/ecosway-adaptor/registration/* directory via ftp or sftp:
66
** 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
# upload the following file(s) to */data/qconnector/ws-status/* directory via ftp or sftp:
79
** 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
** *database.properties* - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ecwyadaptor/properties/database.properties
88
# make sure *everyone* has the read-access to the above files
89
# done
90
91 1 chin-yeh
92 7 chin-yeh
h2. Deploy WAR/JAR file
93
94
* Refer to [[Deployment#Deployment]] section to see the list of available components and deployment target. 
95
* Refer to the [[Documentation#ModulesComponents|Components]] section for the latest component version.
96
97 14 chin-yeh
h3. Deploy ecwyconnector
98 11 chin-yeh
99
*Steps:*
100 22 chin-yeh
# choose one of the methods:
101
## build from *source files*:
102
### build the deployment file (see [[Build components from sources]])
103
### rename the deployment file to *ecwyconnector.war*
104
## download the binary from *internal repository* (see [[General Info:SearchBrowse artifact|Nexus]]):
105
*** component name: *ecwyconnector*
106
*** component version: _see_ [[Documentation#ModulesComponents|Latest Version]]
107 11 chin-yeh
# upload the file to target server
108
** if target server is Jboss AS 4.2.2
109
*** upload to */usr/local/jboss-4.2.2.GA/server/{profile name}/deploy*
110 12 chin-yeh
# restart jboss
111 16 chin-yeh
# done
112 11 chin-yeh
113 15 chin-yeh
h3. Deploy ecosway-adaptor
114 7 chin-yeh
115 14 chin-yeh
See [[Deploy ecosway-adaptor]]
116 1 chin-yeh
117
h3. Deploy ws-mimic
118
119
*Steps:*
120 22 chin-yeh
# choose one of the methods:
121
## build from *source files*
122
### build the deployment file (see [[Build components from sources]])
123
### rename the deployment file to *ws-mimic.war*
124
## download the binary from *internal repository* (see [[General Info:SearchBrowse artifact|Nexus]]):
125
*** component name: *ws-mimic*
126
*** component version: _see_ [[Documentation#ModulesComponents|Latest Version]]
127 16 chin-yeh
# upload the file to target server
128
<pre>
129
.../jboss5.1.0.GA/server/{profile name}/deploy
130
</pre>
131
# restart jboss
132
# done
133
134 14 chin-yeh
h3. Deploy ws-status
135 16 chin-yeh
136
See [[Deploy ws-status]]