Custom Print Services in BBj
Installation consists of two steps.
1. Add the .jar that contains the print service to the BBjServices classpath. In Enterprise Manager, go to Java classpath, and add the jar file.
2. Add the entry com.basis.bbj.device.customPrinter in the BBj.properties file and set that entry equal to the fully qualified name of the class that implements the Java print service. To add multiple entries, separate each entry by commas, all on the same line.
PrintService requires implementers to provide a method getName(). The name returned is now available to SYSPRINT as a print destination. For example, if a custom print service's getName() returns myPrinter, an OPEN(1,MODE="NAME=myPrinter") alternatively allows for specifying the name in the comment portion of the print alias in the config file. For example:
ALIAS LP SYSPRINT"myPrinter"FONT="Courier"