Re: JNDI Datasource in tomcat - Mailing list pgsql-jdbc

From Albe Laurenz
Subject Re: JNDI Datasource in tomcat
Date
Msg-id D960CB61B694CF459DCFB4B0128514C202ACF619@exadv11.host.magwien.gv.at
Whole thread Raw
In response to JNDI Datasource in tomcat  (Gorka Mauleon <gorka.mauleon@openbravo.com>)
List pgsql-jdbc
Gorka Mauleon wrote:
>
> Im trying to get a connection through a JNDI service in tomcat.

[...]

> using thi driver. pg74.216.jdbc3.jar
> I get this error
> - org.postgresql.util.PSQLException: A result was returned when none was
> expected.

[...]

>  PreparedStatement pstmt = con.prepareStatement(dbSessionConfig);
> pstmt.executeUpdate();  <--- Here a got the error
>
> when i used the driver manager with this driver jdbc3-postgresql.jar i
> think that i got another kind of connection and i havent got no error.
> seems that now i have a config error but i dont really know whats the
> correct way to fix it

What is in "dbSessionConfig"?
That might help answer the question.

BTW, why don't you use a more recent driver?

Yours,
Laurenz Albe

pgsql-jdbc by date:

Previous
From: Ingmar Lötzsch
Date:
Subject: Re: JNDI Datasource in tomcat
Next
From: Alexander Panzhin
Date:
Subject: Re: Passing Array from Java to Postgres