当前位置: 技术问答>java相关
请问这段代码用其他非java语言怎么实现?
来源: 互联网 发布时间:2015-10-26
本文导语: java.util.Properties env = new java.util.Properties(); env.put("java.naming.factory.initial","weblogic.jndi.WLInitialContextFactory"); env.put("java.naming.provider.url","t3://172.16.58.178:7001"); System.out.println("DDd"); Context ctx = new InitialContex...
java.util.Properties env = new java.util.Properties();
env.put("java.naming.factory.initial","weblogic.jndi.WLInitialContextFactory");
env.put("java.naming.provider.url","t3://172.16.58.178:7001");
System.out.println("DDd");
Context ctx = new InitialContext(env);
System.out.println("DDd2");
ds = (javax.sql.DataSource)ctx.lookup ("1002");
能提供资料者不甚感激!!最好有源码
env.put("java.naming.factory.initial","weblogic.jndi.WLInitialContextFactory");
env.put("java.naming.provider.url","t3://172.16.58.178:7001");
System.out.println("DDd");
Context ctx = new InitialContext(env);
System.out.println("DDd2");
ds = (javax.sql.DataSource)ctx.lookup ("1002");
能提供资料者不甚感激!!最好有源码
|
应该可以实现吧,否则怎么叫垮平台呢