Re: How to track file modifications

2015-04-23 Thread Claus Ibsen
Hi You can use the stream component, which can monitor a file for changes (like a tail command). http://camel.apache.org/stream Other than that its not out of the box from Camel and you would need to build your own component / java code to do so. On Thu, Apr 23, 2015 at 6:15 PM, Akram wrote: >

Re: URISyntaxException: Invalid uri syntax: Trailing & marker found

2015-04-23 Thread Claus Ibsen
Hi Yeah I guess we can allow http related components to ignore trailing & markers. You are welcome to log a JIRA ticket about this improvement. On Fri, Apr 24, 2015 at 12:24 AM, hzariv wrote: > I am using camel netty4-http and getting the following exception because the > query string my serve

Re: streaming big xml file witht tokenizer

2015-04-23 Thread Claus Ibsen
Hi Yeah see some of the splitting big files blog posts from http://camel.apache.org/articles And also about big xml files here http://camel.apache.org/splitter On Fri, Apr 24, 2015 at 12:12 AM, majid wrote: > Hi all, > > I need to parse and handle records of a big XML file, this file need to be

URISyntaxException: Invalid uri syntax: Trailing & marker found

2015-04-23 Thread hzariv
I am using camel netty4-http and getting the following exception because the query string my server is receiving ends with '&'. Since I cannot control the URLs my server receives, I need to get around this issue. As far as I know most sites simply ignore the trailing & at the end of query string.

How to convert flat file to xml using camel ?

2015-04-23 Thread nehachauhan1029
i have a requirement in my project to convert flat file to xml . How can i achieve this using camel ? -- View this message in context: http://camel.465427.n5.nabble.com/How-to-convert-flat-file-to-xml-using-camel-tp5766241.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Manipulating JSON from inputStream

2015-04-23 Thread Mark Frazier
Use the Message Translator EIP http://camel.apache.org/message-translator.html Inside that,you can use GSON and do one of two: 1) use the GSON api to directly manipulate JsonObject instances after you unmarshall 2) unmarshall into an object m

streaming big xml file witht tokenizer

2015-04-23 Thread majid
Hi all, I need to parse and handle records of a big XML file, this file need to be downloaded from some location which may take up to 10 min, so I am wondering if I can start streaming and get my records as I am downloading the file to optimise the overall processing time ? For example, start the

cxfrs proxy-base rsClient with multiple resource interfaces

2015-04-23 Thread njames
Hi, I hope that I have done sufficient googling for this not to be an FAQ, but I have a question about configuring a cxf:rsClient with a list of "serviceClass"es. We tend to have a number of related REST resource interfaces implemented within a single service (aka Tomcat servlet context). I have ha

JPA Component router with read-only transaction

2015-04-23 Thread Rafael Ponte
Hi guys, We're using Camel 2.14.0 with Spring 3.2.11 in our project! Is it possible to use a JPA Component router just to read entities from database? We don't need to change or delete the entities loaded through the router, we already have a specific logic responsible to do that inside our Sprin

Manipulating JSON from inputStream

2015-04-23 Thread erd
Hello, I am building a camel route and I am looking to manipulate an inputStream formatted as JSON into a different "hierarchy". The endgame is to turn the service's response {"foo": {"bar":{"type": "motor","status":"spinning"}}, {"baz":{"type": "calculator","status":"crunching"}} }

How to track file modifications

2015-04-23 Thread Akram
I needed to track the changes to a file. I thought it would be look like this: from("file://mydirectory?noop=true&fileName=myfile.json&idempotentKey={file:modified}-{file:size}") If the file(myfile.json) changes then I should get an Exchange. But this is not working. It is treating the file as n

Re: Strange side effects when testing with expectedHeaderValuesReceivedInAnyOrder

