Re: Converting CSV to XML

2012-09-26 Thread Claus Ibsen
On Wed, Sep 26, 2012 at 8:33 PM, German O wrote: > Hi, Is there a way to do this without passing throw a model?... just read the > csv, and put in the that format?.. > > My case is that the csv can change the columns, and then I have to output > another xml, so I use a xsl to translate to the fina

Re: Converting CSV to XML

2012-09-26 Thread Christian Müller
Use the file component to read the file, access the in message body and do what ever you need to do. Best, Christian Sent from a mobile device Am 27.09.2012 07:38 schrieb "German O" : > Hi, Is there a way to do this without passing throw a model?... just read > the > csv, and put in the that for

Re: Converting CSV to XML

2012-09-26 Thread German O
Hi, Is there a way to do this without passing throw a model?... just read the csv, and put in the that format?.. My case is that the csv can change the columns, and then I have to output another xml, so I use a xsl to translate to the final XML. The idea is to put the csv into a simple XML like t

Re: Getting a node from an XML using camel-cxf

2012-09-26 Thread Lars Lipinski
if you had errors in your XPath expression, maybe you didn't take care of the namespaces? Here's an example in Java DSL how to extract text content of a node into a header: .setHeader( "ExtractedServiceGroupId", xpath("//axis2:ServiceGroupId/text()").namespace("axis2", "http://ws.apache.org/namesp

Re: Restlet component with OSGi/Blueprint

2012-09-26 Thread Christian Müller
Use a properties placeholder like here [1]. You could also use the Camel provided properties component [2]. The FAQ entry [3] could be also useful for you. [1] https://svn.apache.org/repos/asf/camel/trunk/components/camel-blueprint/src/test/resources/test.xml [2] http://camel.apache.org/using-prop

Re: File and async/ woes

2012-09-26 Thread Ralf Steppacher
Well, turns out that the only reliable way of preventing the file consumer thread from being assigned tasks is to set the queue depth of the executor pool to "unlimited" (maxQueueSize="0") and use the throttling route policy and sufficiently low maxMessagesPerPoll at the file endpoint to manage the

Re: How To implement a periodically polled queue.

2012-09-26 Thread Claus Ibsen
On Tue, Sep 25, 2012 at 9:36 PM, anupamsen wrote: > For the time being, I am using a consumer template to fetch n number of > messages in the *periodicallyPolledInputHandler* processor triggered from > the quartz and pushing it to the originating queue using a producer > template. > Yeah this is

Re: Getting a node from an XML using camel-cxf

2012-09-26 Thread Christian Müller
Use the Apache Camel CXF component [1] with the MESSAGE dataFormat to receive the request. Afterwards you can use the XPath [2] or XQuery component to retrieve the needed data. Something like /soapenv:Envelope/soapenv:Header/wsa:MessageID [1] http:

extract data from mutlipe csv file convert to xml

2012-09-26 Thread London12345
Hi, I am using camelCSV to parse csv to xml and the final xml will have elements retrieved from multiple csvs. Can you please let me know whether camel csv provide support to link different csv's? thanks -- View this message in context: http://camel.465427.n5.nabble.com/extract-data-from-mutli

Re: Using a custom based load balancer.

2012-09-26 Thread Claus Ibsen
Hi Can you try enabling stream caching http://camel.apache.org/stream-caching.html On Wed, Sep 26, 2012 at 11:37 AM, balkishore wrote: > Hi claus, > Thanks for replying. > > But why do i always get an error invalid xpath expression, when the same > xpath expression works fine with java API. >

Re: Apache Karaf and camel-fop

2012-09-26 Thread Maruan Sahyoun
done . see SMX4-1249Today 12:25 With kind regards Maruan Sahyoun Am 26.09.2012 um 12:56 schrieb Babak Vahdat : > > > Am 26.09.12 11:15 schrieb "Maruan Sahyoun" unter : > >> Hi there, >> >> it seems that the META-INF/services entries of fop >> (http://svn.apache.org/viewvc/xmlgraphics/fop/ta

Re: Apache Karaf and camel-fop

2012-09-26 Thread Babak Vahdat
Am 26.09.12 11:15 schrieb "Maruan Sahyoun" unter : >Hi there, > >it seems that the META-INF/services entries of fop >(http://svn.apache.org/viewvc/xmlgraphics/fop/tags/fop-1_0/src/java/META-I >NF/services/) are missing in the ServiceMix bundle. Is there a way to get >these entries in? Hi, Well

Restlet component with OSGi/Blueprint

2012-09-26 Thread Martin Stiborský
Hello, I'd like to ask you for few things, I'm still missing some basic points I guess, so maybe it will sound like trivial, sorry for that… I need to use the restlet with Apache Camel. I need to create REST API with Apache Camel to offer data and also I need to consume REST API, from outside appl

Re: Using a custom based load balancer.

2012-09-26 Thread balkishore
Hi claus, Thanks for replying. But why do i always get an error invalid xpath expression, when the same xpath expression works fine with java API. I also tried the java API version and again i got an error saying the body is empty. And in real the body is empty, because the content are present o

Re: Apache Karaf and camel-fop

2012-09-26 Thread Maruan Sahyoun
Hi there, it seems that the META-INF/services entries of fop (http://svn.apache.org/viewvc/xmlgraphics/fop/tags/fop-1_0/src/java/META-INF/services/) are missing in the ServiceMix bundle. Is there a way to get these entries in? With kind regards. Maruan Sahyoun

Re: Using a custom based load balancer.

2012-09-26 Thread Claus Ibsen
On Wed, Sep 26, 2012 at 8:42 AM, balkishore wrote: > Hi claus, > If i use the Xpath java API, something like this: > > XPathExpression expression = > xpath.compile("substring(string(/*[local-name()='Envelope']/*[local-name()='Header']/*[local-name()='ReplyTo']/*[local-name()='ReferenceParameters']

Re: Correct use of camelproxy + (Updating Exchange in Spring DSL)?

2012-09-26 Thread zuff
Hi Claus, Thanks, I finally managed to get it working after some trying. Right now, I have to try store the JMSReplyTo in the first route, and "recall" it for use in the second route. I forsee that I will face quite a number of challenges and have to seek advise from this forum and you soon.

Getting a node from an XML using camel-cxf

2012-09-26 Thread balkishore
Hi, I wanted to extract a term from my soap message, I tried using Xpath but, no matter what I try i always use to get an error: Invalid xpath expression. So i decided to take help of CXF. I came up with something like this: CxfPayload payload = exchange.getIn().getBody(CxfPayload.class); List he

Re: Using ManagedServiceFactory to dynamically deploy routes

2012-09-26 Thread declancox
Hi All, I think the issue I describe in this post might have to do with this issue https://issues.apache.org/jira/browse/ARIES-584, in my karaf 2.2.9 installation I am using Aries 0.3.2 Blueprint release, apparently fixed in 1.0. Cheers, Declan -- View this message in context: http://camel.465

About aggregation

2012-09-26 Thread michele.odorizzi
Hi all. I need to handle this configuration, and I would to know how to implement it in Camel. 1. A client sends an http request to Camel; 2. Camel invokes an external app to get the data. The exchange protocol with this app is (necessarily) quite elaborate: Camel invokes this app; the app send a

Re: Headers reset after dynamic route processing

2012-09-26 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/why-do-my-message-lose-its-headers-during-routing.html Also try upgrading Camel version as it may be fixed. And as we say on this page asking for help/support. There is some tips. http://camel.apache.org/support On Tue, Sep 25, 2012 at 5:39 PM, ritesh

Re: how to include a processor in a route with InOut MEP

2012-09-26 Thread Sura Monday
Hi Christian, It worked!! Many thanks for the quick response:) /Sura From: Christian Müller To: users@camel.apache.org; Sura Monday Sent: Wednesday, September 26, 2012 6:15 PM Subject: Re: how to include a processor in a route with InOut MEP Put the proc