PrintServiceLookup.lookupPrintServices() returns no printers on JBoss EAP 6

Solution Verified - Updated -

Issue

I'm using Java Print Service to find the printers installed on a JBoss EAP 6 server. But it doesn't find any printers that are installed. The code I'm using is:

PrintService[] pss = PrintServiceLookup.lookupPrintServices(flavor,null);

Environment

  • JBoss Enterprise Application Platform (EAP) 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.