NullpointerException in ClassPathXmlApplicationContext

2013-01-24 Thread Christian Jacob
Hi there, I'm quite new to Camel and face some problems when building unit tests which extend CamelSpringTestSupport. In the constructor of ClassPathXmlApplicationContext, I oftenly (*but not always!*) get a NullpointerException. This is the stack trace: Can anybody help me? Many thanks in advan

Re: NullpointerException in ClassPathXmlApplicationContext

2013-01-24 Thread Christian Jacob
Hi Claus, I'm using JDK 1.7.0, Camel 2.10.3, and Spring 3.2.0.RELEASE, and I'm running my tests in Eclipse Juno. Thanks for your help. Do you need more informations? Regards, Christian -Ursprüngliche Mitteilung- Von: Claus Ibsen-2 [via Camel] An: Christian Jacob Vers

Re: NullpointerException in ClassPathXmlApplicationContext

2013-01-25 Thread Christian Jacob
Hi Claus and Christian, thanks for your support. Using JAXB 2.2.6 helped it out. But I will also check for a newer JDK version. Kind regards, Christian -Ursprüngliche Mitteilung- Von: Claus Ibsen-2 [via Camel] An: Christian Jacob Verschickt: Fr, 25 Jan 2013 7:42 am Betreff: Re

Re: JPA Component Behavior

2013-04-23 Thread Christian Jacob
Hi Claus,I'm very eager to get that feature, too. My requirements for a new project are: run on every 1st of a month (or some other Quartz clause) and then select all objects with status = 0 have a user interface for an administrator in which he/she can customize some search arguments such as a tim

how to read a large amount of data in a 2nd step

2013-04-29 Thread Christian Jacob
Hi there, maybe I am running totally in the wrong direction because I'm a Camel rookie. But what I try to do is the following: I have database table of orders and a 2nd db table of order lines. A single order may have 10 order lines. Each order with all its order lines has to be stored in singl

share database connection properties between JPA and JDBC consumer

2013-05-02 Thread Christian Jacob
Hi there,maybe I'm running in the totally wrong direction. My problem is this: I have a database table "order" and a 2nd database table "orderlines". My task is to produce a csv file for each "order" entry with a value of 0 in a column "status". This csv file should contain some informations of the

Processing VERY large result sets

2016-11-10 Thread Christian Jacob
Hi there,my task is to execute a JDBC query against a Hive database and produce rows in csv files. The clue is, that depending on the query criteria, the number of range from some dozens to some millions. My first solution was something like this: from ("...").to ("sql:...") // produces a List>.spl

Re: Processing VERY large result sets

2016-11-14 Thread Christian Jacob
Meanwhile, I found a way how to solve it. It may not be the best one, but it works. I programmed a custom processor. In the process method of this processor, I navigated from the exchange to the camel context, took its registry, and from that the sql datasource. The sql datasource has a java.sql.Co