New reply on DataCleaner's online discussion forum 
(https://datacleaner.org/forum):

Dennis replied to subject 'NoSuchComponentException error when reading Job file 
in Java'

-------------------

Ah, you can base the new configuration on the existing one, then you should get 
all the configuration you already set:
final DataCleanerConfiguration newConfig = new 
DataCleanerConfigurationImpl(oldConfig)
    .withEnvironment(new DataCleanerEnvironmentImpl(oldConfig.getEnvironment())
    .withDescriptorProvider(descriptorProvider));

You can also put it directly in conf.xml:
<configuration>
...
    <descriptor-providers>
       <classpath-scanner>
           <package recursive="true">org.datacleaner</package>
        </classpath-scanner>
    </descriptor-providers>
...
</configuration>

If you want to set it manually instead, you can create an instance of 
org.datacleaner.user.DatastoreCatalogImpl:
final Datastore datastore1 = new CsvDatastore("ds1", "testfile.csv");
final Datastore datastore2 = new JdbcDatastore("ds2", 
"jdbc:jtds:sqlserver://localhost:1433/test", "testuser", "testpw", true);
final DatastoreCatalog datastoreCatalog = new 
DatastoreCatalogImpl(Arrays.asList(datastore1, datastore2);

I hope that helps! :)

BR,
Dennis

-------------------

View the topic online to reply - go to 
https://datacleaner.org/topic/1186/NoSuchComponentException-error-when-reading-Job-file-in-Java

-- 
You received this message because you are subscribed to the Google Groups 
"DataCleaner-notify" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/datacleaner-notify.
For more options, visit https://groups.google.com/d/optout.

Reply via email to