2012年10月5日
摘要: <!-- 使用连接池获得连接JNDI java name dri interface java命名目录接口 --> <!-- 获得连接 --> <% Context context = new InitialContext(); DataSource ds = (DataSource)context.lookup("java:/comp/env/jdbc/oracle"); Connection conn = ds.getConnection(); PreparedStatement ps = conn.prepareStatem... 阅读全文
posted @ 2012-10-05 01:29 java_fengyi 阅读(448) 评论(1) 推荐(0) 编辑