Re: JNDI Datasource in tomcat

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: JNDI Datasource in tomcat
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C202ACF619@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на JNDI Datasource in tomcat  (Gorka Mauleon <gorka.mauleon@openbravo.com>)
Список 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 по дате отправления:

Предыдущее
От: Ingmar Lötzsch
Дата:
Сообщение: Re: JNDI Datasource in tomcat
Следующее
От: Alexander Panzhin
Дата:
Сообщение: Re: Passing Array from Java to Postgres