Just a proposal : it might be great to write in the documentation a post
about how to manage the ".end()" instruction : what components need it? how
two not "cross" them and avoid confusions?
Like in :
.loop(3)
.to(...)
.split(...)
.end() --> what END is it?
-
http://developpef.blogspot.c
OK, after a test, you're right, it is now working as expected.
Thanks for pointing me this tip!
-
http://developpef.blogspot.com
--
View this message in context:
http://camel.465427.n5.nabble.com/Split-an-empty-list-tp5728214p5728225.html
Sent from the Camel - Users mailing list archive at
Well, after my SPLIT I use an aggregation Strategy with completionPredicate
to Exchange.SPLIT_COMPLETE.
So if I understand, I would rather write :
.split(body(), myAggregationStrategy)
(... split operations ...)
.end()
rather than :
.split(body())
(... split operations ...)
.aggregate(...)
.com
Hello,
Here is what happens :
My route is :
from("direct:inside")
.log(LoggingLevel.INFO, " start")
.beanRef(MY_SERVICE, "retrieveDataList")
.log(LoggingLevel.INFO, " before split ${body}")
.split(body())
.log(LoggingLevel.INFO, " after split ${body}")
And my logs :
|2013-02-27 11:
We currently use 2.10.2
-
http://developpef.blogspot.com
--
View this message in context:
http://camel.465427.n5.nabble.com/Exceptions-management-tp5726051p5726143.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hello,
This message to get more explanations on exceptions management on routes.
Here is my app :
I created a custom MyException extending RuntimeCamelException (wich extends
Exception).
My routes are :
onException(MyException.class).handled(true).log("FATAL").end();
from("...").onException(E
Well after some more tests, I found the solution.
I tried to attach others JPEG, XML and even LOG files and it worked! I think
my problem was due to the fact that I tried to attach the current log used
simultaneously by Camel, so maybe when it tried to resolve Mime-type there
was an access conflic
Hello,
I tried adding this line, but still the same error, with my MailAttacher :
public class MailAttacher {
private LogFileResolver logResolver;
public void attachLog(Exchange exc) {
File logToAttach = logResolver.getCurrentLogFile();
exc.getIn().addAttachment(
Hello everyone,
I am facing the following issue when trying to send an email with
attachments :
My route is :
from("direct:mail")
.setHeader("To", constant(mailTo))
.setHeader("From", constant(mailFrom))
.setHeader("Subject", constant(mailSubject))
Hello,
Here is my problem :
My routes are :
From(file://).to().to().to("direct:next");
From("direct:next").to().onException().maximumRedeliveries()...
I need, in case of error, to redeliver message from "direct:next". But it
seems that this mecanism needs to redeliver from a producer endpoint (
OK I will use this.
Thanks for your help!
-
http://developpef.blogspot.com
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-stop-event-tp5567221p5567604.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Sorry for the mistake, I meant ' Nothing more interesting on "getContext()"
'.
I think I do not really understand. Where is this "isStopping()" method? In
2.9.0 it is not on CamelContext :
http://www.jarvana.com/jarvana/view/org/apache/camel/camel-core/2.9.0/camel-core-2.9.0.jar!/org/apache/camel/
Thank you for the answer.
The EventNotifier seems to match my needs, but I have none of the mentioned
methods on the context or on the status. I am in version 2.9.0 and on
getContext().getStatus() I only found, among others, "isStarting()",
"isStarted()", "isStoppable()" but not "isStopping()". N
Hello,
I am wondering if there is a way, in a Camel route, to retrieve a kind of
"stop event" that might be sent from the context when asked for stopping?
Actually, one of my routes is processing a loop on multiple data and does a
long-running business task for each of these data. So when I try t
Hello,
Here is my question :
I have a route that polls a directory and sends the files found to a
ZipService 4 by 4 (the created zip have to contain all the files needed by
another program, like : data1.shx, data1.shp, data1.dbf, data1.prj then
data2.shx, data2.shp...).
So here is my route :
fr
FYI, I opened CAMEL-4919
-
http://developpef.blogspot.com
--
View this message in context:
http://camel.465427.n5.nabble.com/Testing-headers-in-multiple-messages-tp5157167p5157294.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Thank you for this hint. I will open a JIRA for this.
Yes I think that this point might be comparable to
expectedBodiesReceivedInAnyOrder.
I will try your solution, but I would prefer not to modify the "prodution
ready" route, even if it's not an important change.
-
http://developpef.blogspot
I recently saw the jira CAMEL-4159 but it is not what I expected : this issue
is intended to let a test expect for multiple headers in ONE message.
What I needed is the following : I know that a given endpoint will receive 3
messages in any order, and I need to test ONE header in each of these
mess
18 matches
Mail list logo