Hi List, I'm trying to connect with JNDI using this:
*try {*
* parameters.put(JDBCJNDIDataStoreFactory.DBTYPE.key, "postgis");
parameters.put(JDBCJNDIDataStoreFactory.JNDI_REFNAME.key,
"java:/comp/env/jdbc/pggisdb");
DataStore store = null;
store = DataStoreFinder.getDataStore(parameters);
} catch (IOException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
}*
But, it returns me a null object.
The connection exists and works fine, but with this code I can't get/create
the datastore.
Is anything wrong?
Thanks in advance.
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users