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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content