Project

General

Profile

Deployment Guide » History » Version 4

chin-yeh, 02/22/2012 10:49 AM

1 1 chin-yeh
{{toc}}
2
3
h1. Deployment Guide
4 2 chin-yeh
5 3 chin-yeh
This guide is mainly for *first-time deployment*. For the subsequences deployment, you should only deploy the files you have modified.
6
7 2 chin-yeh
> see also [[Programming Guide]]
8 3 chin-yeh
9 4 chin-yeh
*Steps:*
10
# Execute the [[Specification#Tables-Used|MPAY_INTERFACE]] SQL to create the payment interface table
11
# Follow the instructions in this [[FAQ#Exception-Illegal-key-size-or-default-parameters-being-thrown]] to remove the restriction on cryptographic strength.
12
# Go to the *Files* tab, and then download the following libraries & certificate files:
13
** <code>bcprov-jdk14-125.jar</code>
14
** <code>MerchantAdmin.jar</code>
15
** <code>MerchantClient.jar</code>
16
** choose *one* only:
17
*** <code>cert_test.zip</code> - for *test* environment
18
*** <code>cert_live.zip</code> - for *live* environment
19
# Extract the downloaded certificate file _(cert_test.zip *or* cert_live.zip)_ and place it into the following location:
20
** <code>server.crt</code> - place it in <code>/data/mpay</code>
21
** <code>merchant.p12</code> - place it in <code>/data/mpay</code>
22 1 chin-yeh
# Prepare the following files and these files can be found in [[wiki#SCM|SCM]]:
23
** _Java class files_
24
*** all of the files in <code>my.com.eCosway.mpay</code>
25 3 chin-yeh
** _properties files_
26
*** <code>/resources/properties/mpay.properties</code>
27 4 chin-yeh
# Deploy those files that prepared in the previous step to application server:
28
** _Java class files_ - to <code>WEB-INF/classes</code>
29
** _properties files_ - to <code>WEB-INF/classes</code>
30
# Restart the application server
31
# Done