Hello, I have a java web service that prints PDFs to network printers using CUPS 1.4 software. I pass the following command using the API
I have also used the StreamGobbler classes in threads to consume any output/error messages.
As long as the web service is single threaded everything works fine. But in a multithreaded environment, ocassionally Webspshere stops responding until the server is stopped and restarted again. And there are no error messages on system.out or system.err logs. It looks like the applications server just stalls (at times) when it communicates with the print server when multithreading.
Is there a better way to design this application, so I can still print the PDFs to CUPS? Thanks.