Deployment » History » Version 22
chin-yeh, 04/22/2011 03:41 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 | ** *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 | 22 | chin-yeh | # choose one of the methods: |
92 | ## build from *source files*: |
||
93 | ### build the deployment file (see [[Build components from sources]]) |
||
94 | ### rename the deployment file to *ecwyconnector.war* |
||
95 | ## download the binary from *internal repository* (see [[General Info:SearchBrowse artifact|Nexus]]): |
||
96 | *** component name: *ecwyconnector* |
||
97 | *** component version: _see_ [[Documentation#ModulesComponents|Latest Version]] |
||
98 | 11 | chin-yeh | # upload the file to target server |
99 | ** if target server is Jboss AS 4.2.2 |
||
100 | *** upload to */usr/local/jboss-4.2.2.GA/server/{profile name}/deploy* |
||
101 | 12 | chin-yeh | # restart jboss |
102 | 16 | chin-yeh | # done |
103 | 11 | chin-yeh | |
104 | 15 | chin-yeh | h3. Deploy ecosway-adaptor |
105 | 7 | chin-yeh | |
106 | 14 | chin-yeh | See [[Deploy ecosway-adaptor]] |
107 | 1 | chin-yeh | |
108 | h3. Deploy ws-mimic |
||
109 | |||
110 | *Steps:* |
||
111 | 22 | chin-yeh | # choose one of the methods: |
112 | ## build from *source files* |
||
113 | ### build the deployment file (see [[Build components from sources]]) |
||
114 | ### rename the deployment file to *ws-mimic.war* |
||
115 | ## download the binary from *internal repository* (see [[General Info:SearchBrowse artifact|Nexus]]): |
||
116 | *** component name: *ws-mimic* |
||
117 | *** component version: _see_ [[Documentation#ModulesComponents|Latest Version]] |
||
118 | 16 | chin-yeh | # upload the file to target server |
119 | <pre> |
||
120 | .../jboss5.1.0.GA/server/{profile name}/deploy |
||
121 | </pre> |
||
122 | # restart jboss |
||
123 | # done |
||
124 | |||
125 | 14 | chin-yeh | h3. Deploy ws-status |
126 | 16 | chin-yeh | |
127 | See [[Deploy ws-status]] |