Modifying the webapp » History » Version 7

Chris Cannam, 2014-03-13 09:41 AM

1 2 Chris Cannam
2 1 Chris Cannam
h1. Modifying the webapp
3 1 Chris Cannam
4 2 Chris Cannam
h2. Context
5 2 Chris Cannam
6 5 Chris Cannam
You want to change something in the interactive part of the application: the JSPs (Java Server Pages) that present the application in the browser -- or the servlets that process requests and hand off to the MATLAB layer -- and deploy the changed version.
7 2 Chris Cannam
8 2 Chris Cannam
You do not want to change any of the MATLAB code (see [[Modifying the MATLAB]] if you do).
9 2 Chris Cannam
10 2 Chris Cannam
h2. You will need
11 2 Chris Cannam
12 7 Chris Cannam
 * A computer with the "MATLAB Compiler Runtime":http://www.mathworks.co.uk/products/compiler/mcr/ (MCR) installed.
13 4 Chris Cannam
 ** This computer does *not* need a MATLAB licence.
14 2 Chris Cannam
 ** The computer must be the same kind (platform, architecture etc) as the one the web app will eventually be served from. It may be simplest if it is the same machine.
15 4 Chris Cannam
 ** It does *not* need to be the same kind of machine as the one with the licensed version of MATLAB used to compile the @isvr.jar@ file (see [[Modifying the MATLAB]]).
16 3 Chris Cannam
 ** The MATLAB Compiler Runtime must be of the same version as the MATLAB release that was used to compile the @isvr.jar@ file (see [[Modifying the MATLAB]]).
17 6 Chris Cannam
 * The Java development kit (JDK) of whichever version your MATLAB runtime expects. Current MATLAB seems to call for Java 7.
18 1 Chris Cannam
 * The @servlet-api.jar@ file from your web application server.
19 7 Chris Cannam
20 7 Chris Cannam
The most likely "production" setup is to have a workstation or server with a licensed copy of MATLAB on it, and to use that for [[Modifying the MATLAB]]; and then to have a separate, different machine (such as a Linux server) without MATLAB installed but with the MCR, which is used for both building and serving the web app.
21 7 Chris Cannam
22 7 Chris Cannam
h2. What to change; limitations
23 7 Chris Cannam
24 7 Chris Cannam
h2. How to rebuild