Monitor Print Queue with java program

I'm plan to write a client/server based application which control the printing for every user. I've no idea how to start on the application.

1. Is it possible to monitor the print queue or print job using java application?

2. How does the server react if the client sending the print job to there? How's the client can trigger the signal during printing and send to the server?

Thank you!

[417 byte] By [SkyLine2008a] at [2007-11-27 9:22:42]
# 1

> I'm plan to write a client/server based application

> which control the printing for every user. I've no

> idea how to start on the application.

You should establish feasibility first, before planning to write anything

> 1. Is it possible to monitor the print queue or print

> job using java application?

Not really. Print queues are highly system-dependent things and some e.g. Windows can really only be accessed via system calls in a native language.

> 2. How does the server react if the client sending

> the print job to there?

Err, it prints the file?

> How's the client can trigger the signal during printing and send to the server?

What signal?

But I suspect the answer to the first question makes the others irrelevant.

ejpa at 2007-7-12 22:17:20 > top of Java-index,Java Essentials,Java Programming...
# 2

Hi ejp,

The scenario should be like this:-

Currently, there's a MFP in my office. The MFP cannot control the printing for all the user. (The printer sharing from server) so i'm trying to develop a java program which running on the client/server which needs authentication when the user start send print job to the MFP.

Therefore, my idea is client (workstation) has a small java module to monitor the print job or print queue and send a signal to tell the server that the client going to print the file. Then, the server will response on the signal and authenticate the client before the file going to print.

Do you have better idea?

Thank you!

SkyLine2008a at 2007-7-12 22:17:20 > top of Java-index,Java Essentials,Java Programming...
# 3
You can control all that with LAN permissions. You don't need to write any Java code, even if you could, which you can't, unless you're going to write a whole printer-spooling subsystem, which is a completely redundant piece of work.
ejpa at 2007-7-12 22:17:20 > top of Java-index,Java Essentials,Java Programming...
# 4

Yes, you are right. It can control with the LAN permission. But it will be trouble to me because most of the user cannot print. I need this program because I need to monitor the printing and generate the usage statistic at the end of the month. So is it mean that I need start doing the research on writing a printer-spooling subsystem?

SkyLine2008a at 2007-7-12 22:17:20 > top of Java-index,Java Essentials,Java Programming...
# 5

I'm facing a similar problem. I've also written a client/server application to manage the projects costs. Now one of my clients is asking the following functionality : when a user wants to print something, he must enter a project code, so all print costs can be added to this particular project.

After reading previous posts, I was wondering if it would be possible to interrupt the printstream at the client machine, and only when he has entered the project code it would be send to the server itself.

Next question is of course how I can retrieve the number of pages he has printed. I really can't believe that I'm the only one who's ever experienced this problem. Any help and/or suggestions would be highly appreciated

wapsia at 2007-7-12 22:17:20 > top of Java-index,Java Essentials,Java Programming...