You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/03/14 20:20:21 UTC

DO NOT REPLY [Bug 34011] New: - javax.print.PrintServiceLookup.lookupPrintServices(null, null) does not include network printers

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34011>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34011

           Summary: javax.print.PrintServiceLookup.lookupPrintServices(null,
                    null) does not include network printers
           Product: Tomcat 5
           Version: 5.0.28
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: zimnoch33@hotmail.com


Install a printer on a Windows system that is shared out from a different
computer than the one running Tomcat.

Run the following code from Sun's JVM and again from a Servlet:
----
import javax.print.*

public class PrinterUtil {
  public static void getPrintService() {
    PrintService [] ps = PrintServiceLookup.lookupPrintServices(null, null);
    for(int x = 0; x < ps.length; x++)
      System.out.println(ps[x].getName());
  }
}
----

The servlet will not list any network printers that are shared out from a remote
machine.

I realize this is probably an extremely low priority 'bug', possibly by design.
 If it will not be fixed for distribution, please advise so I can investigate
and fix my local build.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org