Re: Camel 2.14.0 Matrix Params are missing

2014-11-28 Thread Kumaran
Hi Willem, Created the JIRA for the issue and attached the source in it please validate. I am not sure about creating diff patch, could you help on that same CAMEL-8092: cxf:producer Matrix Params are missing Thanks Kumaran Willem.Jiang w

Referencing an exchange property from xpath predicate in spring dsl

2014-11-28 Thread clinton
I am trying to use xpath in a "loop" stmt, such that the "CamelLoopIndex" (+1) can be used as a predicate to select a repeating segment from the msg body. I haven't been able to get anything to work. Getting error: Caused by: javax.xml.xpath.XPathExpressionException: net.sf.saxon.trans.XPathExcep

Mail - copyTo not working and MailBoxPostProcessAction not found

2014-11-28 Thread A-Light
Hi all, I'm using a route that gets new messages from an imap consumer. Something like this: The emails get processed and being sent to the queue, passing from unread to read (UNSEEN to SEEN) but what I would like to do is moving the processed email into a "processed" folder on the mailb

Re: CxfRs producer: connection not closed

2014-11-28 Thread Sergey Beryozkin
Hi FYI, no auto-close is done when non-Response types are returned. It was done at some point of time but a lot of side-effects happened as a result, typically with types like Document/etc which may be doing the lazy Input stream reads, etc. The auto-close can be optionally enabled if the use

AWS-SQS - Policy issues - Defining the deadLetterTargetArn in the same way as the SqsEndpoint

2014-11-28 Thread Rufus.Nash
Hi I'm having an issue with deadLetterTargetArn in the AWS-SQS Policy of a Camel SqsEndPoint when I don't necessarily know my region or QueueOwnerAWSAccountId. I was hoping that there was a way to define the arn in the Policy in the same way as the SqsEndpoint is defines SQS queues. For the sake

Re: Starting a rout once on start and then always at 3am

2014-11-28 Thread Marco Westermann
you can split your original route into three ones like that: from("direct:process") .to(jdbc) .whatever; from("timer:myTimer? repeatCount=1") .to("direct:process"); from("quarz:cron") .to("direct:process"); that way the direct:process route gets triggerd by the timer and the q

Re: Starting a rout once on start and then always at 3am

2014-11-28 Thread dermoritz
you mean i should create 2 routes: from(timer:repeateOnce).to(jdbc) and from(timer:cronExpr).to(jdbc) ? thats not very beautiful but a good option. What about (came to mind in meanwhile): from(timer:cronExpr).to(direct:startNow).to(jdbc:) does this work? -- View this message in context:

Re: Starting a rout once on start and then always at 3am

2014-11-28 Thread Marco Westermann
Hi, you can use a second route with a timer and set the timer property repeatCount to 1, so the timer will only fire once when the route is started. Have a look here: http://camel.apache.org/timer.html regards Marco Am 28.11.2014 13:54, schrieb dermoritz: I have a route using jdbc component

Starting a rout once on start and then always at 3am

2014-11-28 Thread dermoritz
I have a route using jdbc component to fetch some data from db. so my idea is: from("quartz:").to(jdbc:...) My problem is that "fireNow" seems only to work for simple timer. Is there an easy way to fire the route once at start (after first run this route triggers start of other routes.)? --

Re: NPE with language:ruby and concurrentConsumers

2014-11-28 Thread Claus Ibsen
So ideally camel-ruby should set that JVM system property if not already set? so you get the thread safe out of the box? On Fri, Nov 28, 2014 at 11:04 AM, Christoph Spenler wrote: > I used JRuby 1.7.13 which comes with camel-ruby 2.14.0. > When I override the version with 1.7.16 it works. > > You

Re: NPE with language:ruby and concurrentConsumers

2014-11-28 Thread Christoph Spenler
I used JRuby 1.7.13 which comes with camel-ruby 2.14.0. When I override the version with 1.7.16 it works. You have to set the "org.jruby.embed.localcontext.scope" system property to "threadsafe", otherwise it is not guaranteed that the different bodies are processed by the ruby script. In many cas

Re: CxfRs producer: connection not closed

2014-11-28 Thread Thibaut Robert
I read the code more carefully, and you're right, in the case the responseClass is provided (response is not an inputstream), it should be the responsibility of cxf to close the stream. I wrongly assumed that you use jarxrs client api where you should call close() after readEntity() Thanks for you

Re: How to stop a route from processing get requests continously

