Camel Simple language ++ operator

2015-10-27 Thread Vanshul . Chawla
Hello all, Can I get an example on how to use ++ operator in Camel Spring DSL I did this MsgID:${header.Index} +1 and MsgID:${header.Index}++ But both doesn't work Vanshul

splitter().tokenize(...) does not recognize new lines in file uploaded using Spring MVC MultipartFile

2015-10-27 Thread furchess123
I have a route configuration that uses splitter().tokenize(...): from(FILE_SPLITTER_ENDPOINT).routeId("fileSplitterRoute"). split(). tokenize(System.lineSeparator(), config.getLinesPerChunk()). streaming(). // enable streaming vs. reading all in

splitter().tokenize(...) does not recognize new lines in file uploaded using Spring MVC MultipartFile

2015-10-27 Thread furchess123
I have a route configuration that uses splitter().tokenize(...): from(FILE_SPLITTER_ENDPOINT).routeId("fileSplitterRoute"). split(). tokenize(System.lineSeparator(), config.getLinesPerChunk()). streaming(). // enable streaming vs. reading all in

Re: Spring Boot WS - After receiving request, camel throws NullPointerException

2015-10-27 Thread phubner
Claus, Is there a way to work around this issue programmatically? Thanks, -- View this message in context: http://camel.465427.n5.nabble.com/Spring-Boot-WS-After-receiving-request-camel-throws-NullPointerException-tp5772930p5773125.html Sent from the Camel - Users mailing list archive at Nabbl

Re: Camel Metrics during Exception

2015-10-27 Thread vivekrao001
If we don't stop the timer, does the thread will get stuck and result in memory leaks? Could somebody please help. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Metrics-during-Exception-tp5772948p5773119.html Sent from the Camel - Users mailing list archive at Nabble.

Re: cxfEndpointConfigurer in an URI

2015-10-27 Thread Claus Ibsen
Works in Java too, but you should add the bean to the registry. That depends a bit how you create and start camel in java. There is JndiRegistry / SimpleRegistry / CdiRegistry etc. On Tue, Oct 27, 2015 at 2:24 PM, rambo wrote: > Hi Claus, > > Thanks for the reply. This will work using XML, but I

Re: cxfEndpointConfigurer in an URI

2015-10-27 Thread rambo
Hi Claus, Thanks for the reply. This will work using XML, but I forgot to say that we want to use java code to define the routes. If I use a reference to the registry in a java code URI, it does not work. ex: From("cxf:/customer?cxfEndpointConfigurer=#myEndpointConfigurer") I still get the same

Re: how to get jetty logging to debug cxfrs servce 500

2015-10-27 Thread Sergey Beryozkin
Hi >public static String get(String request){return null;} Remove 'static', that might help. Besides, you can use an interface only (with this from option, and with cxfrs:endpoint with the latest Camel), and actually invoke on your bean, though for this case it is not needed... HTH,

Not able to convert Single xml object into jsonArray thorugh Camel Spring DSl.

2015-10-27 Thread Niraj
Hi, can we convert a single json object to jsonArray with use of SpringDSL . just for example, i have a jsonObject like. Joe Bloggs and have to convert it into jsonArray like {team:[employee:{name:'Joe',surname:'Bloggs'}]} or any suitable form of array. any help would be much appreciated.

from pojo to csv

2015-10-27 Thread Scisci
hi everyone, I've a problem with marshal a List with bindy. this is part of my route; on processor I've setted: List b = exchange.getOut()set.Body(b) on the result file I've the header and blank lines for each object in the List. I've also tryed add: before the marshal but I've an

RE: Camel split using xpath for big xml

2015-10-27 Thread Vanshul . Chawla
Thanks Claus. How to access CamelSplitIndex using Spring DSL? Actually I need to pass this split xml to a xslt and for each time I use that xslt, the split index needs to be passed and that value should be printed. So if my file was 550 repeating structure, I need to create 5 files and one ele

