•
•
• TuxJES is an Oracle Tuxedo application. Most of the TuxJES components are Oracle Tuxedo client or Oracle Tuxedo servers. You must first configure TuxJES as an Oracle Tuxedo application. The environment variable JESDIR must be configured correctly which points to the directory where TuxJES installed.Listing 1 shows is an Oracle Tuxedo configuration file (UBBCONFIG) example segment for a TuxJES system.The following TuxJES servers should be included in the Oracle Tuxedo configuration file (UBBCONFIG):
Note: For the TuxJES administration server ARTJESADM, a TuxJES configuration file should be specified using the -i option. In the Oracle Tuxedo configuration file (UBBCONFIG), ARTJESADM should be configured in front of ARTJESCONV, ARTJESINITIATOR, or ARTJESPURGE servers.A /Q queue space with name JES2QSPACE must be created for a TuxJES system. And some /Q queues should be created within this queue space. TuxJES provides a sample shell script (jesqinit) to create the queue space (JES2QSPACE) and the queues. For more information, see the Oracle Tuxedo Application Runtime Batch Reference Guide.The default job class if the job class is not set in JCL. It is an optional attribute. The default job class is A if this attribute is not set.If it is not set, only one job can be in execution status for a job name. NODELAY will remove the dependency check. The default value is delay execution.S: Job submission event.C: Job conversion complete event.E:Job execution complete event.P: Job purge event.A: all supported eventsIf EVENTPOST is not specified, no events are posted. The data buffer with event post is FML32 type and the fields are defined in tuxjes/include/jesflds.h.TuxJES Security ConfigurationTuxJES leverages the Oracle Tuxedo security mechanism to implement authentication. If authentication is enabled, a security profile should be generated using the genapprofile utility and it should be used as a artjesadmin parameter to access the TuxJES system. The user used in the profile will be the job owner. A job only can be administrated by its owner, such as cancel, purge, hold and release. A job can be viewed by everybody. If a job is without owner, it can be manipulated by everyone.After the TuxJES system starts, you can use the artjesadmin utility to submit a job, hold a job, release a job, cancel a job, purge a job, display the job information, or subscribe event for job status change.The scriptfile parameter is the job script to be submitted. The job script is generated by Oracle Tuxedo ART Workbench from a JCL.artjesadmin also supports direct job submission using the following format:
artjesadmin -i scriptfileYou can display the information of a job or a series of jobs using the artjesadmin subcommand printjob:-n jobname: Display jobs with given job name-j jobid: Display a particular job information-c job_class: Display a particular class jobs information-a: Display all jobs-v: Verbose modeThe output of the printjob subcommand includes:EXECUTING: a job is runningCONVING: a job waiting for conversionWAITING: a job waiting for executionDONE: a job finished successfullyFAIL: a job finished but failedHOLD_WAITING: a job is in hold state after conversionHOLD_CONVING: a job is in hold state without conversionINDOUBT: a job is in doubt state due to its initiator restarted
• You can hold a job or a series of jobs which are in CONVING or WAITING status using the artjesadmin subcommand holdjob:-n jobname: hold jobs with given job name-j jobid: hold a particular job-c job_class: hold a particular class jobs-a: hold all jobsYou can release a job or a series of jobs which are in HOLD_WAITING or HOLD_CONVING status using the artjesadmin subcommand releasejob:-n jobname: release jobs with given job name-j jobid: release a particular job-c job_class: release a particular class jobs-a: release all jobs-n jobname: cancel jobs with given job name-j jobid: cancel a particular job-c job_class: cancel a particular class jobs-a: cancel all jobs-n jobname: purge jobs with given job name-j jobid: purge a particular job-a: purge all jobsCompleted jobs in the DONE or FAIL status are moved to the purge queue. For other jobs, purgejob has same effect as canceljob. The purgejob command does not purge the job directly. The ARTJESPURGE server deletes the job from the TuxJES system.S: job submission eventC: job conversion complete eventE: job execution finish eventP: job purge eventA: all supported events. If the event is set to "on", A is the default.on |off: The submission is on or off. the "on" setting can be used with the -t option.After subscribing to an event, you are notified on the artjesadmin console when the corresponding event is generated.