bvallepalli
9th March 2004, 23:37
I have my customers login to our website and look for their Invoices and Credits from Baan within the given time range. When a user clicks on a particular Invoice/Credit number, I run the standard Baan reprint Invoices session in the background through a function server and convert this output to a PDF file and launch it in a seperate window.
This works fine in normal cases. But when I simultaneously click on 6 to 10 different Invoices/credits, it always loose one request with a time out exception (The bus component shows the right number of calls made to Baan). There after it runs one call behind. 11th request will show the results of 10th request and so on untill I restart my tmboaserver.
I ran some tests and figured out that the problem is some where in handling the files.
1. I capture the report file from ttaad320 (Printer queue) for the current user.
2. Create a unique temporary post script file and convert the report output to post script file.
3. Use ghost script to convert this post script file to a unique pdf file.
I even added a suspend() call to make the process wait for a while after Post script conversion and after pdf conversion. I am not even deleting any of these temporary files created in this process.
I didn't want to post this in Openworld/Function server discussion as I think the problem is somewhere handling these files.
We are on Baan5.c/SQL/Openworld 2.0/com dll for the webserver.
This works fine in normal cases. But when I simultaneously click on 6 to 10 different Invoices/credits, it always loose one request with a time out exception (The bus component shows the right number of calls made to Baan). There after it runs one call behind. 11th request will show the results of 10th request and so on untill I restart my tmboaserver.
I ran some tests and figured out that the problem is some where in handling the files.
1. I capture the report file from ttaad320 (Printer queue) for the current user.
2. Create a unique temporary post script file and convert the report output to post script file.
3. Use ghost script to convert this post script file to a unique pdf file.
I even added a suspend() call to make the process wait for a while after Post script conversion and after pdf conversion. I am not even deleting any of these temporary files created in this process.
I didn't want to post this in Openworld/Function server discussion as I think the problem is somewhere handling these files.
We are on Baan5.c/SQL/Openworld 2.0/com dll for the webserver.