正在加载图片...
guokehua(@yahoo.com.cn oy Java! 客户端实现 Properties pt= new Propertieso 1010 pt. put( Context. INITIAL CONTEXT FACTORY, weblo gic jndi. WLInitialContextFactory 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 gsh (BMPRemoteHome) PortableRemoteObject narrow(obj, B MPRemoteHome. class) BMPRemote qs= qsh create(参数); 郭克华J2EE框架实战教学视频oy Java! J guokehua@yahoo.com.cn 郭克华J2EE框架实战教学视频 客户端实现 Properties pt = new Properties(); pt.put(Context.INITIAL_CONTEXT_FACTORY,"weblo gic.jndi.WLInitialContextFactory"); 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,B MPRemoteHome.class); BMPRemote qs = qsh.create(参数);
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有