PEXAPrintServiceは基本的に以下のように呼び出します。
ServiceSession ss = new ServiceSessionBase();
ss.setSessionValue(new Key("PrintData"),list);
Object o = initc.lookup("PrintServiceFacadeSession");
PrintServiceFacadeSessionHome home = (PrintServiceFacadeSessionHome)
narrow(o, PrintServiceFacadeSessionHome.class);
PrintServiceFacadeSession service = (PrintServiceFacadeSession) narrow(home.create(), PrintServiceFacadeSession.class);
Map ctlMap = new HashMap();
ctlMap.put(PrintControlInfo.LOCAL_PRINTER_KEY,Boolean.TRUE);
Map retMap = service.doPrint(new Key(printFormID),ss,ctlMap);
例:test.pexa.share.util.print. TestFinderToPrint.java
IMEGクライアントでは、PrintServiceを呼び出し、ローカルプリンタに印刷するためのActiveXを起動するブラウザ用のクラスを実装しています。
ServiceSession ss = new ServiceSessionBase();
ss.setSessionValue(new Key("PrintData"),list);
Map ctlMap = new HashMap();
ctlMap.put(SVFPrintServiceConstans.KEY_OutputType,
SVFPrintServiceConstans.OutputType_PreviewPrint);
ctlMap.put(PrintControlInfo.LOCAL_PRINTER_KEY,Boolean.TRUE);
Print prn = new imeg.client.print.Print.Print();
Context ctx = JNDIFactory.getInstance().getInitialContext();
Map retMap = prn.print(applet.getAppletContext(),ctx,new Key("testsub"),ss, ctlMap);
例:test.imeg.client.print. TestPrintClientTestbed2.java