Re: reading http endpoint from properties files

2012-02-01 Thread Claus Ibsen
On Wed, Feb 1, 2012 at 8:34 PM, anand sridhar wrote: > The Property Place holder did the trick for me. > However, I was hoping if I could extend it to read properties from the > camel exchange . > Any pointers to examples would be welcome. > If you want a dynamic to in Camel. Then take a look at

Re: Web service with more than one input in spring DSL.

2012-02-01 Thread Willem Jiang
On Wed Feb 1 23:10:19 2012, Omar Atia wrote: The issue that I know how to invoke WS operation with one input param using spring DSL , adding header operation name and invoke it using only spring DSL and cxf pojo so the class pojo object will be passed through camel exchange to WS CXF call , w

Re: GPG encryption in camel 2.8.3

2012-02-01 Thread Willem.Jiang
Hi, I think you made a mistake of the route configure code and the processor code. The Java DSL which you used to define the route is just a configuration code, it tell camel to build the route as you want, they are not the processing code which camel uses in the runtime. If you want to camel con

GPG encryption in camel 2.8.3

2012-02-01 Thread sammohamed
Hi, We currently have a system using camel 2.8.3 in production and i am hesitant to upgrade us to 2.9 simply so I can have GPG encryption for one route. My situation is as follows: 1) I generate a fixed width file from a repository bean using flat-pack 2) I want to encrypt the file that's genera

RE: Passing parameter values to bean methods via spring

2012-02-01 Thread Gershaw, Geoffrey
Thanks Claus, I was trying to keep out the Camel annotations. I wanted to have all the config/routes in Spring. My example route is: > > > "ftp://rider.com/orders?username=rider&password=secret"; > >${bean:xmlFilter?method=match} >

Re: reading http endpoint from properties files

2012-02-01 Thread anand sridhar
The Property Place holder did the trick for me. However, I was hoping if I could extend it to read properties from the camel exchange . Any pointers to examples would be welcome. Thanks, Anand On Thu, Jan 26, 2012 at 12:24 AM, Claus Ibsen wrote: > Hi > > See this FAQ > http://camel.apache.org/h

Re: Custom Jackson ObjectMapper

2012-02-01 Thread Tim
I'm running into a similar situation when trying to enable Jackson SmileFactory. This requires you to create an ObjectMapper with a SmileFactory as the argument to it's constructor. The way to do this seems to me kind of convoluted. It would be more clean if there was a way to register a dataformat

Re: Web service with more than one input in spring DSL.

2012-02-01 Thread Omar Atia
The issue that I know how to invoke WS operation with one input param using spring DSL , adding header operation name and invoke it using only spring DSL and cxf pojo so the class pojo object will be passed through camel exchange to WS CXF call , what about if this operation has more than one in

Re: Accessing a Map header via Simple?

2012-02-01 Thread dunnlow
The answer for anyone else wondering: it turns out that the method above is correct. To access a Map contained in the header, you can use ${in.header.?[]} No quotes around the mapkey. Also, the .? seems to work too. nice. -- View this message in context: http://camel.465427.n5.nabble.com/Acce

Re: Passing parameter values to bean methods via spring

2012-02-01 Thread Claus Ibsen
Hi You can use the Camel @Xpath annotation on a 2nd parameter in that method signature  public boolean match(String username, @XPath("/Example/User") String user) { You may have to fiddle a bit to get the xpath expression working. Also sometimes you may have to use /text() to tell it to return t

Re: Web service with more than one input in spring DSL.

2012-02-01 Thread Willem Jiang
Hi, I don't quite understand what you want to do. If you have a little experience of JAXWS, you can know the wsdl2java tool already generate the artifacts that you need to invoke the Service. Camel has lots of component to help use interact with the Web Services, camel-cxf[1], camel-spring-w

RE: Passing parameter values to bean methods via spring

2012-02-01 Thread Gershaw, Geoffrey
Thanks for the reply. Could you give me an example for 1c? I mocked up an example. Assume the below XML comes from the ftp site. The XMLFilter's match method accepts the username. How can I use XPath to pass the user to the match method? joe Class XMLFilter{ p

Web service with more than one input in spring DSL.

2012-02-01 Thread Omar Atia
Dears, I have Web service , that has operation which has many input as parameter to that operation , after generating the Java proxy using wsdl2java , it seems that there is more than input/java source to the Web service . Can we manage to use JaxB and do the configuration for the Web service C

Re: How to stop the Polling Consumer?

2012-02-01 Thread alexey-s
Hi, thanks for confirmation. File Consumer is the successor of Pool Consumer and Batch Consumer. When you create a File Consumer, uses a pool of 10 threads. The first thread scans and finds the N files. Consumer runs in a loop processing of these files. This is how the Batch Consumer. After the t

Re: Using SEDA without losing messages

2012-02-01 Thread Claus Ibsen
On Mon, Jan 30, 2012 at 1:00 PM, Sabin Timalsena wrote: > Hi, thanks a lot! That definitely was very helpful. > > However, if I use the concurrentConsumers option, I guess it means that I'll > have separate JMS consumers with their own separate prefetch buffers. > Would it be possible to control t

Re: Custom Jackson ObjectMapper

2012-02-01 Thread Claus Ibsen
Hi If Jackson has a number of good configurations options and whatnot, then we should consider having a data format, where you can configure that. What other kind of options can you configure, that you would need? In Camel 3.0 we are talking about allowing the data formats to be configured usi

Re: Passing parameter values to bean methods via spring

2012-02-01 Thread Claus Ibsen
Hi On Tue, Jan 31, 2012 at 5:10 PM, Gershaw, Geoffrey wrote: > Hello, > > > > I am a newbie to Camel. I've read a bunch of docs, but have not found an > answer to this specific use case. > Welcome to the community. > > > 1.       Assume the following. > > a.       I have the belown XML msg in t

Re: Camel-Web-Console in Non-Web Camel-Application with Maven

2012-02-01 Thread Claus Ibsen
On Tue, Jan 31, 2012 at 3:19 PM, Creedinger wrote: > Hi. > I have problems understanding the use of the web-console. Is it made for > Camel-Web-Applications only or is it possible to monitor an regular java-app > which includes some camel stuff? > Its for web-apps only. And it can only monitor th

Re: Accessing a Map header via Simple?

2012-02-01 Thread Claus Ibsen
On Tue, Jan 31, 2012 at 6:12 PM, dunnlow wrote: > Hi.  I have a Map in my header and I am trying to access it > via Simple in my spring dsl. > > I see an example using body in the documentation and am extrapolating that > for my header purposes.  However, I'm getting a NullPointerException, so I >