Re: How to Get SOAP Response from the Last Camel Processor in the Route?

2011-03-26 Thread hyjshanghai
I also checked that MEP of the exchange object is set to InOut, before the last processor returns. Anyway, an empty SOAP message is received at last. -- View this message in context: http://camel.465427.n5.nabble.com/How-to-Get-SOAP-Response-from-the-Last-Camel-Processor-in-the-Route-tp4127850p42

Simple convert XML to JSON?

2011-03-26 Thread Magnus Palmér
Hi, I am trying to read a xml-file via the file component and I split and filter the result and then change the dataformat from XML to JSON before sending it out with the file component again. I just can't seem to find a solution using Google or in my Camel In Action book. (My real world xml is to

Re: Streaming huge EDI file with camel

2011-03-26 Thread Claus Straube
Hi Claus, I know thats deprecated and I'm using their stuff. The post to the camel list was because it's still 'camel' and there is a chance that anybody community has used it before ;) On 26.03.2011 11:37, Claus Ibsen wrote: Hi If you refer to the old smooks component from camel-extra the

Re: split() not splitting

2011-03-26 Thread Claus Ibsen
What kind of array did your bean return? Camel ought to iterate arrays as well. Can you post the method signature of your bean. And what version of camel are you using? On Friday, March 25, 2011, grafpoo wrote: > well, i figured it out. i was sending an array, from my processor bean, to > split(

Re: Mock endpoints and parameters

2011-03-26 Thread Claus Ibsen
Hi I created a ticket https://issues.apache.org/jira/browse/CAMEL-3809 -- Claus Ibsen - FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/

Re: Streaming huge EDI file with camel

2011-03-26 Thread Claus Ibsen
Hi If you refer to the old smooks component from camel-extra then that's @deprecated. Smooks framework now provides Camel integration out of the box, so use their stuff for that. On Fri, Mar 25, 2011 at 6:19 PM, Claus Straube wrote: > Hi all. > > I've posted this on the smooks list, but there

Re: Advice on Error Handling

2011-03-26 Thread Claus Ibsen
Hi Check out the camel documentation http://camel.apache.org/error-handling-in-camel.html http://camel.apache.org/exception-clause.html And read the links those pages refer to. But I suggest to pickup the Camel book and read chapter 5 as its covers error handling and all its features throughly.

Re: Add a Processor to a route at runtime

2011-03-26 Thread Claus Ibsen
Just use java code to build a custom Predicate that computes this, and use it with the onWhen on the interceptor. On Wed, Mar 23, 2011 at 9:56 AM, JacobS wrote: > Looks like interceptFrom could be the right way to go. > How can I add a predicate to the interceptFrom that will intercept according

Re: What's the policy on forwarding headers in camel components ?

2011-03-26 Thread Claus Ibsen
See this FAQ http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html On Wed, Mar 23, 2011 at 8:50 AM, Willem Jiang wrote: > Yes, in most component which supports the InOut message exchange patten, we > just copy the in message headers to out message headers. > > > On 3/23/11 3:44

Re: Documentation for automatic marshalling and unmarshalling

2011-03-26 Thread Claus Ibsen
Hi Its the type converter that can kick in and can convert JAXB objects if you have camel-jaxb on the classpath http://camel.apache.org/type-converter.html On Tue, Mar 22, 2011 at 12:57 PM, Leonard Axelsson wrote: > Hi, > > At my current gig we have a route roughly like the one below where we