Re: how to execte jdbc IN clause statement

2014-11-22 Thread David Karlsen
Would a collection of integers work? 22. Nov. 2014 13:06 skrev "chaituu" : > 22 04:02:32,011 #0 - timer://timer1 TimerConsumer WARN > warnMarkerIgnoringBase.java > :136Error processing exchange. Exchange[Message: UPDATE TEST SET > FLAG='Y' WHERE ID

Re: how to execte jdbc IN clause statement

2014-11-22 Thread David Karlsen
Would a collection of integers work? 22. Nov. 2014 13:06 skrev "chaituu" : > 22 04:02:32,011 #0 - timer://timer1 TimerConsumer WARN > warnMarkerIgnoringBase.java > :136Error processing exchange. Exchange[Message: UPDATE TEST SET > FLAG='Y' WHERE ID

Re: how to execte jdbc IN clause statement

2014-11-22 Thread Andrew Block
The issue lies in how the SQL statement is prepared for the database. By default, the JDBC Component utilizes the DefaultJdbcPrepareStatementStrategy class where a PreparedStatement is used to interact with the database. When using named parameters, a single named parameter is used for each head

getRouteDefinition throws NullPointerException in CamelSpringTestSupport before context is started

2014-11-22 Thread Camel Guy
Camel 2.14.0 I am extending CamelSpringTestSupport with: @Override public boolean isUseAdviceWith() { return true; } In a @Before method I call context.getRouteDefintion("some.id") It throws an exception: org.apache.camel.impl.DefaultCamelContext.getRouteDefinition(DefaultCamelContext.java

FTP Component configuration

2014-11-22 Thread Atanas Shindov
Hi guys, After I've watched the Riding Camel presentation by James Strachan I tried to implement a route where all endpoints are FTP based, but instead of configuring each FTP endpoint with hostname, port, and login credentials, I wanted

Re: AHS-WS problem?

2014-11-22 Thread jogro
Adding the following method to the java config worked liked a charm: @Bean public ServletRegistrationBean camelWsServletRegistrationBean() { ServletRegistrationBean registration = new ServletRegistrationBean( new CamelWebSocketServle

how to execte jdbc IN clause statement

2014-11-22 Thread chaituu
22 04:02:32,011 #0 - timer://timer1 TimerConsumer WARN warnMarkerIgnoringBase.java :136Error processing exchange. Exchange[Message: UPDATE TEST SET FLAG='Y' WHERE ID IN(:?ids)]. Caused by: [java.sql.SQLSyntaxErrorException - ORA

Re: REST DSL Hello World Not working

2014-11-22 Thread Claus Ibsen
Hi Ah spotted this first now. What component are you using? Is it camel-restlet? On Thu, Oct 2, 2014 at 5:58 PM, Max Bridgewater wrote: > Hi, > > The following hello word example provided in the documentation does not > seem to work well: > > > > > > > > >

Re: Camel-Restlet 2.14.0 DecodeRepresentation

2014-11-22 Thread Claus Ibsen
Hi I think you are looking at some old code, the current code on master does not match, and it seems as supporting using the representation as-is. I suggest to double check your findings. On Fri, Nov 21, 2014 at 8:26 PM, sandp wrote: > Looks like there's a bug in file* > org.apache.camel.compon

Re: Impossible to configure HttpBinding for ServletComponent

2014-11-22 Thread Claus Ibsen
Hi Not its correct. That code is when you use the Rest DSL which requires that binding. The regular servlet component does not use that code and works as before. On Fri, Nov 21, 2014 at 4:56 PM, Pavel Lechev wrote: > Hi all, > I think this is a genuine bug, but I thought to post it here in the f

Re: Camel FTP, sending a single file, the simplest way, for a noob

2014-11-22 Thread Claus Ibsen
Hi Use the CamelFileName (Exchange.FILE_NAME) header to set the name of the file you want to upload the file as on the FTP server. See more details at http://camel.apache.org/file2 http://camel.apache.org/file-language.html Use the dynamic to pattern if you need to send to different FTP servers

Re: POJO binding with the Rest DSL

2014-11-22 Thread Claus Ibsen
Hi The rest DSL is on the other side, eg on the server side, to exposes Camel routes as REST services. Not on the client side how to call another REST service. For POJO -> Json you can use jackson to turn that into json. On Fri, Nov 21, 2014 at 6:41 PM, Tim Dudgeon wrote: > OK, that figures, an