Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Connection pool Servlet-JDBC

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am new to Weblogic Server. i am trying to connect access database in servlet the code for servlet is here.
Driver myDriver = (Driver)Class.forName("weblogic.jdbc.pool.Driver").newInstance();
Properties props = new Properties();
props.put("connectionPoolID", "JDBCAccessPool");
Connection conn =myDriver.connect("jdbc:weblogic ool:JDBCAccessPool",null);
Statement st=conn.createStatement();
String query = "SELECT * from directory";
ResultSet rs = st.executeQuery(query);
while (rs.next()) {
String s = rs.getString("name");
out.println(" field values for Name are " + s);
}
}
catch(Exception e){
out.println("Error " + e);
}
--------------------------------------------------
but when i run the servlet i get folowing exception :
  • java.sql.SQLException: Pool connect failed: java.sql.SQLException: Connection Pool JDBCAccessPool does not exist.

  • --------------------------------------------------
    i have set JDBC Connection pool Driver as :
  • Name : JDBCAccessPool
  • URL : jdbc:weblogic ool
  • DriverClassName : sun.jdbc.odbc.JdbcOdbcDriver:Telephone

  • please help in solving my problem
     
    Been there. Done that. Went back for more. But this time, I took this tiny ad with me:
    Free, earth friendly heat - from the CodeRanch trailboss
    https://www.kickstarter.com/projects/paulwheaton/free-heat
    reply
      Bookmark Topic Watch Topic
    • New Topic