What you could do is generating a xml file with the new route definitions
and load that.
http://camel.apache.org/loading-routes-from-xml-files.html
from("sql ...")
.process( generateRoutesXmlProcessor )
.doTypeConversionFromXmlToInputStream
.process( loadRoutesProcessor )
Jan
> -
. MSc. - Lead Java Architect @ EA* *Author of:
> Hardcore Java (2003) and Maintainable Java (2012)*
> *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39*
>
>
> On Tue, Oct 1, 2013 at 4:20 PM, Jan Matèrne (jhm)
> wrote:
>
> > What you could do is gene
Not sure if they are sending worldwide, only in Europe or only in Germany ;)
PosterXXL.de provides printing posters for less money:
80x60cm 18,99 €
120x60cm 23,99 €
I haven't used that service, but maybe others?
I don't also know if you could create a "shop" selling a predefined poster.
Jan
>
vote for https://issues.apache.org/jira/browse/CAMEL-6648 ;)
Jan
> -Ursprüngliche Nachricht-
> Von: Claus Ibsen [mailto:claus.ib...@gmail.com]
> Gesendet: Montag, 4. November 2013 13:29
> An: users@camel.apache.org
> Betreff: Re: Sending Body
>
> Yes using properties is very seldom used.
> I was able to get this working
>
> from("direct:start").filter("when", "MON-FRI 9:30-18:30").to(...)
Does that matches the current system time?
> but I'm struggling with the matches method. This works:
> .filter(
> header("anyHeader")
> .matches( new LanguageExpression("when", tim
The trick is using the right xpath. Here use a wildcard "/Route/*".
Jan
package de.materne.camel.sandbox.split;
import static org.apache.camel.builder.PredicateBuilder.or;
import java.io.IOException;
import org.apache.camel.EndpointInject;
import org.apache.camel.builder.RouteBuilder;
import
from("direct:split")
.split(xpath("/Route/*"))
.setBody(simple("${body}"))
.to("mock:end");
}
};
}
> -Ursprüngliche
When only asking the body for its length you lose the length of properties,
headers and attachements.
(Especially when retrieving emails the last could be big ;)
Jan
> -Ursprüngliche Nachricht-
> Von: Jean-Baptiste Onofré [mailto:j...@nanthrax.net]
> Gesendet: Samstag, 23. November 2013 1
Store the object in a byte array and count the bytes?
Jan
> -Ursprüngliche Nachricht-
> Von: Hadrian Zbarcea [mailto:hzbar...@gmail.com]
> Gesendet: Samstag, 23. November 2013 20:00
> An: users@camel.apache.org
> Betreff: Re: [Feature Enhancement] Camel body size
>
> I wonder how you'd i
> Von: Claus Ibsen [mailto:claus.ib...@gmail.com]
>
> Though I like the idea if we could get some sort of API in Camel
> components that optionally could determine the message size. So we
> could keep track of a size of message data in and out.
>
> Sorta like an activity monitor tool, such as TCP
I tried that and got a nested NPE.
Jan
2013-11-25 08:05:29,427 [main ] ERROR DefaultErrorHandler
- Failed delivery for (MessageId: ID-Jan-mySN-54051-1385363128177-0-1 on
ExchangeId: ID-Jan-mySN-54051-1385363128177-0-2). Exhausted after delivery
attempt: 1 caught: org.apache.camel.TypeC
Your test class looks like that:
public class X extends CamelTestSupport {
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
public void configure() throws Exception {
from("direct:exec")
.to("
> > Why not have standard behavior across camel components?
>
> Each component provides messages in the most
> efficient/generic/convenient way it is possible in given context.
>
> What kind of standard message format are you thinking of? JSON for
> example?
A "common" format could only be some
I am missing a part which Camel instructs to collect the exchanges and not
to process every for its own ...
Jan
> -Ursprüngliche Nachricht-
> Von: alex [mailto:alex.koe...@gmx.de]
> Gesendet: Freitag, 20. Dezember 2013 16:39
> An: users@camel.apache.org
> Betreff: Zipping multiple files t
Because the log-component delegates to an underlying logging framework using
sl4j, it should be possible to change the log format of that underlying
logger.
Jan
/log4j.properties
log4j.appender.camel=org.apache.log4j.ConsoleAppender
log4j.appender.camel.layout=org.apache.log4j.PatternLayout
l
In my project we are using Camel to integrate several systems.
Here we have round about 10k users acting synchronously during work time
with 150k requests per day.
Also we have asynchronously work with round about 2.5M requests per month
(2M coming from batch jobs during 5 days).
Jan
> -Ursp
I am not aware of special Camel load test tools.
Testing the whole route depends on the incoming chanel where you want to
give load on.
If it is from(http://) then you could tools like JMeter.
Having from(file://) you have to create files faster Camel slurps them.
Having from(jdbc://) you need a
On http://camel.apache.org/mailing-lists.html it is described how to
subscribe to the mailing list.
Basically send an email to users-subscr...@camel.apache.org - don't send
this directly to the users list.
cheers
Jan
> -Ursprüngliche Nachricht-
> Von: Ramiro Pugh [mailto:ramp...@gmail.com
Sounds that you are running into a parser problem like described here
http://stackoverflow.com/questions/16651005/workaround-for-xmlschema-not-sup
porting-maxoccurs-larger-than-5000
So XML Spy and Fuse are using other parsers than Eclipse.
Jan
> -Ursprüngliche Nachricht-
> Von: ABoucham
Try changing the parser?
Jan
> -Ursprüngliche Nachricht-
> Von: ABouchama [mailto:tit...@yahoo.fr]
> Gesendet: Donnerstag, 20. Februar 2014 22:18
> An: users@camel.apache.org
> Betreff: Re: AW: camel-validator : parser doesn't allow a maxOccurs
> attribute value to be set greater than the
> I had thought about the possible solutions for this and got 2 ideas:
> 1. create several rows of processors and store the rows in some kind of
> pool. For each data I pick up one row and process it through the
> processes in the that row.
> 2. create different pools for different type of processo
I think in this way the data is transfered to the running Camel instance and
back to the ftp-server.
If I googled right [1] FTP itself supports renaming files (and with that
moving to different directories).
Camel does not support that, right?
Jan
[1]
http://stackoverflow.com/questions/9461844/
itter
> Apache Incubator PMC Member
>
> https://www.linkedin.com/pub/christian-mueller/11/551/642
>
>
> On Sat, Mar 1, 2014 at 8:56 AM, Jan Matèrne (jhm)
> wrote:
>
> > I think in this way the data is transfered to the running Camel
> > instance and back
Answer from newby so please recheck ;)
With a correlationExpression you could aggregate file1-3+5 and file4
together (maybe the expected 1-3,4,5)
Another approach is using a constant cE, so all exchanges come to the same
aggregator instance.
Here you react on a header-value-change.
Jan
> -
Not sure - do you have to use text() instead of node()?
And provide the xmlns of the id element?
/c:entry/c:id/text()
Jan
> -Ursprüngliche Nachricht-
> Von: sb.append [mailto:a261...@drdrb.net]
> Gesendet: Montag, 24. März 2014 17:47
> An: users@camel.apache.org
> Betreff: Re: help wit
Haven't tried SpringDSL, but this works for me.
Jan
package de.materne.camel.test;
import org.apache.camel.Exchange;
import org.apache.camel.Predicate;
import org.apache.camel.builder.PredicateBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndp
Just replace "setHeader" with "setProperty" ...
Jan
package de.materne.camel.test;
import org.apache.camel.Exchange;
import org.apache.camel.Predicate;
import org.apache.camel.builder.PredicateBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEnd
As described in http://camel.apache.org/bean-binding.html (which is refered
in http://camel.apache.org/walk-through-another-example.html) there is no
special method and choosing the right method (from Camel) is complicated.
The easiest POJO you could have is
public class ValidateOrder {
public
I think the problem is the leading slash / so your root element has to be
.
Because I think this is not the case (but you havent shown that xml) other
xpaths will work
Jan
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.test.junit4.CamelTestSupport;
import org.junit.Test
You could try setting the factory like described for Saxon in
https://camel.apache.org/xpath.html#XPath-UsingSaxonwithXPathBuilder
https://camel.apache.org/xpath.html#XPath-EnablingSaxonfromSpringDSL
Jan
> -Ursprüngliche Nachricht-
> Von: Ayache Khettar [mailto:ayache.khet...@googlemail.
Thanks for pointing,
in the meanwhile someone has fixed that, so I couldnt reproduce that ;)
Jan
> -Ursprüngliche Nachricht-
> Von: Goyal, Arpit [mailto:arpit.go...@sap.com]
> Gesendet: Freitag, 11. April 2014 04:53
> An: users@camel.apache.org
> Betreff: Async Http Client link broken
>
> in camel example here :
>
>
> /invoice/@orderType =
'premium'
Means a header "invoiceDetails" with data like
>
> authorizationCheck/text()='enabled'<
/xpath>
Which header do you want to access?
- RouteConfiguration
- ROUT
> I am trying to process a large file (900MB). I need to send it to a
> HTTP remote location: B. But before I send it to B, I need to post some
> metadata to HTTP location A.
>
> Because I do not want the content of the file to be sent to A, I move
> the file from the body to a header named XomBod
> I think you are right.
> currently, the result is a series of child elements and the parent
> context information is not included in the result (except the namespace
> binding information that can be extracted into the split child
> elements).
>
> When I pushed the current implementation, I had
> I currently use velocity to set the message body. Now, I would like to
> use it to set a _header_. I haven't found any example of this.
> Obviously I could write a processor/bean. Is there a better way?
Why do you want to use velocity for that?
Just
from(...)
.setHeader("headerName", cons
> I have a use case where I want to read an XML document from a flat file
> and select XML element of interest using XPath accordingly output to a
> JMS destination.
>
>
> Can I use Camel for this use case ?
Yes. :)
Ok, some more words
Written from mind without the manual, so have a look
> For me it looks like openadaptor is a dead project. Haven't done any
> releases since november 2011 https://www.openadaptor.org/
Seems so:
https://www.openadaptor.org/downloads.html
"Current" production release: 3.4.7 from Nov 2011 (3yrs old)
https://openadaptor3.openadaptor.org/ds/viewForums.
> The message body would be a list with 2 xml's. For example:
>
>
> Cat1
> ,
>
> Dog1
>
>
> Now, I need to send the 'Cat' part of the message i.e.
> Cat1 part to queue1 and the 'Dog' part of xml
> i.e.
> Dog1 to a different queue?
>
> This is the route that I have, but
> Yes..there is a comma...
>
> The message that would be returned from a processor Call in the route
> would be like this:
> [http://www.openapplications.org/oagis/9";
> xmlns:lw="http://www.org/oagis/9";>
> Cat1
> ,
> http://www.openapplications.org/oagis/9";
> xmlns:lw="http://www.org/oagis/
For comparing XML I would google or have a look at XMLUnit [1].
AFAI understand Camel it reacts on one message. But you want to compare two
files.
So the message could contain the content of both files.
from("direct:in")
.bean(MyXmlDiff.class, "compare(${headers.XML_ONE}, ${headers.XML_TWO}"
> It is simply a comparison of values in the files not of the structure
> of the files.
If you could compare via xpath then you could write that directly in Camel:
from("direct:in")
.switch()
.when(xpath(...)).to(...)
> Now I want to pull in some more data to the route to
> allow m
Have you tried your xsl with an xslt-tool on your input?
Or with Xalan:
java -classpath xalan.jar;xercesImpl.jar org.apache.xalan.xslt.Process -IN
input.xml -XSL transform.xsl > output.xml
Jan
> -Ursprüngliche Nachricht-
> Von: contactreji [mailto:contactr...@gmail.com]
> Gesendet: Diens
In the Processor you define the access path during "runtime":
you have one exchange as input.
In the RouteBuilder you define the access path during "design time":
what is to do for _every_ incoming exchange (and some may not have a hashmap
as body...).
But i am sure that you could use simple lan
I did a sample.
Jan
/**
* user@camel.a.o (2014-06-12):
*
* I have a CSV file with structured data in it:
*
* F1,xxx,,xxx,xxx
* F2,XXX,XXX
* F2,XXX,XXX
* F1,xxx,,xxx,xxx
* F2,XXX,XXX
* F2,XXX,XXX
* F2,XXX,XXX
*
* There is a logical connection between the rows starting
* with F1
from("file:src/data?noop=true")
.convertBodyTo(PersonDocument.class)
.to("jpa:org.apache.camel.example.etl.CustomerEntity");
// the following will dump the database to files
from("jpa:org.apache.camel.example.etl.CustomerEntity?consumeDelete=false&de
lay=3
econd route and run hawtio
> maven plugin again as above and verify the change in the behavior of
> the second route.
>
> Babak
>
>
> Jan Matèrne (jhm) wrote
> > from("file:src/data?noop=true")
> > .convertBodyTo(PersonDocument
This main class invoked the run(String[]) method defined in the superclass
org.apache.camel.spring.Main. Without reading that I guess it defines/loads
the routes
and starts the camel context.
Reading the files is done by the file-component ...
Jan
> -Ursprüngliche Nachricht-
> Von: Licia
Bean Injection (like in the subject) or Bean Integration (like in your
text)?
For injection other DI frameworks should be useable, e.g. Guice.
CDI is also a common framework.
If I read the site about bean integration [1] in the right way, Spring is
not necessary because you could use bean binding
I ran into the same problem some ago with another expect* method.
These methods set the extpectedMessageCount to the number of arguments.
The simplest thing what you could do is:
endpoint.setExpectedBodies(hello, "hello");
I am not sure that changing the order would work
endpoint.setExpectedB
Use Reflection or easier - one of the existing libraries
https://code.google.com/p/cloning/
http://www.genericdeepcopy.com/
Jan
> -Ursprüngliche Nachricht-
> Von: ychawla [mailto:premiergenerat...@gmail.com]
> Gesendet: Montag, 7. Juli 2014 20:03
> An: users@camel.apache.org
> Betreff: Re
Just "thinking" ...
from("jms:...")// 1
.setHeader("CamelFileName", xpath("/Payload/FileName")) // 2
.setHeader("OrderId", xpath("/Payload/OrderId")) // 3
.to("xslt:transformPayloadToTextfile.xsl") // 4
.to("ftp:user@server
I wouldnt combine these steps (separation of concerns; readability of the
route), especially if #2 is a one liner:
from(...)
.setHeader("MyMessageHeader", xpath(...)) //1
.split(body()) // 2
.to(..whereToProcess..)
.aggregate(header("MyMessageHeader")) // 3
#1: Setting the header b
> from("direct:jde")
> .setHeader("FMZ57FMR", simple("${body.fuelDistribution.quantity}"))
> .setHeader("FMZ57ST",
> simple("${body.fuelDistribution.sourceTank.state}"))
> .setHeader("FMZ57JOB", constant(null))
> .setHeader("FMZ57MISC1",
> DateUtility.convertDateToKRC("${date:now:-MM-dd
After that a content based router evaluating CAMEL_FILE_NAME?
Jan
> -Ursprüngliche Nachricht-
> Von: Claus Ibsen [mailto:claus.ib...@gmail.com]
> Gesendet: Freitag, 22. August 2014 09:13
> An: users@camel.apache.org
> Betreff: Re: Camel File Component
>
> The include is a Java regular ex
With bean you could also get the whole exchange, so in that case you could
do the same as with a processor.
Another advantage is that you extract the logic (the HOW) from the route and
there only stays a (hopefully) meaningful bean name (the WHAT).
Jan
from("...")
.bean(DoubleSallary.class)
I think you are trying to compile the webserver.
So this is the wrong mailinglist, try one of
http://httpd.apache.org/lists.html
Jan
> -Ursprüngliche Nachricht-
> Von: gaafarelarabawy [mailto:gaafar.elarab...@aol.com]
> Gesendet: Sonntag, 28. September 2014 16:46
> An: users@camel.apache.
In this special case (file + hashcode) the aggregator could store the hashvalue
as header.
So a validation step could compare the actual value with the expected (header)
one.
Or the aggregator could do both and throw an exception or send a special
exchange/headervalue ...
Jan
> -Ursprüng
I wouldnt do this "in Camel" - ask ActiveMQ.
http://activemq.apache.org/how-do-i-find-the-size-of-a-queue.html
http://activemq.apache.org/rest.html#REST-RestManagement
http://activemq.apache.org/statisticsplugin.html
http://java.dzone.com/articles/managing-activemq-jmx-apis
Jan
> -Ursprüngli
Some components don't forward headers. Maybe you are losing header entries on
special components.
So instead of searching where you are losing the value, storing as properties,
like Claus suggests, seems to be easier.
Jan
> -Ursprüngliche Nachricht-
> Von: Claus Ibsen [mailto:claus.ib.
If you want to load an _instance_ of that schema and not the schema itself,
this could also help
http://camel.apache.org/jaxb.html
Jan
> -Ursprüngliche Nachricht-
> Von: Charles Moulliard [mailto:ch0...@gmail.com]
> Gesendet: Freitag, 28. November 2014 09:41
> An: users@camel.apache.org
Setting the body to a text doesnt mean to connect to a database.
Or is there some to("jdbc:") or something else I havent seen?
Jan
> -Ursprüngliche Nachricht-
> Von: smilevasu6 [mailto:srinivas.thu...@gmail.com]
> Gesendet: Mittwoch, 3. Dezember 2014 08:01
> An: users@camel.apache.org
> B
> .setHeader("size",simple("${body.length}"))
>
> With below router, i am able to store the length of array in size.
> But how we can get the element from the array.
${body.length} reflects the length field of the Array.
So I would try ${body[0]} ...
Or transform it to a list, then simple-la
Maybe this helps
Jan
public class ArrayTest extends CamelTestSupport {
@EndpointInject(uri="mock:end")
MockEndpoint mockEndpoint;
@Test
public void stringArray() throws InterruptedException {
mockEndpoint.expectedMessageCount(1);
// Access to arry information
java.sql.SQLException: Error while compiling statement: FAILED:
SemanticException Line 0:-1 Invalid column reference 'first'
Is there a column 'first' in your database?
While I am not much database experiences I would miss some values to insert
with that sql:
insert overwrite table address_targ
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
"How to read a xsd" - this was discussed just a few days ago ...
1. Read the data, doesn't matter if xml or not, from your datasource (file,
db, http, ...).
2. Optionally validate against xsd: http://camel.apache.org/validation.html
3. Optionally bind the data to JAXB classes (classes generated fr
If you can use a splitter then you could reuse your insert-code.
Just reading the xml should not differ.
Jan
> -Ursprüngliche Nachricht-
> Von: smilevasu6 [mailto:srinivas.thu...@gmail.com]
> Gesendet: Dienstag, 9. Dezember 2014 13:18
> An: users@camel.apache.org
> Betreff: Re: camel - xs
I played a little bit.
Jan
public class XmlTest extends CamelTestSupport {
@EndpointInject(uri="mock:valid")
MockEndpoint valid;
@EndpointInject(uri="mock:validationError")
MockEndpoint validationError;
@Test
public void validNewsfeed() throws Exception {
//
Re: AW: camel - xsd
>
> you are talking about the invalid-xml parsing bug in xtokenzier.
> that has been fixe with CAMEL-8106. It should be part of the new
> 2.14.1, which is to be released shortly.
>
> regards, aki
>
> 2014-12-10 9:25 GMT+01:00 Jan Matèrne (jhm) :
&
t;
> > in that case, we need to find out the difference to your case.
> > do you have woodstox-api in your class path?
> >
> >
> > 2014-12-10 12:15 GMT+01:00 Aki Yoshida :
> >> okay.
> >> let me take a look.
> >>
> >>
> >> 2014-12-10 12:
we found the reason for the "error", should I update that paragraph to say
something about the consequences of a missing StAX-with-Location?
Jan
> -Ursprüngliche Nachricht-
> Von: Jan Matèrne (jhm) [mailto:apa...@materne.de]
> Gesendet: Dienstag, 16. Dezember 2014 1
ndings.
>
> On Tue, Dec 16, 2014 at 11:09 AM, Jan Matèrne (jhm)
> wrote:
> > I stripped down my own example and did a cross check to yours:
> >
> > When running on Java 1.8.0_20-ea-b20 the test failed.
> > When I add Woodstox 4.4.1 as dependency the te
I also published the demo
https://github.com/janmaterne/CamelXtokenizer
Jan
> -Ursprüngliche Nachricht-
> Von: Jan Matèrne (jhm) [mailto:apa...@materne.de]
> Gesendet: Dienstag, 16. Dezember 2014 12:45
> An: users@camel.apache.org
> Betreff: AW: AW: camel - xsd
>
25.0-b62, mixed mode)
(also Oracle)
All on Win7 64bit.
Jan
> -Ursprüngliche Nachricht-
> Von: Aki Yoshida [mailto:elak...@gmail.com]
> Gesendet: Mittwoch, 17. Dezember 2014 15:49
> An: users@camel.apache.org
> Cc: Jan Matèrne (jhm)
> Betreff: Re: AW: camel - xsd
>
console output in my previous
> > reply or after extracting the bad token and when comparing the token?
> > You mentioned that you observed this second behavior and I would like
> > to know where I can reproduce it.
> >
> > thanks.
> >
> >
> > 2014-12-1
from(...).split().tokenize(",").to(...)
https://camel.apache.org/splitter.html
Not sure if you need a group size ( tokenize(",", 1) ).
But maybe you dont want to 'split' (like the EIP) the payload.
So have also a look at http://camel.apache.org/csv.html
Jan
> -Ursprüngliche Nachricht-
If you need more assistance you should provide more details - not one single
piece after the next.
Maybe you could write a unit test (XY extends CamelTestSupport) which shows
your expectations, then we could work on the route.
Jan
> -Ursprüngliche Nachricht-
> Von: Jan Matèrn
The URI is just a string.
Why not extract your "builder" into a simple utility method
public class EndpointUtils {
public static String rabbitEndpoint(String scheme, String host, String
host) {
...
}
}
With SpringDSL property placeholder come into mind ...
Having special builde
You could order an ebook, if the shipping is your main cost factor.
http://www.manning.com/ibsen/
"$39.99 eBook only (includes PDF, ePub, and Kindle)"
Jan
> -Ursprüngliche Nachricht-
> Von: chaituu [mailto:yarlagadd...@gmail.com]
> Gesendet: Donnerstag, 5. März 2015 03:37
> An:
My idea was
- adding an 'id' to the splitter
- later on during runtime (e.g. on an event) get that splitter instance by its
id and modify its timeout value.
Tried using JavaDSL, but with Camel 2.15.0 I havent any timeout method found ...
Jan
> -Ursprüngliche Nachricht-
> Von: Claus Ibs
If I see that right, the exception handling is just a normal route, so you
could a content based router.
Jan
> -Ursprüngliche Nachricht-
> Von: contactreji [mailto:contactr...@gmail.com]
> Gesendet: Mittwoch, 22. April 2015 13:27
> An: users@camel.apache.org
> Betreff: OnException - Retr
The name itself is very close to the home automatisation project
http://www.openhab.org/
just my 2ct
Jan
> -Ursprüngliche Nachricht-
> Von: Claus Ibsen [mailto:claus.ib...@gmail.com]
> Gesendet: Dienstag, 28. November 2017 16:27
> An: users@camel.apache.org
> Cc: Juza Petr
> Betreff: Re:
> I'm planning to translate Camel manual into Japanese, in order to
> increase Camel users.
> When I translate, do I need any permission of ASF or Camel members? Or
> I can translate the manual freely and open to the public?
I think the ASL allows that kind of use ;)
The main "problem" is keeping
> Finally I have created a processor with a BufferedReader to filter the
> lines of the file according to a regular expression, so I get the file
> as String only with the important lines. Later, I use bindy as usual.
Instead of reading the file by myself using a BufferedReader I would check
the l
> I am new to Camel and learning it.
Welcome.
> Camel in Action book is 3 years old
> and based on Camel 2.5.
> - Is it still valuable and usable with current Camel 2.11?
Yes!
> - Is there an update or another book announced?
Ok - that's more a question for the authors (who are also here on t
The exchange could be passed to the bean method, therefore you could store
these values in the header or as exchange-properties.
Something like
class abc extends RouteBuilder {
private string str1 = 'a';
private string str2 = 'b';
.
.
.setHeader("str1", str1)
.setHe
There is a FAQ-entry
* http://camel.apache.org/faq.html
* http://camel.apache.org/is-there-an-ide.html
I added a note with these informations ...
https://cwiki.apache.org/confluence/display/CAMEL/Is+there+an+IDE
Jan
> -Ursprüngliche Nachricht-
> Von: James Strachan [mailto:james.strac.
If your xml-route-definition is inside a spring configuration, spring
properties should be possible.
Jan
> -Ursprüngliche Nachricht-
> Von: Chris Wolf [mailto:cwolf.a...@gmail.com]
> Gesendet: Dienstag, 16. Juli 2013 16:17
> An: users@camel.apache.org
> Betreff: Re: conditional uri
>
> I
And the configure()-methode in the test class just returns a RouteBuilder.
It doesn't have to return a new created one ...
public class MyTest extends CamelTestSupport {
@Override
protected RouteBuilder createRouteBuilder() {
RouteBuilder rb = new MyRouteBuilder();
// adviceWith
I have a route dispatching an exchange according to a XPath evaluation to
different targets.
Sadly it doesnt perform very well. I think that the DOM is built for every
XPath evalutation.
Is it true? Can we configure Camel to reuse the DOM?
I think in this Route Camel builds the same DOM 4 tim
an work with streamed
> data types http://camel.apache.org/vtd-xml
>
> On Tue, Jul 30, 2013 at 10:57 AM, Jan Matèrne (jhm)
> wrote:
> > I have a route dispatching an exchange according to a XPath
> evaluation
> > to different targets.
> >
> > Sadly it doesnt per
d-
> safe.
>
> So if you've got multiple XPath expressions or XSLT transformations
> running in parallel (e.g. multicast EIP), you might get errors.
>
> Regards,
> Raúl.
>
> On Tue, Jul 30, 2013 at 10:16 AM, Jan Matèrne (jhm)
> wrote:
>
> > Thanks,
I would try to let Spring inject the CamelContext into my class.
There you could add your routes.
@Autowired
CamelContext ctx;
public void init() {
ctx.addRoutes(new RouteBuilder() {
public void configure() {
from(...) ...
}
});
}
Jan
> -Ursprüngliche Na
>
> *can i able to do as below, if not then how can i acheive it ?*
>
> from("direct:start").process(new Processor() {
>
> @Override
> public void process(Exchange
exchange)
> throws Exception {
>
For Freemarker itself the manual is on http://freemarker.org/docs/
Jan
> -Ursprüngliche Nachricht-
> Von: Christian Posta [mailto:christian.po...@gmail.com]
> Gesendet: Mittwoch, 28. August 2013 06:01
> An: users@camel.apache.org
> Betreff: Re: freemarker with pojo and/or xpath
>
> Yep,
> I am using a java bean class to send the email. I have added all the
> Java Mail APIs to the buildpath->Add External Archives.
This make me think you are using Eclipse.
> [INFO] 16 errors
This make me think you are building with Maven.
So add the jars as dependencies in your pom.xml and run
AFAIK all _routes_ are started directly - meaning, that they are available
for incoming exchanges.
If an exchange come in, the desired route consumes that exchange and routes
through a pipeline of processors until it ends or sends to another route
(another pipeline of processors).
I cut some str
I would avoid having multiple uris in that case and rewrite that:
fromF("sql:...")
.to("direct:delete")
.to("direct:insert")
.process(new StopCamel());
Jan
> -Ursprüngliche Nachricht-
> Von: kalber [mailto:karlheinz.al...@swslt.com]
> Gesendet: Dienstag, 17. September 2013 15:50
What I have found is, that the exchange object which is passed to the
DataFormat is only used for getting the CamelContext.
I searched a little bit further and found a processor for unmarshalling:
org.apache.camel.processor.UnmarshalProcessor.process(Exchange,
AsyncCallback)
And there is a note
);
msg.setBody(body);
msg.setAttachments(attachments);
msg.setHeaders(headers);
msg.setMessageId(messageId);
msg.setFault(fault);
1 - 100 of 125 matches
Mail list logo