Project

General

Profile

Deployment Guide » History » Revision 4

Revision 3 (chin-yeh, 02/22/2012 10:33 AM) → Revision 4/9 (chin-yeh, 02/22/2012 10:49 AM)

{{toc}} 

 h1. Deployment Guide 

 This guide is mainly for *first-time deployment*. For the subsequences deployment, you should only deploy the files you have modified. 

 > see also [[Programming Guide]] 

 *Steps:* _Steps:_ 
 # Prepare the following files and these files can be found in [[wiki#SCM|SCM]]: 
 ** _Java class files_ 
 *** all of the files in <code>my.com.eCosway.mpay</code> 
 ** _properties files_ 
 *** <code>/resources/properties/mpay.properties</code> 
 # Execute the [[Specification#Tables-Used|MPAY_INTERFACE]] SQL to create the payment interface table 
 # Follow the instructions in this [[FAQ#Exception-Illegal-key-size-or-default-parameters-being-thrown]] to remove the restriction on cryptographic strength. 
 # Go to the *Files* tab, and then download the following libraries & certificate files: libraries: 
 ** <code>bcprov-jdk14-125.jar</code> 
 ** <code>MerchantAdmin.jar</code> 
 ** <code>MerchantClient.jar</code> 
 ** choose *one* only: 
 *** <code>cert_test.zip</code> - for *test* environment 
 *** <code>cert_live.zip</code> - for *live* environment 
 # Extract the downloaded certificate file _(cert_test.zip *or* cert_live.zip)_ and place it into the following location: 
 ** <code>server.crt</code> - place it in <code>/data/mpay</code> 
 ** <code>merchant.p12</code> - place it in <code>/data/mpay</code> 
 # Prepare the following files and these files can be found in [[wiki#SCM|SCM]]: 
 ** _Java class files_ 
 *** all of the files in <code>my.com.eCosway.mpay</code> 
 ** _properties files_ 
 *** <code>/resources/properties/mpay.properties</code> 
 # Deploy those files that prepared in the previous step to application server: 
 ** _Java class files_ - to <code>WEB-INF/classes</code> 
 ** _properties files_ - to <code>WEB-INF/classes</code> 
 # Restart the application server 
 # Done