in my db-data-config.xml i have configured two datasource, each with his
parameter name, for example:

<dataSource name="test1"
     type="JdbcDataSource"
     driver="com.mysql.jdbc.Driver"
     url="jdbc:mysql://localhost/firstdb"
     user="username1"
     password="psw1"/>

<dataSource name="test2"
     type="JdbcDataSource"
     driver="com.mysql.jdbc.Driver"
     url="jdbc:mysql://localhost/seconddb"
     user="username2"
     password="psw2"/>

<document name="content">
        <entity name="news" datasource="test1" query="select...">
        <field column="OTYPE_ID" name="otypeID" />
            <field column="NWS_ID" name="cntID" />
            ....
        </entity>

        <entity name="news_update" datasource="test2" query="select...">
        <field column="OTYPE_ID" name="otypeID" />
            <field column="NWS_ID" name="cntID" />
            ....
        </entity>
</document>
</dataConfig>

but when in solr from dataimport i execute the second entity-name-query it
launch an exception:

"*Table 'firstdb.secondTable' doesn't exist\n\tat*" could someone help me?
thank you in advance


http://stackoverflow.com/questions/17974029/solr-4-4-multiple-datasource-connection

Reply via email to