2014-11-28 Thread Claus Ibsen
Hi See http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html On Fri, Nov 28, 2014 at 10:35 AM, daninovac wrote: > I'm coming with another question. > How can I append the id values from my .txt file into an url. > I need to make GET req to this url: http://example.com/345 > How can I add i

How to have seperate url for wsdl and soap address in apache camel proxy?

2014-11-28 Thread Royamit
I am trying to create a proxy service using apache camel through camel configuration file. I have successfully created the proxy service for version webservice of axis 2. The only problem is that , the proxy service final wsdl url and the address both point to the same url. Here is my camel-conf

Exception: A Java Database Connectivity (JDBC) driver or data source class name must be specified in the openjpa.ConnectionDriverName or javax.persistence.jdbc.driver property.

2014-11-28 Thread Manoranjitham G
Hi All, I am doing a POC in apache camel to pick data from a file and save it in database consumer- file producer - jpa - when executing the program am getting the below exception *"org.apache.openjpa.persistence.ArgumentException: The persistence provider is attempting to use properties in the

Re: How to stop a route from processing get requests continously

2014-11-28 Thread daninovac
I'm coming with another question. How can I append the id values from my .txt file into an url. I need to make GET req to this url: http://example.com/345 How can I add insted of 345 ids from my .txt file like: http://example.com/firstId http://example.com/secondId etc? -- View this message in

Lately (2.14) NullPointerExceptions instead of TypeConversionExceptions

2014-11-28 Thread dermoritz
Some day ago i switched to camel 2.14 (mainly because of RoutePolicyFactory - a great idea!). But i also noticed on creating new routes with new processors/ aggregators i see many NullPointerExceptions in lines that use object from exchange.getIn().getBody(Some.class). In those cases the body was n

Re: Error when using xquery

2014-11-28 Thread Ângelo Costa
Never mind, solved it already! Ângelo Costa On Fri, Nov 28, 2014 at 9:19 AM, Ângelo Costa wrote: > Hi Willem, > My camel looks like bellow. > The transformation i'm doing is an expression with soap request with > simple language. > > [image: Inline image 1][image: Inline image 2] > > > Ângelo

HTTP responses time out

2014-11-28 Thread Gustav Sinder
Hi, We've got an issue with some responses never being returned back to the HTTP client, making it time out. It seems to depend on the length of the response returned from transformCanonicalToResponse(). A payload of ~1 characters is returned ok but ~3 characters are never returned. It'

AW: Camel

2014-11-28 Thread jhm
If you want to load an _instance_ of that schema and not the schema itself, this could also help http://camel.apache.org/jaxb.html Jan > -Ursprüngliche Nachricht- > Von: Charles Moulliard [mailto:ch0...@gmail.com] > Gesendet: Freitag, 28. November 2014 09:41 > An: users@camel.apache.org

RE: Somewhat inconsistent behaviour for message logging

2014-11-28 Thread Siano, Stephan
Hi, I have created https://issues.apache.org/jira/browse/CAMEL-8091 for this issue and attached a patch. Best regards Stephan -Original Message- From: Siano, Stephan [mailto:stephan.si...@sap.com] Sent: Freitag, 28. November 2014 09:59 To: users@camel.apache.org Subject: RE: Somewhat i

Re: Error when using xquery

2014-11-28 Thread Ângelo Costa
Hi Willem, My camel looks like bellow. The transformation i'm doing is an expression with soap request with simple language. [image: Inline image 1][image: Inline image 2] Ângelo Costa On Fri, Nov 28, 2014 at 5:15 AM, Willem Jiang wrote: > What’s your camel look like? > You don’t need to use

RE: Somewhat inconsistent behaviour for message logging

2014-11-28 Thread Siano, Stephan
Hi Willem, I have mostly implemented this, however while writing a unit test I am wondering about the mixed case (both, the parameter and the context property are set). Let me state this in an example. For my test the formatted exchange looks like this: Exchange[ExchangePattern: InOnly, BodyTyp

Re: Camel

2014-11-28 Thread Charles Moulliard
Hi, Here is the camel component that you should use to poll a directory containing files : http://camel.apache.org/file2.html As you are most probably a Camel beginner, please read the starting guide http://camel.apache.org/getting-started.html & how to design a camel route using DSL : http://came

Re: Sending a Request to camel rout from rx java observable

2014-11-28 Thread Litom
Thanks a lot for your reply. What if I want to call a direct endpoint, which eventually goes to an async producer? Should I call the direct producer directly? Is there an example for that, in the documentations/book? -- View this message in context: http://camel.465427.n5.nabble.com/Sending-a-R