Converting AS400 install of mrc-Productivity Series Install to m-Power on the AS400
Here is the Scenario:
- You are a current mrc-Productivity Series customer who is running BED from your AS400. Your application server (usually Tomcat) is running on the AS400.
- You want to upgrade to m-Power.
- You wish to install m-Power on the same AS400 that mrc-Productivity Series is currently installed on.
Here is what you need to do:
- Contact mrc at 630.916.0662 (in the UK call 0208-322-7720) to convert your account to m-Power. We will also send you a new license file via e-mail. Please save this as it will be necessary later on in these instructions.
- Download m-Power from here.
- FTP m-Power.zip to the root of your AS400.
- From a 5250 command line:
If the m-Power directory already exists, please rename it to m-Powerold. Note: This folder may exist for Productivity Series customers if they have ever run Data Dictionary Reports. It is no longer needed. (Additional Note: Users who had m-Power for developing over other Databases will find their m-Power folder to contain generated applications.)
jar -xf m-power.zip(This will extract m-Power to the root of your AS400.)
- Copy the license file you received in Step 1 to the /m-power/proddata/conf folder.
- Rename the server.xml file located in \m-power\tomcat\conf to server2.xml2.
- Rename the server400.xml file located in \m-power\tomcat\conf to server.xml. This configures Tomcat to run natively on the AS400.
- Rename the file mrctool.properties located in /m-power/proddata/conf to mrctool2.properties2.
- Rename the file mrctool400.properties located in /m-power/proddata/conf to mrctool.properties.
- Start Tomcat by running a SBMJOB
QSHas the command to run. Hit F4 to Prompt.
/m-power/start_tomcat400.shas the QSH command. Press enter.
- Specify a job name and job queue. Press Enter.
- Point your browser to https://AS400_SERVER_IP_ADDRESS:8011/webapp/mrc/servlet/MRCPS.MRC001 (where AS400_SERVER_IP_ADDRESS is the Server’s IP address)
- Congratulations – you have successfully converted your mrc-Productivity Series environment to m-Power.
Note: In the future, when taking m-Power updates, simply log into the customer portal, click the m-Power Update link. FTP the file to the root of your AS400. Stop Tomcat, then run QSH and this command:
jar -xf m-power_update.zip. No customized applications will be overwritten, as our updates only affect logic that we ship.
Note: The MRCTOMCAT command will no longer be used. mrc recommends creating your own CL script for easily starting & ending Tomcat.
m-Power is up and running on my AS400, but I created lots of Web 2.0 applications with mrc-Productivity Series. How can I make those applications run on my new m-Power setup?
- Copy all folders from the AS400 that exist in the \mrcjava\WEB-INF\classes and place them in \m-power\mrcjava\WEB-INF\classes.
- Currently each folder within \m-power\mrcjava\WEB-INF\classes represents a Data Dictionary. Each Data Dictionary has a file called mrc_servlet_config.xml.
- Edit this file to replace anywhere you find as400_local1 and replace it with as400_remote1
- Utilize your favorite text editor to make the “Find and Replace” for you.
- This step is needed as your applications need to now point to a Remote Database Connection. Note: Even though you are using local connections, mrc recommends utilizing Remote Database connections.
- Copy the mrc_spring_context.xml file from \mrcjava\WEB-INF\classes and place it in \m-power\mrcjava\WEB-INF\classes.
- Edit the mrc_spring_context.xml file with your favorite text editor.
- The second section should reference AS400 DB2 remote. You will need to make three changes: Note:Even though you are using local connections, mrc recommends utilizing Remote Database connections.
- Specify the AS400 IP address. This is needed for the Database Connection to know where to find your data.
- Specify the Username. This is needed as the AS400 needs a valid user profile. Note: This user profile only needs *USER access.
- Specify the User Password. This needs to be a valid password for the User listed. Note: It is recommended to set this password to not expire.
- If you have utilized any specific images in your applications, be sure to copy them from the \mrcjava context to the \m-Power context.