WebSphere brand IBM WebSphere Sensor Events, Version 6.2

Printing

The Printing Reusable Component prints tags through the WebSphere® Sensor Events print API.

The input attributes for the Printing Reusable Component are: Print profile name, Pack type, EPC value, and printer ID and mode. This Reusable Component also requires a labelData Map of information to write to the tag. It returns a print job ID which can be ignored if it is not needed.

WebSphere Sensor Events configuration

Table 1. Printing agent properties
Name Description PID Agent properties
PrintingAgent RUC Printing Agent com.ibm.premises.reusable.printing.PrintingAgent
  • ruc.targetBackend=ruc.wse
  • print.output.success=rucresponse/printing/print/success
  • print.output.failure=rucresponse/printing/print/failure

WebSphere Application Server configuration

See Configuring the messaging interface for the WebSphere Application Server configuration details.

Methods

Using the Printing Reusable Component

To invoke the Printing Reusable Component using IBM® Sensor Events or XML, the payload must include:
  • PrintingRUCConstants.PRINT_RUC_PROFILE_NAME
  • PrintingRUCConstants.PRINT_RUC_PACK_TYPE
  • PrintingRUCConstants.PRINT_RUC_EPC_VALUE
  • PrintingRUCConstants.PRINT_RUC_PRINTER_ID
  • PrintingRUCConstants.PRINT_RUC_PRINT_MODE_KEY
  • PrintingRUCConstants.PRINT_RUC_LABELDATA
Note: PrintingRUCConstants.PRINT_RUC_PRINT_MODE_KEY defaults to print. To reprint, set to PrintingRUCConstants.PRINT_RUC_REPRINT_MODE.
To publish to Reusable Components MDBs, set the following values for the JMS topic and eventType. For single-action Reusable Components, the topic is only checked in the message selector.
  • print: profileid/rucaction/printing/print
The JMS topic and eventType for the MDB output from the Reusable Component comes from the agent properties. Default output topics for success and failure for each action are shown in Table 1.

Library | Support | Terms of use

(c) Copyright IBM Corporation 2004, 2009. All rights reserved.
U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.