Postgres and J2EE

Поиск
Список
Период
Сортировка
От marcin.jerzy@wp.pl (Marcin)
Тема Postgres and J2EE
Дата
Msg-id fbb6af43.0207280417.5bce568e@posting.google.com
обсуждение исходный текст
Список pgsql-general
Hi!
Is there anybody who play with Postgres and Java 2 EE Platform? I have
a problem with connecting my J2EE app server to Postgres server. When
I call getConnection() method, it throws exception with message "no
suitable driver". Below is appropriate piece of code:

        ic = InitialContext();
        ds = (DataSource)ic.lookup("java:comp/env/jdbc/mydb");
        db = ds.getConnection();

I'm almost sure that it's not a problem with configuration of J2EE
server, but with driver itself. But what could be wrong, if I
downloaded Postgres driver from Postgres web site and there is written
that it supports JDBC 2.0 API, particularly DataSource interface?
Moreover, I've done exactly what they say in configuration manual...

If there is anybody who have experience with J2EE and Postgres, PLEASE
tell me, how You bring them together and force to work. Maybe there's
some hook in configuration or should I build the driver from
sources... I don't know, I have no idea :-(

I use:
- Postgres 7.2
- J2EE - 1.3
- J2SDK - 1.3.1

Thanx
MJS

В списке pgsql-general по дате отправления:

Предыдущее
От: Al Arduengo
Дата:
Сообщение: Re: Postgres and Perl: Which DBI module?
Следующее
От: marcin.jerzy@wp.pl (Marcin)
Дата:
Сообщение: Postgres and J2EE