Is it possible to use JPS (or
java in general) to print to a network ipp printer? I need to be able to print to a print queue on a remote print server (i.e. CUPS). My jar file will be distributed in multiple deployments on multiple machines. So, I would like to be able to have a central print server that handles all of the printing without having to define each printer on the local application servers.
The javax.print package states the following:
"The JDK includes PrintServiceLookup implementations that can locate the standard platform printers.
To locate other types of printers, such as IPP printers or JINI printers, a print-service provider can write implementations of PrintServiceLookup. The print-service provider can dynamically install these PrintServiceLookup implementations using the SPI JAR file specification."
However, I have been unable to find any such providers.
I have also tried the following two aset options with no success:
AttributeSet aset = new HashAttributeSet();
aset.add(new PrinterName("\\\\192.168.5.1:631\\printers\\MY_PRINTER", null));
//aset.add(new Destination(new URI("ipp://192.168.5.1:631/printers/MY_PRINTER")));