Project

General

Profile

Deployment » History » Version 16

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