Re: Streaming huge files in Camel

2014-04-11 Thread akoufoudakis
Hello, Claus, David! It is my first post. So, don't be too judicious. It my be also very stupid... Did you try sql component? You could select from your database by timestamp, then to transform each specific row you selected to the needed format (marshal) and send it to JMS. I applied the curren

Re: Camel JAXB component - schema attribute not present in element JAXB

2014-04-14 Thread akoufoudakis
Hello, Reji, Claus! Sorry for intervening. JAXB has no value without Java classes, because the main purpose of it is to transfer XML to Java classes. If I understand correctly JAXB. You could *validate* your message (well, exchange.getIn().getBody()) against the XSD schema, without Java classes.

Re: Database polling w/o DB write access

2014-05-05 Thread akoufoudakis
Hello! Did you consider SQL component from camel 2.12? I use it to poll from a table. -- View this message in context: http://camel.465427.n5.nabble.com/Database-polling-w-o-DB-write-access-tp5750870p5750871.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JAXB-Unmarshalling of soap xml including schema validation

2014-05-19 Thread akoufoudakis
Hello, James! Did you try to do the following: from(src).to("validator:[your_xsd_file]").unmarshal(). ... ? -- View this message in context: http://camel.465427.n5.nabble.com/JAXB-Unmarshalling-of-soap-xml-including-schema-validation-tp5751290p5751291.html Sent from the Camel - Users mailing

Re: JAXB-Unmarshalling of soap xml including schema validation

2014-05-20 Thread akoufoudakis
Hello, James! Glad that it partially worked... You could just unmarshall it buy SoapJaxb... and then to validate it inside a processor or a predicate. It is an artisan solution and more a workaround. But, may be, it will save you some time. -- View this message in context: http://camel.465427.

RE: Camel configuration to pick up file from Shared location and remote file location

2014-06-13 Thread akoufoudakis
Hello, Ajit! Just to clarify. In the first scenario do you mean a network drive? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-to-pick-up-file-from-Shared-location-and-remote-file-location-tp5752233p5752247.html Sent from the Camel - Users mailing list a

RE: Camel configuration to pick up file from Shared location and remote file location

