aspose file tools*
The moose likes Threads and Synchronization and the fly likes Problem in Threading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Problem in Threading" Watch "Problem in Threading" New topic
Author

Problem in Threading

Kedar Patwardhan
Greenhorn

Joined: Jan 24, 2007
Posts: 8
Hi,
Me and my colleagues are simulating a project on Network Print Spooling wherein Multiple Clients are sending there Print Requests to the PrintServer and PrintServer is having multiple Printers attached to it.
We have maintained an entity called Printer Manager for removing the jobs from the Main Queue and feeding that job to the Printer's Queue.
For doing this we are running a thread of Printer Manager Class which does this.We are showing separate consoles for simulating Server,Client and Printer respectively.
But the problem we are facing is that when we close the connection from the Server console then our Printing on the Printer Console gets stopped.
Because it also kills the Printer thread.But we want that even after closing the Server connection the printing should be continued on the Printer console till the end of file.
How to tackle this problem in Java?

Please help us out.......Its very URGENT

Thank You,

Regards,
Kedar Patwardhan
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18997
    
  40

Unfortunately, you have not describe enough detail for us to envision your problem.

But the problem we are facing is that when we close the connection from the Server console then our Printing on the Printer Console gets stopped.


What do you mean by "close the connection"? Do you mean that you have a network connection to the printer program? Or do you mean killing the GUI that represents you printer simulator? Or is it something else?

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in Threading