1 19 20 package org.netbeans.test.examples.logging.ws; 21 22 27 public class WebServiceImpl implements WebServiceSEI { 28 29 30 35 public boolean callOtherWs() { 36 boolean retVal = false; 38 39 try { 40 getBGTransPort().BGTranslate("Hello"); 41 retVal = true; 42 } catch(java.rmi.RemoteException ex) { 43 } 45 return retVal; 46 } 47 48 private org.netbeans.test.examples.logging.BGTrans getBGTrans() { 49 org.netbeans.test.examples.logging.BGTrans bGTrans = null; 50 try { 51 javax.naming.InitialContext ic = new javax.naming.InitialContext (); 52 bGTrans = (org.netbeans.test.examples.logging.BGTrans) ic.lookup("java:comp/env/service/BGTrans"); 53 } catch(javax.naming.NamingException ex) { 54 } 56 return bGTrans; 57 } 58 59 private org.netbeans.test.examples.logging.BGTransPortType getBGTransPort() { 60 org.netbeans.test.examples.logging.BGTransPortType bGTransPort = null; 61 try { 62 bGTransPort = getBGTrans().getBGTransPort(); 63 } catch(javax.xml.rpc.ServiceException ex) { 64 } 66 return bGTransPort; 67 } 68 } 69 | Popular Tags |