AW: Creating routes dynamically like a for()

2013-10-01 Thread jhm
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 > -

AW: Creating routes dynamically like a for()

2013-10-01 Thread jhm
. 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

AW: The Camel Components Poster - PDF - FREE

2013-10-03 Thread jhm
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 >

AW: Sending Body

2013-11-04 Thread jhm
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.

AW: When - an Apache Camel Component for time slots management

2013-11-11 Thread jhm
> 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

AW: Splitting up XML into 2 XMLs

2013-11-19 Thread jhm
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

AW: Splitting up XML into 2 XMLs

2013-11-19 Thread jhm
from("direct:split") .split(xpath("/Route/*")) .setBody(simple("${body}")) .to("mock:end"); } }; } > -Ursprüngliche

AW: [Feature Enhancement] Camel body size

2013-11-23 Thread jhm
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

AW: [Feature Enhancement] Camel body size

2013-11-23 Thread jhm
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

AW: [Feature Enhancement] Camel body size

2013-11-24 Thread jhm
> 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

AW: Problem with exec

2013-11-24 Thread jhm
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

AW: assertIsInstanceOf

2013-11-25 Thread jhm
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("

AW: Why Pass Java object in Twitter (& other) component

2013-12-10 Thread jhm
> > 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

AW: Zipping multiple files to one Zip-File

2013-12-20 Thread jhm
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

AW: Add date to logs

2014-01-07 Thread jhm
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

AW: What organizations are using Camel?

2014-01-07 Thread jhm
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

AW: Load testing for Camel appliation

2014-01-20 Thread jhm
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

AW: suscribeme

2014-02-13 Thread jhm
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

AW: camel-validator : parser doesn't allow a maxOccurs attribute value to be set greater than the value 5 000

2014-02-20 Thread jhm
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

AW: AW: camel-validator : parser doesn't allow a maxOccurs attribute value to be set greater than the value 5 000

2014-02-20 Thread jhm
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

AW: Processor threading model question

2014-02-20 Thread jhm
> 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

AW: How to copy files from one directory to another within the same ftp server.

2014-02-28 Thread jhm
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/

AW: How to copy files from one directory to another within the same ftp server.

2014-03-01 Thread jhm
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

AW: Aggregator - complete when newExchange.header('"x") != oldExchange.header("x)

2014-03-07 Thread jhm
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 > -

AW: help with getting xpath value?

2014-03-24 Thread jhm
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

AW: Extract the value from property

2014-03-27 Thread jhm
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

AW: AW: Extract the value from property

2014-03-27 Thread jhm
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

AW: How to use CAMEL to send the acknowledgement and xml output to vendors on different platform ?

2014-04-08 Thread jhm
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

AW: camel xpath

2014-04-09 Thread jhm
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

AW: Disable DTD validation on XPATH

2014-04-10 Thread jhm
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.

AW: Async Http Client link broken

2014-04-10 Thread jhm
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 >

AW: AW: camel xpath

2014-04-10 Thread jhm
> 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

AW: OutOfMemoryError when handling large file

2014-04-14 Thread jhm
> 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

AW: Split XML with xmlTokenizer and add root element?

2014-04-15 Thread jhm
> 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

AW: Set header from velocity template

2014-04-15 Thread jhm
> 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

AW: Camel for XML data

2014-04-21 Thread jhm
> 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

AW: Apache Camel vs Openadaptor

2014-04-22 Thread jhm
> 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.

AW: Splitting list of elements in a message body..

2014-04-24 Thread jhm
> 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

AW: AW: Splitting list of elements in a message body..

2014-04-24 Thread jhm
> 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/

AW: comparing two XML files

2014-05-04 Thread jhm
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}"

AW: comparing two XML files

2014-05-05 Thread jhm
> 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

AW: XSLT without Namespace

2014-05-06 Thread jhm
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

AW: Java DSL Question - revisited

2014-05-26 Thread jhm
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

AW: Logical Units of Work

2014-06-12 Thread jhm
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

AW: Problem with ETL example

2014-06-13 Thread jhm
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

AW: AW: Problem with ETL example

2014-06-13 Thread jhm
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

AW: AW: Problem with ETL example

2014-06-13 Thread jhm
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

AW: Bean Injection support without spring

2014-07-03 Thread jhm
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

AW: MockEndPoint expected methods clashing

2014-07-03 Thread jhm
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

AW: Concurrent problem with message Body using WireTap

2014-07-07 Thread jhm
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

AW: Need help

2014-08-18 Thread jhm
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

AW: Camel Custom Splitter Question

2014-08-20 Thread jhm
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

AW: Java Utility Expression

2014-08-20 Thread jhm
> 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

AW: Camel File Component

2014-08-22 Thread jhm
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

AW: Preferring bean or processor invocations on a route

2014-09-17 Thread jhm
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)

