Re: Polling for file copying using dynamic filenames

2015-08-13 Thread Mashrur
I got my own answer: .bean(FileNameRetriever.class) .split(body()) .pollEnrich("file://"+ getFolderLocation() + "/?fileName=${body.getFileName}&noop=true") .to("file:///path/directory/?fileName=${body.getFileName}"); But, I wonder, whether anybody even checked my

Re: org.apache.camel.FailedToCreateRouteException: Failed to create route with SNMP component

2015-08-13 Thread jspyeatt
That did the trick. Thanks loads. -- View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-FailedToCreateRouteException-Failed-to-create-route-with-SNMP-component-tp5768341p5770704.html Sent from the Camel - Users mailing list archive at Nabble.com.

Polling for file copying using dynamic filenames

2015-08-13 Thread Mashrur
I have separate encapsulated logic and information in db to decide the filenames to be copied. And, also I need this to start at a certain time triggered by a scheduler, and start polling. So, far I have achieved only first part of this, using the code below: I have this: from("direct:start")

Re: Define an array in simple

2015-08-13 Thread ablevine1
Thanks again. That made the code a bit cleaner. It took a minute to figure out the exact syntax but that makes the code now: ${body.mypropertytovalidate} in 'STRING1,STRING2,STRING3' -- View this message in context: http://camel.465427.n5.nabble.com/Define-an-array-in-simple-tp5770637p5770701

Re: Define an array in simple

2015-08-13 Thread Claus Ibsen
Hi I think there is an IN function in simple also that ought to support this check too Den torsdag den 13. august 2015 skrev ablevine1 : > Thanks for getting back to me about this. Too bad that array creation is > not > supported. What I was trying to do with my bean method was to provide > v

Re: Define an array in simple

2015-08-13 Thread ablevine1
Thanks for getting back to me about this. Too bad that array creation is not supported. What I was trying to do with my bean method was to provide validation to check whether or not one of the properties of my object was equal to one of the values in the array. I just found an alternate solutio

RE: bean invocation is deprecated in 2.15

2015-08-13 Thread Goodwin, Matthew
Instead of bean using method: method(smlSkipMessageHandler, "skipHandler(${body},${headers})") -Original Message- From: suneshkumar [mailto:suneshku...@gmail.com] Sent: Thursday, August 13, 2015 6:06 AM To: users@camel.apache.org Subject: bean invocation is deprecated in 2.15 Hi Guys I

Re: http4 return HTTP ERROR 500, but http not

2015-08-13 Thread Sergey Beryozkin
Hi Did you make it work ? What can be different between using HTTP and HTTP4 components as far the interaction with the CXF endpoint is concerned ? Cheers, Sergey Perhaps HTTP4 component On 30/07/15 19:16, Tao Yang wrote: hey: We want to use http4 instead of http. No other change, then I got

Re: Is there any way to limit the size of the FTP listing each poll of FTPConsumer?

2015-08-13 Thread Claudio R
Hi Pontus, Thank you very much for your reply.Yesterday I found this parameter after post the question. Em Quinta-feira, 13 de Agosto de 2015 5:36, Pontus Ullgren escreveu: Hi, Since the FTP component inherits the options from the File component you can use the maxMessagesPerPoll

Re: Camel quartz memory leak

