title: Java printing & multithread
body: <p>I wrote a little snippet called by php to print .postscripts files on a pre-defined network printer.</p>
  
  <p>While i print one file only, everything goes well, but when i try to set up a multi-thread printing management to send more then 1 file at once to the printer, only the first one comes out.</p>
  
  <p>The problem is that the PrintJobEvent <strong>PrintJobEvent.JOB_COMPLETE</strong> and <strong>PrintJobEvent.JOB_FAILED</strong> never happens, and the only events sent back by the spooler are <strong>DATA_TRANSFER_COMPLETE</strong> and <strong>NO_MORE_EVENTS</strong> .</p>
  
  <p>I searched around the web and Sun forums, but no wayto find an answer. Thank you previously for any help :)</p>
  
  <p><em>last minute editing</em> : if i run the app in debug mode from netbeans, and i interrupt the first thread manually, the second file is sent to the printer... so i imagine that it has to works someway</p>