Printer vendors can use the print profile API to develop
customized message-driven beans (MDBs) to meet their printing requirements.
Procedure
- Turn off the default print driver.
- Log in to the WebSphere® Application Server administrative console.
- Navigate to and click LabelPrintJobCommandAS.
- Enter ibmse=off in Message
selector field.
- Restart WebSphere Application Server.
- Develop a new MDB that listens for the outbound print profile
topic.
- Develop a new class by extending the LabelPrintProfile
abstract class.
- Use the call print, reprint or cancel print methods, as
needed.
- Create a new topic with the correct topic name using the WebSphere Application Server administrative console.
- Create new activation specifications using the WebSphere Application Server administrative console.
Sample print profile code
public class DefaultPrintProfileDriver extends LabelPrintProfile{
public void labelprintjob(String print_job_id, Map metadata, String XML) {
transform(String xml, String xslUrl)
}
public void labelprintjob_cancel(String print_job_id) {
transform(String xml, String xslUrl)
}
public void labelprintjob_reprint(String print_job_id, Map metadata, String XML) {
transform(String xml, String xslUrl)
}