Camel Smooks MyBatis

2014-05-16 Thread Wilkerson, Daniel
Hi everyone. Still somewhat new to Camel. I'm trying to put to ether a Camel integration scenario that routes CSV files to Smooks, then have smooks unmarshall directly to a MyBatis value object that is published to a queue for insertion into a database. I've been able to get a Smooks route conf

org.apache.camel.TypeConversionException: Error during type conversion from type: org.apache.camel.component.file.GenericFile to the required type

2014-05-22 Thread Wilkerson, Daniel
Hi everyone. I working on a data integration prototype/proof-of-concept using Camel 2.12, Fuse 7.1, Smooks 1.5.2, and ActiveMQ 5.9. I'm stuck currently in a unit test I'm writing to test binding an CSV file read from the file system using the file:// component and passed to smooks for transformi

Re: org.apache.camel.TypeConversionException: Error during type conversion from type: org.apache.camel.component.file.GenericFile to the required type

2014-05-22 Thread Wilkerson, Daniel
(SmooksSAXFilter.java:86) ... 28 more On 5/22/14 11:01 AM, "Claus Ibsen" wrote: >Hi > >Add a before the smooks so the data is >in a format that smooks can read. > >On Thu, May 22, 2014 at 4:55 PM, Wilkerson, Daniel > wrote: >> Hi everyone. I working

Re: org.apache.camel.TypeConversionException: Error during type conversion from type: org.apache.camel.component.file.GenericFile to the required type

2014-05-22 Thread Wilkerson, Daniel
ive to smooks is beanio which I find good >http://camel.apache.org/beanio >http://beanio.org/ > >On Thu, May 22, 2014 at 5:34 PM, Wilkerson, Daniel > wrote: >> Thank you for the quick reply Claus. I sincerely appreciate it. >> >> I placed the ahead of the Smooks as

MyBatis Camel Route Config - ### Error opening session. Cause: java.lang.NullPointerException

2015-03-27 Thread Wilkerson, Daniel
Hi everyone. I'm working on a small prototype using Camel, Bindy, and MyBatis. I'm currently doing this as a standalone Camel app. I'm not currently using Spring or Blueprint, just Java DSL. I'm trying to keep this a simple as possible for the time being. We are looking at this strategy to port

Re: MyBatis Camel Route Config - ### Error opening session. Cause: java.lang.NullPointerException

2015-03-27 Thread Wilkerson, Daniel
i > >Do you have a stacktarce of the NPE? > >On Fri, Mar 27, 2015 at 5:35 PM, Wilkerson, Daniel > wrote: >> Hi everyone. I'm working on a small prototype using Camel, Bindy, and >>MyBatis. I'm currently doing this as a standalone Camel app. I'm not >>

Re: MyBatis Camel Route Config - ### Error opening session. Cause: java.lang.NullPointerException

2015-03-30 Thread Wilkerson, Daniel
Hi Everyone. I solved the issue. It was a case of tired eyes: naming issue in SqlMapConfig tag. Thank you for taking a look Claus. I appreciate it. On 3/27/15 1:08 PM, "Claus Ibsen" wrote: >Hi > >Do you have a stacktarce of the NPE? > >On Fri, Mar 27, 2015 at 5

Camel-mybatis and MyBatis Generator Workflow Issue

2015-03-30 Thread Wilkerson, Daniel
Hi everyone. I'm using MyBatis Generator to generate our MyBatis artifacts and the mapper files contain id= attributes that are very generic. For example, insert is what's used as the id for an insert statement instead of something like, insertObjectName. Our code running outside of Camel doesn

Problem Adding ActiveMQ Broker URL to Camel Context Using Java DSL Type Project

2015-04-01 Thread Wilkerson, Daniel
I'm trying to add the correct tcp:// connection url to the camel context in a standalone/Java DSL camel app and am using a boot() method that was pulled from example code on the camel site. In my boot() method I'm trying to add the correct URL to the camel context but it's not getting added. Whe

Re: Problem Adding ActiveMQ Broker URL to Camel Context Using Java DSL Type Project

2015-04-02 Thread Wilkerson, Daniel
Hi everyone. I figured out the issue here (sort of). The camel main class appears to not provide the Camel context correctly when the getOrCreateCamelContext() is called. I tried for hours yesterday trying to make this give me the correct context so I could add the ActiveMQ component in with th