11.3 Using the Sample Gateway Plug-In

The SDK contains a sample gateway plug-in named CompanyXYZ. We recommend that you use this sample as a template when you begin to write your own gateway plug-in. It is found in the iPrintGateway directory under the SDK home directory. The plug-in consists of the following files:

Install the CompanyXYZ gateway plug-in by running SDK_HOME\iPrintGateway\makebat.bat. This batch file compiles GatewayTemplate.java, stores the resulting GatewayTemplate.class file in WEB-INF\lib\CompanyXYZ.jar, and copies the remaining plug-in files to the appropriate directories under the nps servlet document root directory.

To test the plug-in:

  1. Start iManager and log in.

  2. Click iPrint Management > Create Printer.

  3. Fill in the Printer name, Container name, and Manager name fields.

  4. In the Gateway type field, select CompanyXYZ.

  5. Click Next.

  6. Type a URL in the Printer URL field.

  7. Click Next.