Online documentation - Websydian v6.0

Users Guide | Patterns Reference | WebsydianExpress | Search

 

Starting iSeries Application Service

 

 

 


Introduction

This document describes how to deploy, tune, and troubleshoot the Application Service for iSeries.

Please note that this document regularly is subject to changes.

It is required that the user deploying the iSeries Application Service has knowledge of the iSeries. Especially with reference to job management.

The Application Service is the component of the Distributed Websydian Architecture that is created by the developer in the Plex development environment. Further information on the Application Service can be found in this document.

Prerequisites

In order to start the iSeries Application Service  a number of issues have to be addressed. Please make sure the following prerequisites have been performed or verified.

OS/400 software

Make sure that OS/400 V5R1 or later with the latest cumulative PTF package is installed, contact IBM for information pertaining the latest cumulative PTF package.

Make sure that the following OS/400 software features have been installed on the iSeries

Information pertaining installed software features can be listed by issuing the command

===>DSPSFWRSC [Enter]

Plex runtime objects

Make sure the Plex runtime objects are installed on the iSeries. Consult the Plex manual on how to install the Plex runtime objects for iSeries.

Websydian runtime objects

Make sure the Websydian runtime objects are installed, including the latest PTFs on the iSeries including the java runtime files for the DWA environment which are to be placed in the integrated file system (IFS).

For further information on installing the Websydian runtime on the iSeries read this document.

Websydian Server deployed and running

Make sure that the Websydian Server has been deployed and is running.

For further information on deployment of the Websydian Server go to the main page of the DWA Deployment Guides.

Fill out the Configuration Sheet

All deployment guides are based on information found in the Configuration Sheets, make sure to print and fill out the configuration sheet for deploying the Java Application Service on iSeries.

The bullet numbers, e.g. , found in this document refers to the Configuration Sheet.

Starting the iSeries Application Service

Check and set data areas

Before starting the iSeries Application Service a number of data areas need to be checked for the correct information. The data areas are supplied with the Websydian iSeries runtime objects with the default settings, it is recommended to copy these data areas to the library of the application.

The data areas and there content are:

  Dataarea Description Default value
  CGIICCSID The codepage used to translate incoming URL encoded information. Often not changed. 00819 (ISO-8859-1)
  CGIOCCSID The codepage used to translate outgoing URL encoded information. Often not changed. 00819 (ISO-8859-1)
IFSCCSID The codepage used to translate the document templates located in the integrated file system on the iSeries. 01252 (Windows Latin-1)
WSYDDATMSK Date mask used when transferring date fields from input. yyyy/mm/dd
WSYDDECSEP Decimal separator used when transferring numeric fields from input. . (dot)
WSYDPATH Path identifying the location of the document templates. /WSYD600/TEMPLATES/
WSYDTHUSEP Thousand separator used when transferring numeric fields from input. , (comma)
WSYDTMEMSK Time mask used when transferring time fields from input. hh:mm:ss
WSYDTMSMSK Timestamp mask used when transferring timestamp fields from input. yyyy/mm/dd hh:mm:ss

Use the WRKDTAARA command to get a list of the available data areas and the option to change them.
 

