camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Cable (JIRA)" <>
Subject [jira] [Created] (CAMEL-4152) jdbc idempotent repository - table creation
Date Fri, 24 Jun 2011 22:51:47 GMT
jdbc idempotent repository - table creation

                 Key: CAMEL-4152
             Project: Camel
          Issue Type: Improvement
          Components: camel-sql
    Affects Versions: 2.7.1
         Environment: camels on any
            Reporter: Julian Cable
            Assignee: Christian Müller

 I couldn't find any reference to using this with spring DSL. I came up with this which seems
to work:

	<bean id="myRepo" class="org.apache.camel.processor.idempotent.jdbc.JdbcMessageIdRepository">
		<constructor-arg index="0" ref="myJDBC"/>
		<constructor-arg index="1" value="foobar"/>

	<bean id="myJDBC" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
		<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
		<property name="url" value="${myJDBC.uri}" />
		<property name="username" value="${myJDBC.username}" />
		<property name="password" value="${myJDBC.password}" />

I think it would be better if the class had a default constructor and looked for properties.


This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message