aspose file tools*
The moose likes Performance and the fly likes Alternate ideas to call a CUPS print server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Alternate ideas to call a CUPS print server" Watch "Alternate ideas to call a CUPS print server" New topic
Author

Alternate ideas to call a CUPS print server

Stephen Tret
Greenhorn

Joined: Feb 03, 2011
Posts: 17
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.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

Welcome to the Javaranch.
We ask that you SearchFirst. You'll find many options for printing PDF's in this topic.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Stephen Tret
Greenhorn

Joined: Feb 03, 2011
Posts: 17
Thanks, I will do that
Wim Vanni
Ranch Hand

Joined: Apr 06, 2011
Posts: 96

You could look into Cups4J.
There's also an ippclient api somewhere on the web.

Maybe this could be of help to you.

Cheers
Wim
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Alternate ideas to call a CUPS print server