===>WRKDTAARA DTAARA(WSYD600/*ALL) [Enter]

Create or check the job description to be used

Make sure that a job description is available in order to start the Application Service. We recommend copying the job description WSYDJOBD located in the Websydian runtime library to the library of the application.

Make sure that the job description has the following libraries in the initial library list, adding all other libraries that the application may require.

Replacing the [AppLibrary] by the name of the library of the application and the [PlexLibrary] by the name of the library containing the iSeries Plex runtime objects.

Make sure that the user specified in the job description is correct, *RQD is not allowed.

Copy Document Templates to the iSeries

Create the directory specified and copy the document templates used by the Application to the iSeries IFS, using the location from the configuration sheet and entered in the data area wsydpath..

Start the Application Service

The iSeries Application Service is started by issuing the command STRAS which is located in the Websydian runtime library.

Add the Websydian runtime libraries to the library list, making sure that the library WSYD600PTF is located before the library WSYD600.

===>ADDLIBLE WSYD600 [Enter]

 

===>ADDLIBLE WSYD600PTF [Enter]

 

Submit the iSeries Application Service using the STRAS command followed by F4.

===>STRAS [F4]


                       Start Application Service (STRAS)                       
                                                                                
 Type choices, press Enter.                                                     
                                                                                
 Application Service Listener . .  MyAppSvc      Character value               
 Websydian Server IP Address  . .  hostname                                    
 Websydian Server TCP Port  . . .  8189          Number                        
 Application Service IP address    hostname                                    
 Application Service TCP port . .  11001         Number                        
 Number of Application Services .  1             Number                        
 Service name . . . . . . . . . .  SVCNAME                                     
 Job name . . . . . . . . . . . .  WSYDASPP      Character value               
 Job description  . . . . . . . .  WSYDJOBD      Name                          
   Library  . . . . . . . . . . .     WSYD600     Name                          
 Job queue  . . . . . . . . . . .  QINTER        Name                          
   Library  . . . . . . . . . . .     QGPL        Name                          
 Init library list  . . . . . . .  *JOBD         Name, *CURRENT, *JOBD...      
 User . . . . . . . . . . . . . .  *CURRENT      Name, *CURRENT, *JOBD         
                                                                                
                                                                                
                                                                         Bottom 
 F3=Exit   F4=Prompt   F5=Refresh   F10=Additional parameters   F12=Cancel      
 F13=How to use this display        F24=More keys                               
                                                                                

Verifying the iSeries Application Service

After starting the Application Services verify that they are started and have reported information to the Websydian Server.

Using the command WRKLNK you are able to view the log file of the Websydian Server

===>WRKLNK '/Websydian/WSYD600/logs/*' [Enter]

 

                             Work with Object Links

 Directory  . . . . :   /websydian/WSYD600/logs

 Type options, press Enter.
 2=Edit   3=Copy   4=Remove   5=Display   7=Rename   8=Display attributes
 11=Change current directory ...

 Opt Object link            Type     Attribute     Text
    wsydsrv.log             STMF








                                                                   Slut
 Parameters or command
 ===>                                                                         
 F3=Exit   F4=Prompt   F5=Refresh   F9=Retrieve   F12=Cancel   F17=Position to
 F22=Display entire field   F23=More options
 

 

 

 

Select option 5 in front of the wsydsrv.log file for view and press enter.

 Edit File: /websydian/WSYD600/logs/wsydsrv.log                                 
 Record :       1   of       3 by   8            Column :   30     99 by  74    
 Control :                                                                      
                                                                                
CMD 3....+....4....+....5....+....6....+....7....+....8....+....9....+....0.... 
    a**************                                                             
 ead-0:INFO] - License info: Websydian Server Unregistered Basic expires at 'Ne
ead-0:INFO] - DWA protocol: Version 2.1. 
ead-0:INFO] - Waiting for connection on 192.168.102.20:41130... 
ead-0:DEBUG] - Receiving... 
ead-2:DEBUG] - Got packet... 
ead-2:DEBUG] - Got PUTTOKEN... 
ead-2:DEBUG] - PUTTOKEN - svcname:EXPRESS timeout:30 sessname:WSYD_SID ipaddr:1
ead-2:INFO] - Token received. Service name: DWAWSYDAPP, IP Address: 192.168.102
    ***************                                                             
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
 F2=Save   F3=Save/Exit   F12=Exit   F15=Services   F16=Repeat find             
 F17=Repeat change  F19=Left  F20=Right                                          

Input 30 in column and press enter.

The log file shows all communication with the Websydian Server, note this is only the case when log level is set to TRACE. Make sure that the log holds information about the packages PUTTOKEN identifying all Application Services started. Please note that the log information above is an example.

If the information is not in the log file or the log file is not present please proceed to the Troubleshooting the iSeries Application Service section of this document.

Tuning the iSeries Application Service

The process of tuning the iSeries Application Services follows normal guidelines of tuning programs on the iSeries.

For information on getting the best performance of the entire deployed DWA Application please read this document.

Troubleshooting the iSeries Application Service

When troubleshooting the iSeries Application Service check for  the following:

  1. Make sure that the job has been submitted and is not waiting in the job queue.
     
  2. Check if the job has ended successfully or abnormally. This can be checked by viewing the messages of the user submitting the job.

    Use the command DSPMSG to view the messages of a particular user.
     

    ===>DSPMSG <username> [Enter]

     

  3. If the job is not active, or has ended abnormally, or successfully check the output queue QEZJOBLOG for any spool files pertaining the job running the iSeries Application Service.


    Use the command WRKOUTQ to view the contents of the output queue QEZJOBLOG

    ===>WRKOUTQ QEZJOBLOG [Enter]

     

The joblog created by the iSeries often shows the reason for the end of the iSeries Application Service. This is a list of the most common errors:

Job Description error, user not correct, library list incorrect etc.

Change the job description used and start the iSeries Application Service again.

The iSeries Application Service reports a Websydian error message

A complete list of possible errors are located here, for the most often seen errors see below: