Re: Using camel without spring

2014-12-08 Thread Claus Ibsen
On Sun, Dec 7, 2014 at 7:26 PM, yogu13 wrote: > Hi, > > I am checking out on the possibility of using camel without spring... I was > looking at the examples available on this regard and could only find > http://camel.apache.org/servlet-tomcat-no-spring-example.html. The example > shown is quite s

Re: ftp-component: RemoteFile to a classic File

2014-12-08 Thread Claus Ibsen
On Sun, Dec 7, 2014 at 8:40 PM, Nicolas74 wrote: > Thanks. > That's what I did, and it perflectly works. > > I have to process some modifications to the file through a java application. > So, is it the only way to process my file ? Or is there a more optimized > solution without downloading the fi

Re: ftp-component: RemoteFile to a classic File

2014-12-08 Thread François LIOT
Hi, I do confirm the Claus's remark, There is no instruction in FTP to modify remotely file. For sure, on some FTP servers, you can configure some nasty and uncommon options, and successfully instruct this, But it's clearly not in regular FTP's RFC norms. Regards.

Re: Using camel without spring

2014-12-08 Thread yogu13
Thanks Claus for the detailed response... Williem the solution worked and the processor seems to be working now.. I seem to have hit another roadblock .. will open a new thread for it.. Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Using-camel-without-sp

placeholder support in the camel-http4 component..

2014-12-08 Thread yogu13
Hi, I wanted to know if placeholders are supported as part of the URI in the camel-http4 component.. i seen some responses where developers have been suggested to replace the URI as part of the header in exchange object but havent come across anyone using placeholders instead. The tag my camel-co

Re: placeholder support in the camel-http4 component..

2014-12-08 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html On Mon, Dec 8, 2014 at 11:01 AM, yogu13 wrote: > Hi, > > I wanted to know if placeholders are supported as part of the URI in the > camel-http4 component.. i seen some responses where developers have been > suggested to

Re: Camel distributed transactions/XA without full J2EE container?

2014-12-08 Thread Daniel Pocock
On 05/12/14 13:56, Jakub Korab wrote: > I can't speak for the Camel In Action guys, but we picked Atomikos > fundamentally because the license for TransactionEssentials is Apache > 2.0, all of the JARs are available in Maven global and the documentation > is outstanding. The guys were also really h

Re: ftp-component: RemoteFile to a classic File

2014-12-08 Thread Nicolas74
Ok. Thanks for your help guys. Best, Nicolas. -- View this message in context: http://camel.465427.n5.nabble.com/ftp-component-RemoteFile-to-a-classic-File-tp5760227p5760284.html Sent from the Camel - Users mailing list archive at Nabble.com.

HttpProducer endpoint with "unlimited/limited" redelivery - memory leak

2014-12-08 Thread Radek Kraus
Hello, I have a suspicion on (or better I faced to) memory leak in the following situation. I use HttpProducer endpoint with "unlimited" redelivery (configuration problem), but the problem is present for "limited" redelivery too. Here is simplified route, which I used for problem simulation (finall

Can we load log files into some database using Camel?

2014-12-08 Thread prasad
Hi, I just started using camel for ETL Operations.I have loaded the data from database to a file and to another database too.But now i want to transform and load the continuous web server log files into database ,Can we do this with camel? -- View this message in context: http://came

kafka inout issue

2014-12-08 Thread tapdur
Hi the community, i have a route wich work well based on activeMQ from http .. to direct:provider to activemq:consumer and a consumer wich is listen on from activemq:consumer and reply a consumer msg. i then migrate to Kafka. The consumer receive the topic message, tranform it but the provider ne

Re: Can we load log files into some database using Camel?

2014-12-08 Thread akoufoudakis
Hello, Prasad! So, you want to take a file from a directory and to put its contents to the database. Did I get you correctly? -- View this message in context: http://camel.465427.n5.nabble.com/Can-we-load-log-files-into-some-database-using-Camel-tp5760290p5760295.html Sent from the Camel - Us

Re: Can we load log files into some database using Camel?

2014-12-08 Thread prasad
Hi, Thank you so much for your Prompt response . yeah that is my requirement ,but continuously the newly generating log files also have to come into my database. -- View this message in context: http://camel.465427.n5.nabble.com/Can-we-load-log-files-into-some-database-using-Camel-tp576

Re: Can we load log files into some database using Camel?

2014-12-08 Thread akoufoudakis
Well, to read a file you definitely need to use camel file2 component. However, I don't know whether reading a non-completed files (because, it is a log file and, as you said, is appended by new log entries) is a proper way to use this component. Say, it can be done and it is not a misuse. Do you

Re: Can we load log files into some database using Camel?

2014-12-08 Thread akoufoudakis
A small update. You can read an uncompleted file. But, then you might want to use the readLock option to be sure that when you read the file, nothing is writing to it at the same time. -- View this message in context: http://camel.465427.n5.nabble.com/Can-we-load-log-files-into-some-database-us

Re: clearing headers causes infinite redelivery

2014-12-08 Thread Claus Ibsen
Hi What version of Camel do you use? On Mon, Dec 8, 2014 at 1:19 AM, Minh Tran wrote: > Hi > > I've run into an issue where my route clears the headers right before a rest > call to prevent unintended headers being sent on the request. Something like > this. > > > > > > Unfortunately this se

Re: Can we load log files into some database using Camel?

2014-12-08 Thread Claus Ibsen
Hi There is the stream component which can read log files while they are in use http://camel.apache.org/stream On Mon, Dec 8, 2014 at 1:24 PM, akoufoudakis wrote: > A small update. > You can read an uncompleted file. But, then you might want to use the > readLock option to be sure that when you

Re: kafka inout issue

2014-12-08 Thread Claus Ibsen
Hi The kafka component does not support doing request/reply style messaging. Though if this would be possible with kafka, then sure we love contributions to help implement support for this. http://camel.apache.org/contributing.html On Mon, Dec 8, 2014 at 12:46 PM, tapdur wrote: > Hi the communit

Re: Can we load log files into some database using Camel?

2014-12-08 Thread akoufoudakis
Nice... So can it be done like: stream:file?fileName=access.log ? -- View this message in context: http://camel.465427.n5.nabble.com/Can-we-load-log-files-into-some-database-using-Camel-tp5760290p5760306.html Sent from the Camel - Users mailing list archive at Nabble.com.

AW: Can we load log files into some database using Camel?

2014-12-08 Thread jhm
http://camel.apache.org/file2.html This is a polling consumer (in your case) so it will fetch all new added files. Storing its content could be something simple like from("file:logDirectory") .to("jpa:my.etl.LogContent") where LogContent in its simplest implementation just stores the str

Re: AW: Can we load log files into some database using Camel?

2014-12-08 Thread akoufoudakis
So, finally, you could use the combination of stream component and jpa component, as Jan noted: from("stream:file?fileName...") .to("jpa:my.etl.LogContent"); Alternatively, you can also use SQL or JDBC component to store it in the database. You can also use bean component between stream an

OSGI Apache Aries Transaction

2014-12-08 Thread alexey-s
Hi Working on the project, encountered an error emergency closing the connection. The database connection is closed to rollback the entire transaction. I registered an error https://issues.apache.org/jira/browse/ARIES-1279 Description contains many quotations from the trace log. In the comments

Re: Can we load log files into some database using Camel?

2014-12-08 Thread prasad
Thank you so much for your response. -- View this message in context: http://camel.465427.n5.nabble.com/Can-we-load-log-files-into-some-database-using-Camel-tp5760290p5760319.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: NPE with language:ruby and concurrentConsumers

2014-12-08 Thread Christoph Spenler
Yes Claus, thread safety out of the box would be nice. We spent last week digging into some massive performance regression with Camel & Ruby and parallel processing: when processing 200 messages in parallel (5 concurrent consumers) - memory consumption increased from 30MB (Camel 2.8.0) to 90MB (2.

Re: Can we load log files into some database using Camel?

2014-12-08 Thread Preben.Asmussen
Hi, A word of advice here since we have done something similar where we load GB of zipped http log files from our http servers, unzip them, parse them and insert the parsed content into a structured db tables using camel. Even though the solution works it is somewhat cumbersome to maintain when l

[REST DSL] Camel 2.14.1-SNAPSHOT : How to configure SSL on jetty component ?

2014-12-08 Thread Vaïsse-Lesteven Arthur
Hi everyone, Due to bugfixes required to use the Rest DSL with jetty I upgraded to camel 2.14.1-SNAPSHOT. I tried many approachs to set up SSL connection but I'm unable to figure out how to do it properly. I tried this : And Both these solutions end on the following error : I suppose that "h

Moving data between sources - NULL values

2014-12-08 Thread Schulze, Jan
Hi all, in Camel 2.13.2, I'm transferring data from one database to another like so: .setBody(simple("SELECT fieldA, fieldB FROM table1 LIMIT 1")) .to("jdbc:DataSourceService1") .split(body()) .log("${body }) // This logs: {fieldA=100, fieldB=null} .setBody(simple("INSERT INTO table2(field

Re: Camel distributed transactions/XA without full J2EE container?

2014-12-08 Thread GuyPardon
Hi, I am from Atomikos. I can confirm that our software is open source and apache-licensed (and as far as I am concerned always will be - we never regretted moving towards open source so far). You can use it any way you like, as long as you like, rebrand it or whatever - but if you want profession

Re: clearing headers causes infinite redelivery

2014-12-08 Thread Minh Tran
2.14.0 I looked at what Willem suggested with the HeaderFilterStrategy but it seems a little cumbersome. Easier just to set the exclude pattern. On 08/12/2014, at 11:25 PM, Claus Ibsen wrote: > Hi > > What version of Camel do you use? > > On Mon, Dec 8, 2014 at 1:19 AM, Minh Tran wrote: >>

FW: Spring Camel "Parent" Context

2014-12-08 Thread Justin Rosenberg
I have many (over 100) projects that all include a core Spring project where ActiveMQ is configured. Currently each project defines its own camel context as such: I would like to change some parameters in the way the camel context is defined. I could simply

Re: OSGI Apache Aries Transaction

2014-12-08 Thread alexey-s
I changed the error message. I think that this is a very serious mistake. Added test. When the database returns an error, distributed transaction falls during the rollback. Do you think that this behavior is transaction management system correct? I wondered whether I should leave in OSGI project O

Re: FW: Spring Camel "Parent" Context

2014-12-08 Thread JustinCRL
I believe I have figured it out. The equivalent of: Is: If I am wrong please let me know. Also if someone could explain where I can see the translation of http://camel.apache.org/schema/spring tags to classes, I would be grateful. Useful knowledge for me to kn

Re: FW: Spring Camel "Parent" Context

2014-12-08 Thread JustinCRL
Actually the context didn't start. I'll update here once I figure it out. In the meantime, any help is appreciated. -- View this message in context: http://camel.465427.n5.nabble.com/FW-Spring-Camel-Parent-Context-tp5760339p5760345.html Sent from the Camel - Users mailing list archive at Nabb

Re: FW: Spring Camel "Parent" Context

2014-12-08 Thread JustinCRL
There is a spring.handlers file in META-INF that references org.apache.camel.spring.handler.CamelNamespaceHandler. This is the link between the Spring Tag and the construction on the implementation classes. However, I'm still missing a step in the definition that will cause the Context to start w

Re: FW: Spring Camel "Parent" Context

2014-12-08 Thread JustinCRL
I got farther with this. .*

TypeConversionException RabbitMQ

2014-12-08 Thread Alan Camillo
Look like a simple problem, but I can't see the solution. I have a class like the follow: public class A { public List Bs; // getters and setters } Than I receive this class from a RabbitMQ: from("rabbitmq://{{rabbitmq.host}}:{{rabbitmq.port}}/*sendmsg* ").routeId("sendmsg") .conv

Re: AW: AW: Camel - Array

2014-12-08 Thread smilevasu6
Hi, The problem got solved, i am able to insert dynamically. Thanks a lot for all your support. Regards, Srinivas -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Array-tp5760111p5760350.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: TypeConversionException RabbitMQ

2014-12-08 Thread Willem Jiang
Hi, Can you show us the code of IterateEmailsProcessor? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On December 9, 2014 at 12:51:03 PM, Alan Camillo (alancami..

Camel - Http Timeout

2014-12-08 Thread Supreet
Hi All, I am trying to create a heartbeat endpoint and would like to set a timeout of 5 secs on it. I have tried this - http://testurl/ws/?bridgeEndpoint=true&httpClient.connectionManagerTimeout=5000"; />

Re: Camel distributed transactions/XA without full J2EE container?

2014-12-08 Thread alexey-s
Hi Please read my opinion on account of Aries Transaction. See http://camel.465427.n5.nabble.com/OSGI-Apache-Aries-Transaction-td5760310.html https://issues.apache.org/jira/browse/ARIES-1279 Another author: https://issues.jboss.org/browse/ENTESB-2244 On the topic of the question. In ARIES-12