tjbyfield
25th July 2002, 16:11
We run a cron job every 5 mins to transfer data from a non baan application with production details (quantity and lot serial no) via oracle table. When processed successfully the records are deleted (it is treated like a processing push/pop stack)
The cron job initiates ba6.1 for a 3gl session that loads a dll to process the tranasctions in sfc/ilc/ltc. This all works well 24x7 and the loose coupling allows baan to be closed for short periods without stopping production operations and provides automatic processing of production recording transaction.
However, from time to time when the max users is reached the ba6.1 cannot run.
We need to know when it can not start so that we can shed non critical and/or non active users so the the cron job can get a licence. Unfortunately, ba6.1 does not return a non zero return code that would allow the script to alert us (via email and/or printer).
(A) IS THERE A WAY WE CAN GET b6.1 TELL US IT COULD NOT GET A LICENCE (other than the ba6.1 log)
An in-eligant solution would be for the 3gl session to create a file. In the cron script we could check that it was created - then if not created we would know that ba6.1 could not start the session.
A much better solution would be to keep the dll alive permenently and get it to spring into action whenever a record was written to the oracle table.
(B) IS THERE A WAY OF GETTING THE DLL TO SLEEP AND THEN BEING INITIATED WHEN RECORDS ARRIVE OR PERIODICALLY CHECKING FOR RECORDS (without a process intensive loop)
We have baanIV4c4 with 6.1 porting set on IBM AIX oracle 8.0.5
I will appreciate your help
Terry
The cron job initiates ba6.1 for a 3gl session that loads a dll to process the tranasctions in sfc/ilc/ltc. This all works well 24x7 and the loose coupling allows baan to be closed for short periods without stopping production operations and provides automatic processing of production recording transaction.
However, from time to time when the max users is reached the ba6.1 cannot run.
We need to know when it can not start so that we can shed non critical and/or non active users so the the cron job can get a licence. Unfortunately, ba6.1 does not return a non zero return code that would allow the script to alert us (via email and/or printer).
(A) IS THERE A WAY WE CAN GET b6.1 TELL US IT COULD NOT GET A LICENCE (other than the ba6.1 log)
An in-eligant solution would be for the 3gl session to create a file. In the cron script we could check that it was created - then if not created we would know that ba6.1 could not start the session.
A much better solution would be to keep the dll alive permenently and get it to spring into action whenever a record was written to the oracle table.
(B) IS THERE A WAY OF GETTING THE DLL TO SLEEP AND THEN BEING INITIATED WHEN RECORDS ARRIVE OR PERIODICALLY CHECKING FOR RECORDS (without a process intensive loop)
We have baanIV4c4 with 6.1 porting set on IBM AIX oracle 8.0.5
I will appreciate your help
Terry