Java Print Service

The Java™ Print Service (JPS) API allows printing on all Java platforms. Java 1.4 and subsequent versions provide a framework in which Java runtime environments and third parties can provide stream generator plugins for producing various formats for printing, such as PDF, Postscript, and Advanced Function Presentation™ (AFP™). These plugins create the output formats from bi-dimensional (2D) graphic calls.

An iSeries™ print service represents a printer device that is configured on the iSeries with the i5/OS™ command Create Device Description (Printer) (CRTDEVPRT). Specify the publishing information parameters when you create a printer device. This increases the number of print service attributes supported by the iSeries print services.

If a printer supports Simple Network Management Protocol (SNMP), configure the printer on the iSeries. Specify *IBMSNMPDRV for the value of the system driver program parameter in the CRTDEVPRT command. The print services use SNMP to retrieve specific information (printer service attributes) about a configured printer.

The Doc Flavors supported by the iSeries include *AFPDS, *SCS, *USERASCII - (PCL), *USERASCII - (Postscript), and *USERASCII - (PDF). Specify the Doc Flavors that the printer supports in the Data Streams Supported parameter within the Publishing Information of the CRTDEVPRT command.

When an application uses a print service to print a job (document) on the iSeries, the print service places the document into a spooled file on an output queue with the same name as the printer device (also the same name as specified in the PrinterName attribute). Start a printer writer with the command STRPRTWTR before the documents print on the printer device.

In addition to the attributes defined by the Java Print Service specification, the iSeries print services support the following attributes for all Doc Flavors:

Start of change

How to enable JPS when using JDK 1.5

The following are the symbolic links that need to be set up to enable the Java Print Service:

ADDLNK OBJ('/QIBM/ProdData/OS400/Java400/ext/ibmjps.jar')
     NEWLNK('/QIBM/ProdData/Java400/jdk15/lib/ext/ibmjps.jar')
     LNKTYPE(*SYMBOLIC)

ADDLNK OBJ('/QIBM/ProdData/OS400/jt400/lib/jt400Native.jar')
     NEWLNK('/QIBM/ProdData/Java400/jdk15/lib/ext/jt400Native.jar')
     LNKTYPE(*SYMBOLIC)

Refer to Sun Microsystems Java Print Service documentation for more information.

End of change