|
����������� Hi, I find this sample from Jboss web site : ��� Context ctx = new InitialContext(); ��� Connection conn = null; ��� try { ������� DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/OracleDB"); ������� conn = ds.getConnection(); ������� ... ��� } catch(NamingException ne) { ��� ��� ... ��� } catch(SQLException se) { ��� ��� ... ��� } finally { ��� ��� if(conn != null) ��� ���������� try {conn.close();} catch(SQLException e) {}
|
- Re: [jBoss-User] DataSource Class Sergio Stateri Jr
- Re: [jBoss-User] DataSource Class Rafizan Baharum
- Re: [jBoss-User] DataSource Class Aaron Mulder
