m-Power Documentation

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:

1. Contact mrc at 630.916.0662 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 in these instructions.

2. Download m-Power from here .

3. FTP m-Power.zip to the root of your AS400.

4. From a 5250 command line:

1. Type: WRKLNK OBJ('/m-power')

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.)

2. Type: QSH

3. Type: cd /

4. Type: jar -xf m-power.zip (This will extract m-Power to the root of your AS400.

5. Copy the license file you received in Step 1 to the /m-power/proddata/conf folder.

6. Rename the server.xml file located in \m-power\tomcat\conf to server2.xml2.

7. Rename the server400.xml file located in \m-power\tomcat\conf to server.xml. This configures Tomcat to run natively on the AS400.

8. Rename the file mrctool.properties located in /m-power/proddata/conf to mrctool2.properties2.

9. Rename the file mrctool400.properties located in /m-power/proddata/conf to mrctool.properties.

10. Start Tomcat by running a SBMJOB

1. Enter QSH as the command to run. Hit F4 to Prompt

2. Enter /m-power/start_tomcat400.sh as the QSH command. Press enter.

3. Specify a Job name and job queue. Press Enter

11. Point your browser to http://AS400_SERVER_IP_ADDRESS:8011/webapp/mrc/servlet/MRCPS.MRC001 (where AS400_SERVER_IP_ADDRESS is the Server's IP address)

12. Congratulations – you have successfully converted your mrc-Productivity Series environment to m-Power. Please see this document to learn how to convert your Productivity Series Data Dictionaries 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?

1. Copy all folders from the AS400 that exist in the \mrcjava\WEB-INF\classes and place them in \m-power\mrcjava\WEB-INF\classes

2. 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.

a. Edit this file to replace anywhere you find as400_local1 and replace it with as400_remote1

b. Utilize your favorite text editor to make the “Find and Replace” for you.

c. 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.

d. More information on the mrc_servlet_config file can be found here .

3. Copy the mrc_spring_context.xml file from \mrcjava\WEB-INF\classes and place it in \m-power\mrcjava\WEB-INF\classes

a. Edit the mrc_spring_context.xml file with your favorite text editor.

b. 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.

i. Specify the AS400 IP address. This is needed for the Database Connection to know where to find your data.

ii. Specify the Username. This is needed as the AS400 needs a valid user profile. Note: This user profile only needs *USER access.

iii. 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.

c. More information on the mrc_spring_context.xml can be found here .

4. If you have utilized any specific images in your applications, be sure to copy them from the \mrcjava context to the \m-Power context.


subscribe to newsletter
Want to receive weekly insight, tips, viewpoints, and news from a 28-year industry veteran? Enter your email below to subscribe!

m-Power Customers

Customers


mrc (US)
555 Waters Edge
Suite 120
Lombard, IL 60148
630-916-0662
mrc (UK)
Argyle House
1 Dee Road
Richmond, Surrey
TW9 2JN
+44-20-8322-7720