2015-04-23 Thread Preben.Asmussen
Thanks Claus Makes much more sense now, when you know the overrides. For completeness sake I just move the header test like -> public void testSomething() throws Exception { String xmlFile = FileUtils.readFileToString(new File("src/test/data/good.xml")); M

Re: camel jdbc component detect end of streamlist

2015-04-23 Thread dermoritz
Thanks for fast reply Claus, no no parallel processing is enabled. the complete route is this: from(cronTriggerEndpoint) .setBody(simple(selectQuery(tableName))) .to(dataBase).id("dbEndpoint"+isOnceAtStart).split().body()

Re: Strange side effects when testing with expectedHeaderValuesReceivedInAnyOrder

2015-04-23 Thread Claus Ibsen
Hi I have updated the javadoc of the mock endpoint to better explain this. On Thu, Apr 23, 2015 at 1:59 PM, Preben.Asmussen wrote: > ahh - so expectedMessageCount and expectedHeaderValuesReceivedInAnyOrder > exclude each other. Thats a bit unexpected. I would have guessed that all > expectation

Re: camel jdbc component detect end of streamlist

2015-04-23 Thread Claus Ibsen
Hi Into multiple threads is that because you enabled parallel processing on the splitter? By default it ought to be single threaded even in streaming mode. On Thu, Apr 23, 2015 at 3:43 PM, dermoritz wrote: > I am using camels jdbc component to load big tables into another system. > Because i ne

Re: Comparison of Apache Camel and IBM Integration Bus v9.0

2015-04-23 Thread jamie3
Sure thing. Once there is enough content we can make arrangements to put it on the camel site. It will take a few months of posts. So far I'm up to about 7000+ words. So I need to spend some time organizing things and figuring out how to make it readable, and not boring. I'll be heading to Hursle

camel jdbc component detect end of streamlist

2015-04-23 Thread dermoritz
I am using camels jdbc component to load big tables into another system. Because i need to start other routes after loading table is finished i need to detect when all table entries are passed. Because the size of the table i am using this setup () .to("jdbc:testdb?outputType=StreamList")

Re: RecipientList thread pool problem

2015-04-23 Thread Claus Ibsen
Hi Have you configured netty to use request timeout? http://camel.apache.org/netty.html You should favor using that for timeout, and not as much the timeout on the recipient list. Or make sure those values are so netty timeout first. On Mon, Apr 20, 2015 at 3:19 PM, Alexander Ilyin wrote: > H

RE: Bindy running within a WAR

2015-04-23 Thread Bonnet Benjamin
Hi, If you use it inside jBoss/wildfly, you should use jboss package scan class resolver. See camel-extra (https://code.google.com/a/apache-extras.org/p/camel-extra/). Regards -Message d'origine- De : RaviP [mailto:ravikumar-penume...@hotmail.com] Envoyé : lundi 13 avril 2015 19:35 À :

Re: Strange cxf behavior with https

2015-04-23 Thread Willem Jiang
camel-cxf is using the async invocation by default, which means the response could be send back by another thread. I’m not sure if it could cause some side effect on the SSL engine which could leverage the thread local to store some SSL session states. -- Willem Jiang Red Hat, Inc. Web: http

Re: Closed (removed) StreamCache when doing a Wiretap

2015-04-23 Thread Geert Vanheusden
Ticket created: https://issues.apache.org/jira/browse/CAMEL-8688 Regards, Geert On Thu, Apr 23, 2015 at 1:25 PM, Claus Ibsen wrote: > On Wed, Apr 22, 2015 at 10:17 AM, Franz Paul Forsthofer > wrote: > > Hello Claus and Henryk, > > > > my original proposal to copy the stream cache file is not

Re: Strange side effects when testing with expectedHeaderValuesReceivedInAnyOrder

2015-04-23 Thread Preben.Asmussen
ahh - so expectedMessageCount and expectedHeaderValuesReceivedInAnyOrder exclude each other. Thats a bit unexpected. I would have guessed that all expectations set up in a test would have been evaluated. Best, Preben -- View this message in context: http://camel.465427.n5.nabble.com/Strange-

Re: Strange side effects when testing with expectedHeaderValuesReceivedInAnyOrder

2015-04-23 Thread Claus Ibsen
On Thu, Apr 23, 2015 at 1:24 PM, Preben.Asmussen wrote: > Hi > > I'm experiencing some side effects when using > expectedHeaderValuesReceivedInAnyOrder in a testcase. > > The following test will result in a ArrayOutOfBoundsException : > > public void testResultingInArrayOutOfBoundsException() thro

Re: Closed (removed) StreamCache when doing a Wiretap

2015-04-23 Thread Claus Ibsen
On Wed, Apr 22, 2015 at 10:17 AM, Franz Paul Forsthofer wrote: > Hello Claus and Henryk, > > my original proposal to copy the stream cache file is not the optimal > solution. A better solution would be to have only one stream cache > file and to delete this file only when all exchanges which need

Strange side effects when testing with expectedHeaderValuesReceivedInAnyOrder

2015-04-23 Thread Preben.Asmussen
Hi I'm experiencing some side effects when using expectedHeaderValuesReceivedInAnyOrder in a testcase. The following test will result in a ArrayOutOfBoundsException : public void testResultingInArrayOutOfBoundsException() throws Exception { String xmlFile = FileUtils.readFileToSt

Re: HTTP OPTIONS

2015-04-23 Thread Ted
I should have mentioned that I am using the Servlet component and Camel 2.15.1. As a quick hack I added the following code to the end of the method ServletRestServletResolveConsumerStrategy.resolve(HttpServletRequest request, Map consumers) if (answer == null && method.equals("O

Strange cxf behavior with https

2015-04-23 Thread Bilgin Ibryam
Hi all, I have a Camel cxf proxy route in the following form that is working fine with http: from cxf transform to cxf But when I switch to https (both on the produce and consumer) my route is not returning the result to the client. I can see in the logs that the service is working fine, the cxf

Re: [DISCUSS] Looks like someone feels threatened... (TIBCO vs Open Source ESBs)

2015-04-23 Thread Raul Kripalani
Exactly. And what many fail to see is that closed source is – in many cases – leveraging OSS under the hood. Sometimes the vendor will be nice and make it evident (e.g. IBM WebSphere being quite transparent in their docs about using Apache Aries, they also contribute, etc.). But in other cases, th

Re: HTTP OPTIONS

2015-04-23 Thread Henryk Konsek
Hi, I've fixed some OPTIONS/CORS related issues in Netty HTTP component. After these [1] two [2] changes (scheduled for 2.16 and 2.15.2) you can finally call Netty HTTP based REST DSL routes from AngularJS without running into the OPTIONS problems. If you wait for Camel 2.15.2 and use Netty HTTP

Re: HTTP OPTIONS

2015-04-23 Thread Claus Ibsen
Hi What http component do you use? servlet / jetty / or something else? And what version of Camel. There is a few tickets about rest-dsl and CORS issues still to get fixed / improved. On Thu, Apr 23, 2015 at 10:18 AM, Ted wrote: > Hi, > > I have a simple REST DSL route that has both a GET and a

HTTP OPTIONS

2015-04-23 Thread Ted
Hi, I have a simple REST DSL route that has both a GET and a PUT for a particular resource: rest("/orders") .get("/{orderId}").outType(Order.class) .to("direct:getOrder") .put("/{orderId}").type(Order.class) .

Re-use from-endpoint and kickoff route in Java dsl

2015-04-23 Thread rwijngaa
Hi, We have some routes that read from file/ftp endpoints and send to file/ftp endpoints (your basic 'filemover'). The endpoints are specified in beans so we can re-use this in other routes. I re-use these from endpoints (but now with a delete=true option and some sort of FileAge filter) in anoth