Then instead of using the "new" connection the old one is used.
If you are creating a new ConnectionSource
then you will need to re-create all of your DAO classes and clear the DAO cache from within the DaoManager
. Each of the DAO classes has a copy of the old connection source that it uses.
ConnectionSource connectionSource = new JdbcConnectionSource(connectionString);
DaoManager.clearCache();
Dao<Foo,Integer> fooDao = DaoManager.createDao(connectionSource, Foo.class);
...