Hello list, I'm doing my very first steps with gt, so I apologize for
this basic question.
I'm trying to set up my Hello World classes inside Eclipse, and now
I'm doing my steps into DBCP connections to Postgresql/PostGIS. To do
that I've set the required referened libraries
(postgresql-8.1-407.jdbc3.jar, and the gt-*) and I've written this
code (this is just a piece...):

HashMap<String, String> params = new HashMap();
params.put(DBCPDataSourceFactory.DSTYPE.key,"DBCP");
params.put(DBCPDataSourceFactory.JDBC_URL.key,"jdbc:postgresql://localhost/mydb");
params.put(DBCPDataSourceFactory.DRIVERCLASS.key,"org.postgresql.Driver");
params.put(DBCPDataSourceFactory.USERNAME.key, "my_user");
params.put(DBCPDataSourceFactory.PASSWORD.key,"my_password");

DataSource ds = DataSourceFinder.getDataSource(params);

It doesn't through any expeption, but getDataSource() returns null.
I'm sure that Postgresql is up and accepting remote conections,
because I use it for other applications too.
Am I missing something in my code?

Thanks in advance,
giovanni

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to