You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by takidean <ta...@hotmail.fr> on 2013/03/30 13:48:41 UTC

Camel cannot store file !!

i want to send selected rows from a database to file this is my code
 <camelContext trace="false" xmlns="http://camel.apache.org/schema/spring">
    <route id="trigger-database">
        <from uri="timer://webinar?delay=20000&amp;period=20000"/>
        <setBody>
            <constant>SELECT * FROM `user` WHERE 1</constant>
        </setBody>
        <to uri="jdbc:reportdb"/>
        <split>
            <simple>${body}</simple>
            <to uri="file://src/data/"/>
        </split>
    </route>
</camelContext>

    <bean id="reportdb"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
        <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
        <property name="url" value="jdbc:mysql://localhost:3306/examen"/>
        <property name="username" value="root"/>
        <property name="password" value=""/>
    </bean>
    

    
</beans>

/**************Error********/
when i execute it i got this error

ERROR Failed delivery for (MessageId: ID-unknown-PC-2192-1364647676887-0-3
on ExchangeId: ID-unknown-PC-2192-1364647676887-0-4). Exhausted after
delivery attempt: 1 caught:
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
store file: src\data\ID-unknown-PC-2192-1364647676887-0-3
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
store file: src\data\ID-unknown-PC-2192-1364647676887-0-3



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-cannot-store-file-tp5730110.html
Sent from the Camel - Users mailing list archive at Nabble.com.