Properties prop = new Properties();
prop.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
prop.put(Context.PROVIDER_URL, "t3:// "+strIP+":"+strPort);设置JVM的启动参数,以便以后读取.
prop.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
prop.put(Context.PROVIDER_URL, "t3:// "+strIP+":"+strPort);设置JVM的启动参数,以便以后读取.
这句是指明weblogic是JNDI的提供者。prop.put(Context.PROVIDER_URL, "t3:// "+strIP+":"+strPort);
这句是设置远程weblogic的URL