Re: Best way to poll a database and process in chunks

2017-04-06 Thread Zoran Regvart
Hi David, I think you will find that binding a bigger number of parameters won't lead to better performance, both with missing statement cache due to fluctuating number of parameters and due to not using indexes and performing full table scans. But you should run SQL explain and gather statistics

Re: Best way to poll a database and process in chunks

2017-04-06 Thread Claus Ibsen
Hi Maybe you can try and let us see what it goes. I am not so sure we can make this in a way to make it not complicated. How would you specify what those IN keys are from a select statement that can return basically anything. On Thu, Apr 6, 2017 at 6:59 PM, dvlato wrote: > Hello Claus, Ibsen:

Re: Camel not Sending Headers with Objects to RabbitMQ

2017-04-06 Thread Claus Ibsen
Hi You cannot just send any kind of java object as a header. Search the rabbitmq documentation what kind of header types it supports. Currently its set to primitive types and string etc just as the JMS spec etc do. On Wed, Apr 5, 2017 at 7:39 PM, Caleb Skidmore wrote: > Hello, > > When I set a

Re: Best way to poll a database and process in chunks

2017-04-06 Thread dvlato
Hello Claus, Ibsen: Thank you very much for the thorough responses. We don't really need to use the JPA component, and I think it makes more sense to use sql/jdbc for the kind of bulk operations we want to do. What I think it would be really useful is to allow for the "onConsumeBatchComplete" SQ

Re: JAXB Marshalling from email route

2017-04-06 Thread Gary
sure enough, thanks for everything. again, it was something stupid I overlooked. you never know real bug or just human error. 9 out 10 human error. I was type converting my attachments content as string. I changed my wrapper and exchange to byte[] and all is good. thanks again! - Gary Le

Re: Camel not Sending Headers with Objects to RabbitMQ

2017-04-06 Thread Jacobsen, Jasen W.
Is the object serializable? https://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html - Jasen. On 4/5/17, 1:39 PM, "Caleb Skidmore" wrote: >Hello, > >When I set a header as an object and route it to RabbitMQ, the header >does not arrive. For instance: > >List testData = new ArrayLis

Route and route test in Spring Boot application

2017-04-06 Thread Burkard Stephan
Hi We are moving our Camel/ActiveMQ services from Karaf bundles with Spring 3 and XML-Config to Spring-Boot with Spring 4 and Java -Config. I have built a very small prototype of such a Spring Boot application with a Camel route and the corresponding route test. I would like to know if this i