Hashtable ht = new Hashtable();
ht.put(ctx.PROVIDER_URL, "t3://ip:7001");
ht.put(ctx.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
ctx = new InitialContext(ht);这是weblogic的.其他的参数如下:
WebSphere:
Context.INITIAL_CONTEXT_FACTORY
"com.ibm.websphere.naming.WsnInitialContextFactory "
Context.PROVIDER_URL
"iiop://localhost:900 "
Weblogic:
Context.INITIAL_CONTEXT_FACTORY
"weblogic.jndi.WLInitialContextFactory "
Context.PROVIDER_URL
"t3://127.0.0.1:7001 "
J2EE SDK(J2EE RI):
Context.INITIAL_CONTEXT_FACTORY
"com.sun.jndi.cosnaming.CNCtxFactory "
Context.PROVIDER_URL
"iiop://127.0.0.1:1050 "
SilverStream:
Context.INITIAL_CONTEXT_FACTORY
"com.sssw.rt.jndi.AgInitCtxFactory "
Context.PROVIDER_URL
"sssw://localhost:80 "
OC4J
Context.INITIAL_CONTEXT_FACTORY
"com.evermind.server.rmi.RMIInitialContextFactory"
Context.PROVIDER_URL
"ormi://127.0.0.1/"JBOSS的:
java.naming.factory.initial
"org.jnp.interfaces.NamingContextFactory"
java.naming.provider.url
"localhost:1099"
WAS5:
Context.INITIAL_CONTEXT_FACTORY
"com.ibm.websphere.naming.WsnInitialContextFactory "
Context.PROVIDER_URL
"iiop://localhost:2809 " ------------------------------------------------------
我们还年轻牛奶会有的奶牛也会有的
可天天在 csdn 混这些会有吗 ??
ht.put(ctx.PROVIDER_URL, "t3://ip:7001");
ht.put(ctx.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
ctx = new InitialContext(ht);这是weblogic的.其他的参数如下:
WebSphere:
Context.INITIAL_CONTEXT_FACTORY
"com.ibm.websphere.naming.WsnInitialContextFactory "
Context.PROVIDER_URL
"iiop://localhost:900 "
Weblogic:
Context.INITIAL_CONTEXT_FACTORY
"weblogic.jndi.WLInitialContextFactory "
Context.PROVIDER_URL
"t3://127.0.0.1:7001 "
J2EE SDK(J2EE RI):
Context.INITIAL_CONTEXT_FACTORY
"com.sun.jndi.cosnaming.CNCtxFactory "
Context.PROVIDER_URL
"iiop://127.0.0.1:1050 "
SilverStream:
Context.INITIAL_CONTEXT_FACTORY
"com.sssw.rt.jndi.AgInitCtxFactory "
Context.PROVIDER_URL
"sssw://localhost:80 "
OC4J
Context.INITIAL_CONTEXT_FACTORY
"com.evermind.server.rmi.RMIInitialContextFactory"
Context.PROVIDER_URL
"ormi://127.0.0.1/"JBOSS的:
java.naming.factory.initial
"org.jnp.interfaces.NamingContextFactory"
java.naming.provider.url
"localhost:1099"
WAS5:
Context.INITIAL_CONTEXT_FACTORY
"com.ibm.websphere.naming.WsnInitialContextFactory "
Context.PROVIDER_URL
"iiop://localhost:2809 " ------------------------------------------------------
我们还年轻牛奶会有的奶牛也会有的
可天天在 csdn 混这些会有吗 ??
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货