Hi,

I don' know , how can I describe my problem better. I try it again :)

1- I have a EJB-Application , which runs with Jboss 3.2.5
2- I'm printing pdf document with my Application.
3- I'm gettin the printservices  as following :

private PrintService getPrintService(String serviceName) {

        PrintService retPrintService = null;
        if (serviceName != null) {

            DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE;

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

            String printerNamesToDisplayToClient[] = new 
String[services.length];

            for (int i = 0; services != null && i < services.length; i++) {
                printerNamesToDisplayToClient = services.getName();
                if (serviceName.equals(services.getName())) {
                    retPrintService = services;
                }

            }
        }
        return retPrintService;

    }

4- PrintServiceLookup.lookupPrintServices supplies me the local print services, 
which are installed on this server.

5- But I want to lookup this services from another server. How can I lookup 
printservices from another server, which is seperate server with own IP-address 
and jboss-server.

I hope, this description is better.

regards




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876140#3876140

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3876140


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to