2014-06-13 Thread akoufoudakis
Hello! For the first scenario, if you want to use the "file" component, you might want to map your shared location as a network drive and then to use it as following: from("file:\\[YOUR_NETWORK_DRIVE]\\[DIR]).to([other_dir]); To access files on remote servers, I'm afraid you will need to set up F

RE: Camel configuration to pick up file from Shared location and remote file location

2014-06-16 Thread akoufoudakis
It is not the file but the directory on a shared location, in which you get this file from. You can map this directory as a map drive. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-to-pick-up-file-from-Shared-location-and-remote-file-location-tp5752233p5

Re: Camel configuration to pick up file from Shared location and remote file location

2014-06-16 Thread akoufoudakis
I am using back slashes and it works fine. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-to-pick-up-file-from-Shared-location-and-remote-file-location-tp5752233p5752338.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel configuration to pick up file from Shared location and remote file location

2014-06-16 Thread akoufoudakis
Hello, Ajit! We have a shared location, say "\\server\directory". This location is mapped in our staging machine as a network drive (e. g., W:). Then, I need to get a file from W:\from. So, my root is from("file:W:\\from").process(...).to("file:..."); May be, it is not a proper way to process fil

Re: Camel configuration to pick up file from Shared location and remote file location

2014-06-16 Thread akoufoudakis
Hey! I just got a "revelation". It works fine with the server name. You would normally open a shared folder something like this: \\server\folder1\folder2. So, your route should look like: from(file:server\folder1\folder2?...).to("activemq:..."); Check it. I just tried and it worked. -- V

Re: Camel configuration to pick up file from Shared location and remote file location

2014-06-16 Thread akoufoudakis
So, having it like this, you don't have to map anything. You just have to use server name prefixed by four back slashes (equivalent to two back slashes, but with proper escape characters). -- View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-to-pick-up-file-fro

Re: Camel configuration to pick up file from Shared location and remote file location

2014-06-16 Thread akoufoudakis
Glad that it works. As for JCIFS, I've never used it so far. So, I am not a big helper with specifically this component, unfortunately. However, you can start reading some docs about it:http://camel.apache.org/jcifs.html. They say, that it is an extension of the File2 component, so most probably,

Re: Configuring database with jdbc

2014-07-09 Thread akoufoudakis
Hello, Licia! Can you share, please, your data source spring configuration? -- View this message in context: http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp5753574p5753576.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Configuring database with jdbc

2014-07-09 Thread akoufoudakis
In your route: .to("jdbc:dataSource?useHeadersAsParameters=true"); the "dataSource" should be a data source (e. g., apache dbcp). It should be configured via Spring as a bean. . . To configure it properly, please check the link provided by Charles in his reply to you or take fradj reply as

Re: Configuring database with jdbc

2014-07-09 Thread akoufoudakis
I think, there is a small problem. In your route, you still call it "dataSource". However, in your bean definition, you call it as "myDataSource". Check, if it helps. -- View this message in context: http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp5753574p5753587.html Sent fr

Re: Configuring database with jdbc

2014-07-09 Thread akoufoudakis
Can you, please, repost again what you have for now: route (from...to), spring configuration, and the exception, which is thrown now? -- View this message in context: http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp5753574p5753589.html Sent from the Camel - Users mailing list

Re: How to

2014-07-11 Thread akoufoudakis
Try this route: It runs twice per day (1PM, 4PM) each day of the week. But, as Claus pointed out, just check a cron expression tutorial online. There should be plenty of them. Sure, there should be also "expression builders", which allow you to check if your expression is valid. The only diffe

Re: Running apache camel ftp example

2014-07-14 Thread akoufoudakis
Hello, Anjenson! I'd like to ask you a stupid question... Did you try to connect to the FTP server, using different "client" (e. g., filezilla or browser)? -- View this message in context: http://camel.465427.n5.nabble.com/Running-apache-camel-ftp-example-tp5753782p5753783.html Sent from the Ca

Re: What would be the benefits of running Camle on osgi?

2014-07-22 Thread akoufoudakis
That is what official Red Hat Fuse ESB Enterprise documentations says: "When trying to decide between the blueprint and Spring dependency injection frameworks, bear in mind that blueprint offers one major advantage over Spring: when new dependencies are introduced in blueprint through XML schema na

Re: Polling a directory for inner directories

2014-08-06 Thread akoufoudakis
I might be wrong, but "File" in terms of enterprise integration patterns is not a directory. It is a piece, which contains information inside, which can be processed. A file is a kind of a message (people more experienced with EIP might want to kill me for the last statement). Since, Camel is an in

Re: Aggregate up to N "ASAP"

2014-10-27 Thread akoufoudakis
Hello, Baris! I'm afraid, you are asking to find a better solution for 2 x 2 = 4 problem. Your solution is right. I would do it the same way. More over, here's an example from book "Camel in Action" by Claus Ibsen: public void configure() throws Exception { from("direct:start") .log("Sending ${

Re: Aggregate up to N "ASAP"

2014-10-27 Thread akoufoudakis
And, of course, time out, set to 0, makes no sense... -- View this message in context: http://camel.465427.n5.nabble.com/Aggregate-up-to-N-ASAP-tp5758134p5758140.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Aggregate up to N "ASAP"

2014-10-29 Thread akoufoudakis
Then, you could try to write your own completionPredicate. Some additional info can be found here: http://camel.apache.org/aggregator2.html. -- View this message in context: http://camel.465427.n5.nabble.com/Aggregate-up-to-N-ASAP-tp5758134p5758290.html Sent from the Camel - Users mailing list

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 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: 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.

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

InOut MEP

2015-05-13 Thread akoufoudakis
Dear all! I am sure that this questions has been already asked. Apologies that you have to look at it again. I have a very trivial route, which uses InOut MEP: @Component public class InOutRouter extends RouteBuilder { public void configure() { from("jms:incoming

Re: how to get subject and body for mail from a properties file

2015-05-14 Thread akoufoudakis
Hello, Gordon! I would do it like this. {{some.processor.consumer.camel.email.subject}} text/plain;charset=UTF-8 {{some.processor.consumer.camel.email.body}}

Re: rapid consumption of ActiveMQ messages

2015-05-14 Thread akoufoudakis
If you want to speed up, you can use concurrentConsumers option. http://camel.apache.org/competing-consumers.html. -- View this message in context: http://camel.465427.n5.nabble.com/rapid-consumption-of-ActiveMQ-messages-tp5767100p5767102.html Sent from the Camel - Users mailing list archive at

Re: InOut MEP

2015-05-14 Thread akoufoudakis
Hello, Henryk! Thanks for the hint. It is a good workaround. I myself would do something similar: simple pipes and filters or a content-based router. I just wanted to see how InOut works "in theory". So, what I did, I just continued experimenting with routes, and tried the following: public void

OSGI Service look up

2015-08-11 Thread akoufoudakis
Dear all! I know that one can lookup for an OSGi service the following way: Runnable r = (Runnable) ctx.lookup("osgi:service/java.lang.Runnable"); Can you do anything similar inside your camel route? Thank you in advance. -- View this message in context: http://camel.465427.n5.nabble.com/OSGI