AW: Compilling Apache 2.4

2014-09-28 Thread jhm
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.

AW: How to pick multiple file in same route

2014-10-30 Thread jhm
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

AW: total number of messages in activemq

2014-11-19 Thread jhm
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

AW: Passing several POJOs trough multiple routes

2014-11-25 Thread jhm
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.

AW: Camel

2014-11-28 Thread jhm
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

AW: camel - xsd

2014-12-04 Thread jhm
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

AW: Camel - Array

2014-12-04 Thread jhm
> .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

AW: AW: Camel - Array

2014-12-05 Thread jhm
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

AW: AW: Camel - Array

2014-12-07 Thread jhm
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

AW: Can we load log files into some database using Camel?

2014-12-08 Thread jhm
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

AW: camel - xsd

2014-12-09 Thread jhm
"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

AW: camel - xsd

2014-12-09 Thread jhm
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

AW: AW: camel - xsd

2014-12-10 Thread jhm
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 { //

AW: AW: camel - xsd

2014-12-10 Thread jhm
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) : &

AW: AW: camel - xsd

2014-12-16 Thread 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:

AW: AW: camel - xsd

2014-12-16 Thread jhm
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

AW: AW: camel - xsd

2014-12-16 Thread jhm
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

AW: AW: camel - xsd

2014-12-16 Thread jhm
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 >

AW: AW: camel - xsd

2014-12-17 Thread jhm
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 >

AW: AW: camel - xsd

2014-12-18 Thread jhm
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

AW: Camel

2014-12-23 Thread jhm
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-

AW: Camel

2014-12-23 Thread jhm
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

AW: Patterns for DRY Camel endpoints

2015-02-04 Thread jhm
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

AW: can i get discount for camel in action book

2015-03-04 Thread jhm
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:

AW: Dynamic Splitter timeouts

2015-03-16 Thread jhm
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

AW: OnException - Retry based on Body Content

2015-04-22 Thread jhm
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

AW: OpenHub framework - Apache Camel, but improved ...

2017-11-28 Thread jhm
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:

AW: Translation of Camel manual

2013-04-29 Thread jhm
> 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

AW: Best strategy for skipping lines in CSV files with bindy

2013-05-08 Thread jhm
> 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

AW: Camel in Action book

2013-05-16 Thread jhm
> 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

AW: bean with method parameters in camel

2013-06-01 Thread jhm
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

AW: Camel Development in eclipse

2013-07-08 Thread jhm
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.

AW: conditional uri

2013-07-16 Thread jhm
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

AW: Camel testing

2013-07-29 Thread jhm
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

XPath + DOM-reuse

2013-07-30 Thread jhm
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

AW: XPath + DOM-reuse

2013-07-30 Thread jhm
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

AW: XPath + DOM-reuse

2013-07-30 Thread jhm
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,

AW: How to programatically add a route to ClassPathXmlApplicationContext?

2013-08-14 Thread jhm
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

AW: How to called the processor

2013-08-22 Thread jhm
> > *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 { >

AW: freemarker with pojo and/or xpath

2013-08-27 Thread jhm
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,

AW: Camel maven build error - External jar dependency

2013-08-28 Thread jhm
> 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

AW: Route with more uris e.g. .to(uri1, uri2 .. ), uris are processed sequential?

2013-09-17 Thread jhm
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

AW: Route with more uris e.g. .to(uri1, uri2 .. ), uris are processed sequential?

2013-09-17 Thread jhm
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

AW: How to set a header in custom DataFormat?

2013-09-18 Thread jhm
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

AW: How to set a header in custom DataFormat?

2013-09-19 Thread jhm
); msg.setBody(body); msg.setAttachments(attachments); msg.setHeaders(headers); msg.setMessageId(messageId); msg.setFault(fault);

  1   2   >