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
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.
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.
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
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.
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
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
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
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.
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
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
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
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,
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.
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
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
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
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
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
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
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
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 ${
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.
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
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
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
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
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.
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
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
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}}
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
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
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
34 matches
Mail list logo