How do you set up a CADS server to autostart on the iSeries?
In the CADS Installation Guide, (Chapter 3) Configuring Repository Autostart section it tells you how to set up your CADS server to autostart.
A few items in this section are confusing or incorrect - below is the updated info.
NOTE: In the examples below, the Websphere instance name is DEPPESGA1.
Configuring Repository Autostart
WebSphere Application Server runs in its own subsystem, called QWAS61, which is installed
with the application server. To configure application servers to start automatically when the
QWAS61 subsystem starts:
Step 1 - Give your user profile authority to the QWAS61/QWASJOBD job description and
QWAS61/QWAS61 subsystem description.
Step 2 - For each profile, create a duplicate of the job description used by WebSphere Application Server profiles. Use the following command on the command line:
CRTDUPOBJ OBJ(QWASJOBD) FROMLIB(QWAS61) OBJTYPE(*JOBD) TOLIB(myserv) NEWOBJ(mywasjobd)
An example of the dup object created:
CRTDUPOBJ OBJ(QWASJOBD) FROMLIB(QWAS61) OBJTYPE(*JOBD) TOLIB(DEPPESGA1) NEWOBJ(QWASJOBD)
Step 3 - Use the CHGJOBD command to change the newly created job description such that the Request data or command (RQSDTA) field starts the new server. For example, to start the default profile's application server (server1) when the subsystem is started, set the RQSDTA field as follows:
'QSYS/CALL PGM(product_library/QWASSTRSVR) PARM("-profilePath" user_data_root/profiles/default""-server""server1")'
The command listed above is Not Correct, use a command like below for request data:
QSYS/CALL PGM(QWAS61A/QWASSTRSVR) PARM('-profilePath' '/qibm/UserData/WebSphere/AppServer/V61/Express/profiles/DEPPESGA1' '-server' 'DEPPESGA1')
Step 4 - Add an autostart job entry to the QWAS61/QWAS61 subsystem. Enter the following command from the CL command line:
ADDAJE SBSD(QWAS61/QWAS61) JOB(myserv) JOBD(myserv/mywasjobd)
Example of the ADDAJE used is below:
ADDAJE SBSD(QWAS61/QWAS61) JOB(DEPPESGA1) JOBD(DEPPESGA1/QWASJOBD)
Optional: Configure the system such that the QWAS61 subsystem starts during system startup.
To enable automatic startup, add the following line to the system startup program: STRSBS
Note: The system startup program is defined by the QSTRUPPGM system value. TCP/IP must
be active before WebSphere Application Server subsystem can start. Ensure that the STRTCP
command runs before the STRSBS QWAS61/QWAS61 command in your startup program or
in your autostart job