print all docs togather without interruption from other computers
I have done a coding to print the reports from java (its basically a till machine and printing bills) and that is working fine. But the problem is, if any other Till machine sends the document to print, the printer will just get the job and does and finally it is kinda merging of papers from one till to other. I hope Im explaining the problem clearly. For ex. Till Machines t1 and t2; both printing 3 sets of doc as doc1 - 3 pages , doc2-2pages and doc3-3pages.
now the printer prints in the following order:
t1 -> doc1-3pages
t2 -> doc1-3pages
t2 -> doc2-2pages
t1 -> doc2-2pages
t2 -> doc3-3pages
t1 -> doc3-3pages
basically it does not follow any order, but it takes how it reaches printer from till machines. So, I want to synchronize this and in one shot, it should print from t1 and it should complete, then should it should go for t2 and goes on...
Is there any solution that I can implement in java.
Thank you for your time!