Should always use datastorefinder class. We retired some old datastores but your connection parameters should still work with datastore finder.
On 14/07/2011, at 8:46 PM, lexmc <[email protected]> wrote: > I have a problem: > With this code: > Map<String, Object> params = new HashMap<String, Object>(); > > params.put("dbtype", "mysql"); > params.put("host", "localhost"); > params.put("port", new Integer(3306)); > params.put("database", dataBase); > params.put("user", user); > params.put("passwd", password); > > MySQLDataStoreFactory mySQLFactory = new MySQLDataStoreFactory(); > > DataStore mySQLDatastore = (DataStore) > mySQLFactory.createDataStore(params); > featureSource = mySQLDatastore.getFeatureSource(tabella); > > when I used geotools 2.7.1 this code worked fine. > Now i switch to geotools 8-SNAPSHOT and a got somme errors: > I cannot use this: > MySQLDataStoreFactory mySQLFactory = new MySQLDataStoreFactory(); > > to which datastore factory I have to switch to have my code working? > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Cannot-use-MySQLDataStoreFactory-with-geotools-8-SNAPSHOT-tp6582693p6582693.html > Sent from the geotools-gt2-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
