Deployment » History » Version 21
Chooi-Mey, 01/12/2011 10:29 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 | 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 | ** *application.properties* - http://192.168.2.13:50000/svn/qconnector/trunk/qconnector-config/{environment}/ws-status/properties/database.properties |
||
75 | |||
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 | |||
83 | 7 | chin-yeh | h2. Deploy WAR/JAR file |
84 | |||
85 | * Refer to [[Deployment#Deployment]] section to see the list of available components and deployment target. |
||
86 | * Refer to the [[Documentation#ModulesComponents|Components]] section for the latest component version. |
||
87 | |||
88 | 14 | chin-yeh | h3. Deploy ecwyconnector |
89 | 11 | chin-yeh | |
90 | *Steps:* |
||
91 | # build the deployment file (see [[Build components from sources]]) |
||
92 | # rename the deployment file to *ecwyconnector.war* |
||
93 | # upload the file to target server |
||
94 | ** if target server is Jboss AS 4.2.2 |
||
95 | *** upload to */usr/local/jboss-4.2.2.GA/server/{profile name}/deploy* |
||
96 | 12 | chin-yeh | # restart jboss |
97 | 16 | chin-yeh | # done |
98 | 11 | chin-yeh | |
99 | 14 | chin-yeh | h3. Deploy ecosway-adaptor |
100 | 7 | chin-yeh | |
101 | 15 | chin-yeh | See [[Deploy ecosway-adaptor]] |
102 | 7 | chin-yeh | |
103 | 14 | chin-yeh | h3. Deploy ws-mimic |
104 | |||
105 | 16 | chin-yeh | *Steps:* |
106 | # build the deployment file (see [[Build components from sources]]) |
||
107 | # rename the deployment file to *ws-mimic.war* |
||
108 | # upload the file to target server |
||
109 | <pre> |
||
110 | .../jboss5.1.0.GA/server/{profile name}/deploy |
||
111 | </pre> |
||
112 | # restart jboss |
||
113 | # done |
||
114 | |||
115 | 14 | chin-yeh | h3. Deploy ws-status |
116 | 16 | chin-yeh | |
117 | See [[Deploy ws-status]] |