On a CIM 10.50.10 environment we are not able to stop the Tomcat service while having the "Real time responses" Real-Time Batch job running. Is there a way of externally stopping the intraday job before trying to stop the services? (Somehow send a stop action for the real time job before stopping the services without using the web interface). Thanks!
The supported method of stopping a job that is running is to use the Job Status Dashboard in the CIM application. When a job is running and a stop command is issued from the Job Status Dashboard, the job will run until it reaches a checkpoint and it will stop at once it reaches that checkpoint.
There's no method to stop a job outside of the application.
However, if the database connection associated with a job is aborted, it will cause the running job to fail. After failing, the job will stop. This may have unintended results. Intentionally using this method to stop a job is not a supported method.
Thank you for your answer!
So the only way of handling this externally would be to somehow disable temporarily the DB access. As you know the Real time responses job will never stop by itself so we were hoping for something more standard, like the oposite of the following statement which is starting a certain job id using the trm-pe-client.jar:
java -jar trm-pe-client.jar user=<your login id> -password=<password> jobId=<job id>
Yes, I thought that's what you were looking for. The PE client allows users to submit jobs externally but does not have any commands for stopping a job. Additional information about the PE client can be found in Chapter 7 of the Object Processing Guide.
Update to previous response:
However, if the database
connection query associated with a job is aborted, it will cause the running job to fail. After failing, the job will stop. This may have unintended results. Intentionally using this method to stop a job is not a supported method.
Aborting connections/sessions will disrupt the connection pool and is not recomnmended. Aborting queries associated with the running job is the better way to cause a job to fail.