Re: Camel split using xpath for big xml

2015-10-27 Thread Claus Ibsen
There is also xtokenizer which is a more specialized variation of tokenize xml=true On Tue, Oct 27, 2015 at 9:35 AM, Vanshul.Chawla wrote: > Got that > > > > -Original Message- > From: Vanshul.Chawla [mailto:vanshul.cha...@target.com] > Sent: Tuesday, October 27, 2015 1:54 PM > To: users

RE: Camel split using xpath for big xml

2015-10-27 Thread Vanshul . Chawla
Got that -Original Message- From: Vanshul.Chawla [mailto:vanshul.cha...@target.com] Sent: Tuesday, October 27, 2015 1:54 PM To: users@camel.apache.org Subject: Camel split using xpath for big xml Hello All, We need to split a big xml containing a repeating element into multiple messa

Camel split using xpath for big xml

2015-10-27 Thread Vanshul . Chawla
Hello All, We need to split a big xml containing a repeating element into multiple messages each containing 100 count for that repeating element. So say repeating element occurs for 550 times, we need to get 6 xmls(5 with 100 and last with 50 occurences). Tokenize has an option of group.Do we

Re: DeadLetterQueue -- Access the object before shutDown

2015-10-27 Thread Claus Ibsen
There is a getPendingRedeliveryCount() on the error handler api / mbean you can use to know if there is anyone pending. And then there is the regular inflight repository as well. org.apache.camel.spi.InflightRepository On Tue, Oct 27, 2015 at 8:10 AM, udaykumarjonna wrote: > Hi Claus , > > > Any

Re: cxfEndpointConfigurer in an URI

2015-10-27 Thread Claus Ibsen
You need to register your custom configurer in the registry and refer to it using the # notation. See http://camel.apache.org/how-do-i-configure-endpoints.html http://camel.apache.org/registry.html On Mon, Oct 26, 2015 at 10:39 PM, rambo wrote: > Hi, > > I'm using camel to expose a CXF SOAP serv

Re: NEED HELP: Exchanges remain inflight on route with recipientList to netty:udp

2015-10-27 Thread SteveR
Ok, I just tried upgrading to *Camel 2.16.0* in the hope that the new Dynamic To would solve this problem, but I still get the same result, that is all exchanges that are sent to the route stay marked as *ExchangesInflight*. This time I even had a

NEED HELP: Exchanges remain inflight on route with recipientList to netty:udp

2015-10-27 Thread SteveR
Hi: *What I'm using:* Linux RHEL6, Camel 2.15.3, netty3, Java 1.7 I have to deliver my Camel application to production soon and I have a big problem that I can't figure out. I have a route that consumes from a *SEDA *queue, formulates a UDP acknowledgement from the received exchange body, and th

Re: NEED HELP: Exchanges remain inflight on route with recipientList() or toD()

2015-10-27 Thread SteveR
This problem is severe enough to cause my Camel application to exhaust resources (e.g. number of open files) which results in major application failure. Below are some of the errors and stack trace that I get when sending in only 4000 messages using a Java UDP sender test program. I've worked pre

Re: NEED HELP: Exchanges remain inflight on route with recipientList() or toD()

2015-10-27 Thread SteveR
By the way, on the ack-back route in question that sends the UDP acknowledgement via *netty:udp*, I've tried with and without the *udpConnectionlessSending *option and neither way works. -- View this message in context: http://camel.465427.n5.nabble.com/NEED-HELP-Exchanges-remain-inflight-on-ro

Re: DeadLetterQueue -- Access the object before shutDown

2015-10-27 Thread udaykumarjonna
Hi Claus , Any Update on the issue which i posted how to access in-flight repo while shutting down -- View this message in context: http://camel.465427.n5.nabble.com/DeadLetterQueue-Access-the-object-before-shutDown-tp5768069p5773086.html Sent from the Camel - Users mailing list archive