www.krengeltech.com

RXS Set Up New Environment

From Wiki

User Guide

Different uses suggest the need for multiple separate environments. For instance, each developer might have a different “play area” so they can do business without worrying about getting in the way of other programmers. Perhaps each business unit or application used to provide a web service needs separation from the others. To facilitate creating new environments, the RPG-XML Suite (RXS) provides a command to call. Issuing the following command sets up a new environment named MYRXS2 running on port 8182 based on library RXS:


     CALL RXS/NEWENV PARM('RXS' '8182' 'MYRXS2')


This will create a new library named MYRXS2 and a new Apache server instance named MYRXS2. Note that the name is limited to 10 characters to facilitate the library name limitation. You will now have your own RXS and EXAMPLE source physical files, along with the Included RXS Example Programs that come with the base install. To test the new environments web service run the following command:


     STRTCPSVR SERVER(*HTTP) HTTPSVR(MYRXS2)


Then point your browser to http://[yourIBMiIP]:8182/MYRXS2/rxs1, making sure to place your IBM i IP address in the URL instead of [yourIBMiIP].