Re: camel-jdbc: read-update performance drop / prepareStatementStrategy

2015-02-19 Thread rwijngaa
I find the solution: instead of using the camel-jdbc component, i now use the camel-sql component with the option batch=true. This will do ps.addBatch() and eventually ps.executeBatch() which gives a lot better performance. You'll have to prepare the parameters a bit though (as an iterator

Why does the default Camel onException match go from bottom up of exception cause?

2015-02-19 Thread toomanyedwards
Hi all, I'm relatively new to Camel and am working on exception handling in our Camel route. My question is why does the default camel exception policy search for onException matches from the bottom of the exception cause stack vs from the top? Seems like matching from the top down would make

Bindy - Date Unmarshall Issue

2015-02-19 Thread kc525
I ran into an issue with Apache Camel Bindy data format for the Date field parsing from a CSV file. *Date in the CSV : 02/11/2015 03:34:49 PM.* Format in the Bindy Class annotated as *@DataField(pos = 8,pattern="MM/dd/ hh:mm:ss a") private Date time;* Getting below exception java.lang.Ille

Re: snapshots broken?

2015-02-19 Thread Claus Ibsen
Hi Its likely better to build SNAPSHOTS locally, then you are sure its latest code. You can do a quickbuild http://camel.apache.org/building.html On Fri, Feb 20, 2015 at 1:40 AM, Steven Marcus wrote: > Hello, > > I'm keen to use some patches I've submitted, but as I write this there has > been

snapshots broken?

2015-02-19 Thread Steven Marcus
Hello, I'm keen to use some patches I've submitted, but as I write this there has been an update to snapshots for 10 days: https://repository.apache.org/content/repositories/snapshots/org/apache/camel/camel-aws/2.15-SNAPSHOT/ Are snapshots created automatically and regularly? TIA, Steven --

Re: http4 - socket timeout configured per-message?

2015-02-19 Thread Claus Ibsen
You can use "dyanmic to" http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html But mind its likely not very good to have a gazillion of different http endpoints to the same host but just with small variations in soTimeout. On Thu, Feb 19, 2015 at 2:54 PM, James Green wrote: > I have a ro

Re: [SQL Component] Transaction manager force commit

2015-02-19 Thread Grzegorz Grzybek
Hello Fabrizio Do you really need to? is for having single transaction for releated DML statements. If you really need to have commit after each INSERT you can remove and configure your datasource to return connections with autocommit set to true. But I can't imagine where it's needed. regards

[SQL Component] Transaction manager force commit

2015-02-19 Thread fabrizio.spataro
Hello, i am using camel 2.14.2-SNAPSHOT. Into my transacted route are using this settings: My routes are: Can i insert a *programmatic commit* between QUERY 2 and QUERY 3? How do it with SP

http4 - socket timeout configured per-message?

2015-02-19 Thread James Green
I have a route that sends to a uri provided in the message. Also in the message is the socket timeout value. The first part is easy, but I can't see a way of specifying the socket timeout at runtime. Any ideas? Thanks, James

Re: http4.html Possible error

2015-02-19 Thread Claus Ibsen
Hi Yes that was wrong, I am removing that wrong statement On Thu, Feb 19, 2015 at 11:52 AM, James Green wrote: > Halfway down the page under "Configuring the URI to call" the example is > given: > > from("direct:start") > .setHeader(Exchange.HTTP_URI, constant("http://newhost";)) > .to("http

http4.html Possible error

2015-02-19 Thread James Green
Halfway down the page under "Configuring the URI to call" the example is given: from("direct:start") .setHeader(Exchange.HTTP_URI, constant("http://newhost";)) .to("http4://oldhost"); Under it states: "*Where Constants is the class, org.apache.camel.component.http4.Constants."* Is this corr