正在加载图片...
guokehua(@yahoo.com.cn Y客户端实现 Properties pt=new Propertieso pt. put( Context. INITIAL CONTEXT FACTORY, weblogic jndi. WL InitialContextFactory") pt. put(Context PROVIDER URL, t3: //127.0.0.1: 7001) pt. put( Context. SECURITY PRINCIPAL, system) pt. put(Context. SECURITY_CREDENTIALS,"passwd");Context ic=new InitialContext(pt) Object obi ic lookup ("BMPBean Remote); BMPRemote Home gsh (BMPRemoteHome) PortableRemoteObject narrow(obj, BMPRemote Home.class); Collection c= qsh. findXXX(参数) Iterator ite=c iterator while(ite. hasNextO) BMPRemote br (BMPRemote)PortableRemoteObject narrow(ite nexto, BMPRemotec lass System. out. printIn(br. getXXX) 郭克华J2EE框架实战教学视频oy Java! J guokehua@yahoo.com.cn 郭克华J2EE框架实战教学视频 客户端实现 Properties pt = new Properties(); pt.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WL InitialContextFactory"); pt.put(Context.PROVIDER_URL,"t3://127.0.0.1:7001"); pt.put(Context.SECURITY_PRINCIPAL,"system"); pt.put(Context.SECURITY_CREDENTIALS,“passwd"); Context ic = new InitialContext(pt); Object obj = ic.lookup(“BMPBeanRemote”); BMPRemoteHome qsh = (BMPRemoteHome)PortableRemoteObject.narrow(obj,BMPRemote Home.class); Collection c = qsh.findXXX(参数); Iterator ite = c.iterator(); while(ite.hasNext()){ BMPRemote br = (BMPRemote)PortableRemoteObject.narrow(ite.next(),BMPRemote.c lass); System.out.println(br.getXXX);
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有