Thanks for the reply.
Would I be able to do the following? The 3 CSV files will contain different
information. I need to poll for these 3 files and get 3 Map objects out of
those 3 CSV files. I've seen the aggregation examples from the Camel
documentation, but there we combine the old and the new
I have tried the following to achieve what I want. But I ran into some
errors:
My Route:
from("file:C:\\Users\\joe\\Desktop\\csv?noop=true").
unmarshal().csv().process(new
RefDataProcessor()).to("direct:Process");
from("file:C:\\Users\\joe\\Desktop\\csv2?noop=true
I modified my route to look like below:
from("file:C:\\Users\\joe\\Desktop\\csv?noop=true").setHeader("isBuToPf",
simple("true")).
unmarshal().csv().process(new
RefDataProcessor()).to("direct:Process");
from("file:C:\\Users\\joe\\Desktop\\csv2?noop=true").setHeader
Claus,
Thanks for pointing to the Javadoc. In fact, I started out blind with a very
little idea on how an aggregation would work. But after working my way
through the above exercise, I got a good hold of it. In fact, I made the
mistake of having my aggregation logic in a processor. I moved them to
Hi all,
I'm facing a strange error when trying to perform an XSLT transformation on
an XML file which I read from the file system. Here is my route:
from("direct:processResponse").to("xslt:com/test/processor/response.xsl").to("direct:processedResponse");
from("direct:processedRes
Sorry for the confusion. It was an editing mistake that I made. You can
assume that the XML is properly formed. Has it got to do something with the
camel core version that I'm using?
--
View this message in context:
http://camel.465427.n5.nabble.com/Strange-Error-with-XSLT-transformation-tp5730
I just got to know that it is a known issue.
http://fusesource.com/forums/message.jspa?messageID=12367
Will have to now use a workaround to solve this.
--
View this message in context:
http://camel.465427.n5.nabble.com/Strange-Error-with-XSLT-transformation-tp5730764p5730885.html
Sent from th
Dear Camel Users,
I would like to achieve the following:
(1) Read 2 files from a directory at the same time
(2) Perform some processing on the content of both the files
(3) Create a new file out of the processing from step 2
What I tired so far is to have a single route to read the files, send t
Thanks for the message. Is there an alternative to using the Aggregator
pattern? Though I like the Aggregator pattern, I would like to think of any
other alternatives that might be possible to read multiple files at once.
--
View this message in context:
http://camel.465427.n5.nabble.com/Read-m
Camel Users:
I have the following route:
from("activemq:{{in.queue}}")
.process(new MyInputProcessor())
.beanRef("myBeanProcessor")
.process(new MyOutputProcessor()")
.to("activemq:{{out.queue}}");
In my beanRef, I change the body of the Exchange to a different type after
proce
Guys,
I have the following route:
from("direct:aggregate").aggregate(header(CORRELATION_HEADER_KEY), new
MyAggregationStrategy()).completionTimeout(3000).to(DIRECT_FINISH_AGGREGATE).routeId("myAggregator");
I want this new MyAggregationStrategy() to be injected via a bean definition
from my blue
I figured that out. I had to browse through the API reference that took me a
while!
Anyways, thanks for the response!
Regards,
Jothi
--
View this message in context:
http://camel.465427.n5.nabble.com/Aggregator-to-be-pulled-from-the-bean-definition-tp5734826p5734884.html
Sent from the Camel
Camel Users,
I'm using the fuse 2.8.0-fuse-00-08 version of Camel libraries. I want to
use the CamelBlueprintTestSupport but as I understand, it is available only
with Camel 2.10. Should that matter? I assume that the dependency to the
blueprint test support would be to Camel 2.10 with the scope b
If you are looking for an UI that will help you drag and drop components,
Fuse IDE is the way to go. It is built on top of eclipse. So if you have
been an eclipse user, it should be relatively easy for you to set it up.
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-De
I did give it a try and eventually I ran into a ClassNotFoundException. It
complained that it was not able to find the ModelCamelContext.
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Blueprint-Test-Support-tp5735198p5735281.html
Sent from the Camel - Users mailing l
Let me try that today and post the results here!
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Blueprint-Test-Support-tp5735198p5735330.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Is there a way to find out which CSV file that is currently being processed?
I mean I have a couple of CSV files and I do not know the name of those CSV
files. All I know is their structure. If it was XML, I can identify the file
structure using xpath. Is there something similar that I can do for C
I'm considering the Bindy component to marshall and unmarshall stuff. I can
see that there is a OneToMany annotation that I can use. Will the OneToMany
only map to a List or can I use a Set as well?
--
View this message in context:
http://camel.465427.n5.nabble.com/CSV-files-processing-tp573547
I have a Bindy bean written as below:
public class ObjectMaster {
private String field1;
@OneToMany
private List < Object1 > field2;
@OneToMany
private List < Object2 > field3;
}
I have two CSV files in which unmarshalling one of them would produce a one
to many relationshi
After a bit of fiddling with it, I had to give up on the bindy component as
it does not fit to what I have. My domain model consist of a parent class
and a sub class where some of the fields are annotated in the parent class.
But this leads to an error when used with the bindy component. So this do
I tried using version 2.9.x, but that seems not to be feasible as all the
other modules use 2.8.0 and I get dependency path initialization errors when
it is trying to resolve the camel core libraries. Is there another way to
get around this issue?
Regards,
Joe
--
View this message in context:
I can now see that it is fixed in versions 2.8.2 and above. But this brings
me another question. Even though I use Camel 2.8.0, can I use version 2.9.0
for the bindy component?
--
View this message in context:
http://camel.465427.n5.nabble.com/Error-in-camel-bindy-tp5735580p5735582.html
Sent fr
Guys,
I face a strange error when trying to use the camel-bindy component!
The separator has not been defined in the annotation @CsvRecord or not
instantiated during initModel.
I have specified this in the annotation. I checked the old posts by doing a
simple search and I came to know that this
This is what I do to initialize the bindy component!
DataFormat bindy = new BindyCsvDataFormat("com.test.mypackage.csvdata");
The package contains the classes that are annotated with the @CsvRecord
annotation. The package also contains some other classes that do not have
this annotation. But I gu
Guys,
Is this OneToMany a true OneToMany? I guess it only applies when the entire
CSV file has some common elements? I have a file that has entries like
below:
1,abc,def,joe
1,abc,xyz,san
2,abc,mno,ram
3,abc,fgh,sam
When I tried with the above file which used the OneToMany annotation between
the
Is it possible with Camel 2.8.0 to provide the class name instead of the
package name to the unmarshall dsl?
Can I instead of
.unmarshal(new BindyCsvDataFormat("de.test.model")
do
.unmarshal(new BindyCsvDataFormat("de.test.model.MyModel")
--
View this message in context:
http://camel.465427.
As I understand from Claus's message is that it is not possible to specify
the class name to the BindyCsvDataFormat as this feature seems not to be
available with the camel version that I'm using!
--
View this message in context:
http://camel.465427.n5.nabble.com/Error-in-camel-bindy-tp5735580p
Take a look at the CronScheduledRoutePolicy [1]. With this you can specify
the start and stop time for your route. You create your route with the
noAutoStartup!
[1] - http://camel.apache.org/cronscheduledroutepolicy.html
Regards,
Joe
--
View this message in context:
http://camel.465427.n5.nab
Camel Users,
I face a strange error when I tried to run one of my routes. Why I say
strange is because, I can see that the consumer for one of the routes is
started, but it still fails when run!
Here is the route;
// Process and send to the aggregator
from(DIRECT_PROCESS_REF_DATA
That's the whole route what I have posted above! It is definitely strange as
I have another route that does the same thing and that route worked
perfectly fine! I tried changing the names of the route id, direct constants
and its values, but of no help!
What is even more strange is that I can see
When I read several files from a directory using the file component, should
any exception occur, I can see in the log that Camel tries to read the files
multiple times and constantly writes the exception to the log and eventually
run into a OutOfMemory problem. How to instruct Camel to stop reading
What even confuses me is that I have another route that looks more or less
the same, the only difference being a couple of more choice blocks. That
route works perfectly fine. Spent about 3 hours trying to analyze the
problem but fruitless. I'm calling it a day! Will work on it with a fresh
mind to
Seriously, I do not understand what is happening with this particular route!
I added the startup order and it did not help either. Baffled now!
--
View this message in context:
http://camel.465427.n5.nabble.com/No-Consumer-available-Exception-tp5736133p5736146.html
Sent from the Camel - Users m
The problem was I used the same routeId's within the same Camel Context. The
message that I see in the console does not directly say that. Would it be
possible to improve the error message?
--
View this message in context:
http://camel.465427.n5.nabble.com/No-Consumer-available-Exception-tp5736
34 matches
Mail list logo