How to connect a network printer to JBoss app server ?
I have a Java application server running in the JBoss 7.0.6 of Linux.
How to add the network printer to Jboss server so the Web application can print the label ?
I tried this method to lookup the local printer services but it return empty.
PrintService services = PrintServiceLookup.lookupPrintServices(DocFlavor.SERVICE_FORMATTED.PRINTABLE, null);
I just figured out that I need to add the network printer into Jboss server for printing.