接分,1你的jndi的lookup的examples-dataSource-demoPool因改是你的数据源myds的jndi名称demods,为什么却lookup “examples-dataSource-demoPool”
解决方案 »
- 【100分】 org.eclipse.jetty.io.EofException 什么原因啊?
- 有了EL+struts2+jstl1.2还需要velocity这样的项目么?
- 用JbuilderX的Native executalbe builder打包成EXE的问题
- 在java如何获得一个特定的线程
- Struts 简单问题。大家帮帮忙
- 存储过程
- spring问题!谢谢帮忙
- 关于jsp连接oracle数据库的问题,谢谢帮忙!!
- while 里 嵌套while里又嵌套if语名为什么老是出现记录集关闭。
- tomcat中sqlserver连接池的配置
- 使用struts标签库:怎么把<bean:message key=""/>读出来的内容放到一个标签的属性中,如:<template:put name='title' content=(bean读出
- 请:帮我解释一下 JTA/JTA/JMS/JAX/JDO,/JNDI都是什么含义?
/* Create a connection to the WebLogic JNDI Naming Service:
*/
String url="t3://localhost:7001";localhost=127.0.0.1可能你的改一下
Properties h = new Properties ();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
ctx = new InitialContext(h);
/* Create a new DataSource by Locating It in the Naming Service:
*/
ds = (javax.sql.DataSource)
ctx.lookup ("examples-dataSource-demoPool");
} catch (Exception E) {
/*
Handle exception here.
*/
System.out.println("Init Error: " + E);
}
}
成功后,给分喽
studyhard1314(studyhard1314) ,你的ftp可以访问,但没有文件啊?
在weblogic中如何配的连接池