Properties props =new Properties();
props.pu(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory");
props.put(Context.PROVIDER_URL,"iiop://127.0.0.1:1050");
Context ctx = new InitialContext(props);
Object obj=ctx.lookup("com/myconn");
props.pu(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory");
props.put(Context.PROVIDER_URL,"iiop://127.0.0.1:1050");
Context ctx = new InitialContext(props);
Object obj=ctx.lookup("com/myconn");
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货