If I run the JBoss application from the Windows command line, I can get a list of printers (including network printers).
If I run the JBoss application as a Windows service, I only get a list of printers that are directly connected to the machine. Network printers are not displayed.
Here is the Java code that I use to list printers:
PrintService[] printerServices = PrintServiceLookup.lookupPrintServices(null, null);
This is not a problem with permissions, because, according to our administrator, permissions are configured just fine.
Does anyone have a better explanation or is there a set of permissions that may be required to display network printers?
source
share