Dear devs,

I am trying to access a postgres database from a servlet. I downloaded

postgresql-8.1-407.jdbc3.jar

and put it in WEB-INF/lib

In web.xml

  <database jndi-name="jdbc/store">
    <driver>
      <type>org.postgresql.Driver</type>
      <url>jdbc:postgresql://127.0.0.1:5432/test</url>
      <user>gmosx</user>
      <password>....</password>
    </driver>
  </database>

In my servlet

  @Resource(name="jdbc/store")
  public DataSource _ds;

Which file should I import to  use the DataSource class? I get the error:

 cannot find symbol

and I can't find the correct import line on the Resin docs...


regards,
George.

-- 
http://blog.gmosx.com
http://nitroproject.org

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to