2015-08-13 Thread Greg Autric
Hi Akram, feel free to rise a JIRA ticket (https://issues.apache.org/jira/browse/CAMEL) And create an PR to github (https://github.com/apache/camel) Camel commiters will analyse it, and accept it if it is confirmed issue. thx for your help, Greg AUTRIC JBoss Middleware C

Re: Getting query parameters from jetty and put then in restlet endpoint

2015-08-13 Thread Greg Autric
Sorry it is parenthesis from("jetty:http://localhost:8081/myapp/myservice?param1={param1}¶m2={param2}";) .to("restlet:http://localhost:20010/services/getInfos?param1=(param1)¶m2=(param2)&restletMethod=get"); Greg AUTRIC JBoss Middleware Consultant email : gautric __a

Re: camel exchange body with html, css and javascript

2015-08-13 Thread Greg Autric
Hi Akram, could you please send us your full camel route code (please simplify it) ? FYI, if the content (HTML) changed from camel route to your browser (check HTML source code downloaded CTRL+U for firefox), it could be an issue. else where are css or js file into camel too ? you should create

bean invocation is deprecated in 2.15

2015-08-13 Thread suneshkumar
Hi Guys I am trying to use the following routing, but unfortunately the bean invocation is now deprecated in when, can anyone help me how I can achieve the below without using the deprecated methods? from(utpStpResponseQueue) .choice .when(bean(smlSkipMessageHandler, "skipHandler(

Re: redirecting with jetty component

2015-08-13 Thread dfgcamel
Thanks: That worked perfectly!! Dennis... -- View this message in context: http://camel.465427.n5.nabble.com/redirecting-with-jetty-component-tp5770397p5770636.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Inconsistent return from XpathBuilder.evaluate()

2015-08-13 Thread Claus Ibsen
Hi Thanks for reporting. It seems like a little bug https://issues.apache.org/jira/browse/CAMEL-9079 On Tue, Aug 11, 2015 at 2:49 PM, Djeeaie . wrote: > Hello, > > while trying to parse xml outside a camel route using xpath (as > described here : > http://camel.apache.org/xpath.html#XPath-UsingX

Re: Getting query parameters from jetty and put then in restlet endpoint

2015-08-13 Thread Greg Autric
Hi Arnaud, Please take a look here https://github.com/apache/camel/blob/master/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletProducer.java#L147 this camel route should work correctly/directly : from("jetty:http://localhost:8081/myapp/myservice?param1={param1}¶

Re: Is there any way to limit the size of the FTP listing each poll of FTPConsumer?

2015-08-13 Thread Claus Ibsen
See the maxMessagesPerPoll option On Wed, Aug 12, 2015 at 10:29 PM, Claudio R wrote: > Hi, > I'm using the FTPConsumer. In FTP, each xml file has the name > nMMddHHmm.xml, where is the year, MM is the month, dd is the day, HH > is the hour and mm is the minute.The processing of the fil

Re: Apache Camel CXF Transport - Adding interceptors to JaxWs Client

2015-08-13 Thread Daniel Kulp
Ah.. I see the problem. You are within an element (the client element) that has the default namespace reset to xmlns="http://cxf.apache.org/jaxws”. Thus the “ref” element is in that namespace, not the spring namespace.Either use a prefix for the cxf elements or put an xmlns decl on the r

Re: Camel quartz memory leak

2015-08-13 Thread Akram
I have resolved the issue.. It is an issue with quartz component. Quartz was being shutdown but the webapp didn't wait for quartz to finish before it shutdown so Tomcat decided that it had left threads running and complained. So, i override the shutdown method in quartzcomponent as follows and it w

Re: Apache Camel CXF Transport - Adding interceptors to JaxWs Client

2015-08-13 Thread Resmis
Hi Dan, Thanks for the response. also not working. It is giving following exception: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionParser for element [bean] I was referring to http://camel.apache.org/cxf.html, in

Re: Define an array in simple

2015-08-13 Thread Claus Ibsen
Hi Arrays is not supported with [] etc. On Thu, Aug 13, 2015 at 12:40 AM, ablevine1 wrote: > I have found lots of documentation on how to manipulate an array in simple > but none on how to create one. Is this possible? I have a bean with method > whose first parameter is an object second pa

Re: org.apache.camel.FailedToCreateRouteException: Failed to create route with SNMP component

2015-08-13 Thread Claus Ibsen
Hi If you build your own big/uber JAR see this FAQ http://camel.apache.org/how-do-i-use-a-big-uber-jar.html On Wed, Aug 12, 2015 at 5:06 PM, jspyeatt wrote: > It's actually weirder than first appeared. > I do have camel-snmp included in the pom.xml file. I should have mentioned > that in my orig

Camel Email Component - Bounce email address

2015-08-13 Thread sankar1v
Hi,I would like to use different email address for From & Bounces. How to pass the argument/property to denote bounce email address while sending email out with camel Email component.For example:from: noreply@X.combounce email:bounce@X.comto:sankar...@gmail.comi am using camel 1.10 version.