Hi,

 I have already referred to the datasource (OSGI service) in the beans.xml:

 <reference id="dataSource" interface="javax.sql.DataSource"
filter="(dataSourceName=default)" />

a) And I had already tried referring to the datasource using the reference
id, in quartz properties:

  <bean id="quartz"
class="org.apache.camel.component.quartz.QuartzComponent">    
        <property name="properties"><props>
                     <prop
key="org.quartz.jobStore.dataSource">*dataSource*</prop>....
          </props></properties>
 </bean>

b) Also, I had earlier tried to refer the datasource by the osgi service
name..

   <bean id="quartz"
class="org.apache.camel.component.quartz.QuartzComponent">    
        <property name="properties"><props>
                     <prop
key="org.quartz.jobStore.dataSource">*default*</prop>....
          </props></properties>
 </bean>


None of the 3 approached had worked.

Exception trace while referring to bean reference id.


Failed to obtain DB connection from data source 'dataSource':
java.sql.SQLException: There is no DataSource named 'dataSource'
org.quartz.JobPersistenceException: Failed to obtain DB connection from data
source 'dataSource': java.sql.SQLException: There is no DataSource named
'dataSource' [See nested exception: java.sql.SQLException: There is no
DataSource named 'dataSource']

Thanks,
Lakshmi



--
View this message in context: 
http://camel.465427.n5.nabble.com/Missing-datasource-exception-while-referring-to-OSGI-datasource-for-clustering-quartz-with-camel-quaz-tp5738400p5738423.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to