{"id":1037,"date":"2010-03-21T17:59:14","date_gmt":"2010-03-21T17:59:14","guid":{"rendered":"http:\/\/www.mrc-productivity.com\/techblog\/?p=1037"},"modified":"2023-05-12T13:24:05","modified_gmt":"2023-05-12T19:24:05","slug":"moving-generated-servlets-to-windows-production-from-as400-server","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/techblog\/?ht_kb=moving-generated-servlets-to-windows-production-from-as400-server","title":{"rendered":"Moving Generated Servlets to Windows Production from AS400 Server"},"content":{"rendered":"<p><!-- Begin Content --><\/p>\n<h1>Move Generated Java Servlets to Serve from Windows (Production Instance) for Web 2.0 Applications<\/h1>\n<p>&nbsp;<\/p>\n<p>This document assumes you have generated Java servlets on the iSeries.  Then you wish to serve those apps from a Windows server in a production instance.  Please follow these steps:<\/p>\n<ol>\n<li class=\"padleft\">Install a Run-Time instance of m-Power\/mrc-Productivity series by downloading the file from <a href=\"https:\/\/www.mrc-productivity.com\/products\/mpower\/m-power.zip\">here<\/a>.  Be sure to unzip it to your c:\\.<\/li>\n<li class=\"padleft\">Copy the contents of the data dictionary (DD) directory (\/mrcjava\/WEB-INF\/classes\/DD) from your iSeries IFS to the serving directory of your Microsoft Windows server (m-power\\mrcjava\\WEB-INF\\classes\\).<\/li>\n<li class=\"padleft\">Update the Global Properties file (m-power\\mrcjava\\WEB-INF\\classes\\mrc-spring-context.xml).  This file allows connections to be made to your AS400.<\/li>\n<li class=\"padleft\">This step needs to only be done the first time you setup your environment.<\/li>\n<li class=\"padleft\">You will need to add a user name\/password, and {HOST} information to the AS400_REMOTE Section.<\/li>\n<\/ol>\n<p>Here is what it looks like when you begin:<\/p>\n<p><img decoding=\"async\" class=\"border\" src=\"https:\/\/www.mrc-productivity.com\/docs\/images\/moveservlets1.png\" \/><\/p>\n<p>Here is what it needs to look like after you have finished:<\/p>\n<p><img decoding=\"async\" class=\"border\" src=\"https:\/\/www.mrc-productivity.com\/docs\/images\/moveservlets2.png\" \/><\/p>\n<p>Be sure to change &#8220;192.268.1.1&#8221; to the IP address of your AS400.<\/p>\n<p>Be sure to change the &#8220;mrcuser&#8221; to a valid user and &#8220;mrcpw&#8221; to a valid password.<\/p>\n<ol>\n<li class=\"padleft\">Next, we need to change the mrc_servlet_config.xml file located in your Data Dictionary Folder.<\/li>\n<li class=\"padleft\">The only change needed here is to change the datasource location.<\/li>\n<li class=\"padleft\">The change needs to be made from as400_local1 to as400_remote1.<\/li>\n<\/ol>\n<p>Here is what the file looks like before the change:<\/p>\n<p><img decoding=\"async\" class=\"border\" src=\"https:\/\/www.mrc-productivity.com\/docs\/images\/moveservlets3.png\" \/><\/p>\n<p>Here is what it needs to look like when you have finished:<\/p>\n<p><img decoding=\"async\" class=\"border\" src=\"https:\/\/www.mrc-productivity.com\/docs\/images\/moveservlets4.png\" \/><\/p>\n<ol>\n<li class=\"padleft\">Start your Tomcat (Either by the batch file located in c:\\m-power or via service).<\/li>\n<li class=\"padleft\">To execute the apps, point your browser to https:\/\/x.x.x.x:8011\/mrcjava\/servlet\/DD.I00010s (where x.x.x.x is the IP address of the Windows server, DD is the data dictionary containing the servlets on that Windows server, and I00010s is an example servlet application).<\/li>\n<li class=\"padleft\">Consider setting up Tomcat as a Windows service.  This <a href=\"https:\/\/www.mrc-productivity.com\/docs\/m-power-admin\/tomcat-faq#Service\">document<\/a> explains how.<\/li>\n<\/ol>\n<p><!-- End Content --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Move Generated Java Servlets to Serve from Windows (Production Instance) for Web 2.0 Applications &nbsp; This document assumes you have generated Java servlets on the iSeries. Then you wish to serve those apps from a Windows server in a production instance. Please follow these steps: Install a Run-Time instance of&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"open","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[],"ht-kb-tag":[],"class_list":["post-1037","ht_kb","type-ht_kb","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/1037","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1037"}],"version-history":[{"count":3,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/1037\/revisions"}],"predecessor-version":[{"id":10670,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/1037\/revisions\/10670"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1037"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=1037"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=1037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}