Postgres and J2EE - Mailing list pgsql-general

From marcin.jerzy@wp.pl (Marcin)
Subject Postgres and J2EE
Date
Msg-id fbb6af43.0207280507.28fc6e9f@posting.google.com
Whole thread Raw
List 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 by date:

Previous
From: marcin.jerzy@wp.pl (Marcin)
Date:
Subject: Postgres and J2EE
Next
From: Sean Miller
Date:
Subject: i need a postgre for win 98