Re: routeContext features

2014-01-20 Thread Claus Ibsen
Hi Good ideas. There is a JIRA ticket about improving in a future Camel release. You are welcome to put your ideas on that ticket, so we take these into consideration. On Mon, Jan 20, 2014 at 8:22 AM, Sven Nold wrote: > Hi, > > I really like the feature of , but I think some features are > mis

AW: routeContext features

2014-01-20 Thread Sven Nold
Hi, As requested added to https://issues.apache.org/jira/browse/CAMEL-5717 . Hopefully it is "fixed" earlier than 3.0.0. ;) Regards, -Ursprüngliche Nachricht- Von: Claus Ibsen [mailto:claus.ib...@gmail.com] Gesendet: Montag, 20. Januar 2014 09:27 An: users@camel.apache.org Betreff: Re:

Re: Camel XMPP and ActiveMQ

2014-01-20 Thread Claus Ibsen
Hi Must you use xmpp? Otherwise ActiveMQ has other protocols that maybe is easier to use / more used than xmpp. Such as JMS, Stomp, AMPQ, MQTT etc. On Sun, Jan 19, 2014 at 10:47 PM, gadido30 wrote: > Hi All, > > I want to connect ActiveMQ and StandAlone Camel, > Dose Camel with XMPP send messa

Re: Splitter with parallelProcessing and exectorService for each Exchange being split

2014-01-20 Thread hshicx
Hi, I see the point of making it per route and not per exchange. However, my current use case is: 1 - I need to process a directory of large files (CSV) 2 - Each file is processed as a batch 3 - Need to process up to 3 files in parallel (using .threads(3) after the file consumer). 4- Split each fi

Context vs Route Lifecycle

2014-01-20 Thread Tom Ellis
Hi All, I was wondering if somebody could clarify something regarding context and route lifecycle. Is route startup during context startup asynchronous or synchronous? I.e. Can a context status be set to Started (JMX Bean set to Started) before the routes of that context are also set to Started?

Issue while using producer template with FTP for Unit Testing

2014-01-20 Thread Chirag Dewan
Hi all, I have a route which collects file from a FTP server. I have written a Unit test case for the same. I have set autoCreate to false and I want to throw an exception if the source directory doesn't exist,which I have done by setting : startingDirectoryMustExist = true Now in my test case

Re: Camel main class in osgi bundle

2014-01-20 Thread alexey-s
Hi, Christian My sample code: blueprint error code: Move class A from package myapp to package myapp.imp.camel.processes Create Java DSL RouteBuilder -- View this message in context: http://camel.465427.n5.nabble.com/Camel-main-class-in-osgi-bundle-tp5746113p5746246.html Sent from the

Headers set from custom component are lost on exception

2014-01-20 Thread Lorenzo Bolzani
Hi, I have a custom camel component (a producer) that works like this try { doSomething(); exchange.getIn().setHeader("result", "123"); } catch(...) { exchange.getIn().setHeader("problem", "this"); throw new SomeException(...); } Now in my route I never see the "problem" header when

Re: Context vs Route Lifecycle

2014-01-20 Thread Claus Ibsen
The routes are started as part of starting the context. So only in the end the status of the context is started. See more here http://camel.apache.org/lifecycle So yeah the routes is started synchronously. On Mon, Jan 20, 2014 at 11:52 AM, Tom Ellis wrote: > Hi All, > > I was wondering if some

Re: Blueprint route not shutdown when using OSGi service processor

2014-01-20 Thread Claus Ibsen
Hi Yeah that is a little bug, fell free to log a JIRA ticket http://camel.apache.org/support The route description uses .toString which we may want to simplify to avoid these cascaded toString on potential proxied osgi services which either waits forever or fails or whatnot. On Fri, Jan 17, 201

Re: camel activemq, POJO producer is null

2014-01-20 Thread Claus Ibsen
On Sat, Jan 18, 2014 at 2:54 PM, m.mcinness1 wrote: > Thanks, Claus, for lending an ear to these very basic questions. I really > appreciate the help. > > Do I need to reference the activemq bean in my class="com.foo.MyBean" />? Does MyBean need to be instantiated in any > special way? > > Is the

Looking to determine where Camel can help us

2014-01-20 Thread metazone
- I was going to develop a pub/sub EventListener where, when a business logic object needed to send notification ot other systems, it would do so by publishing & listeners (java objects - Adapters) would get the notification. The Adapters would transform the msg (and potentially read from db) and

How to pass config file to CamelBlueprintTestSupport

2014-01-20 Thread nono
My blueprint looks like below, which refers mybundleconf.cfg resides in /etc The question is how to pass this mybundleconf.cfg to CamelBlueprintTestSupport ? Any hints are more than welcome! -- View this message in context: http://camel.465427.n5.n

Re: How to pass config file to CamelBlueprintTestSupport

2014-01-20 Thread Claus Ibsen
Hi Yeah I think this test case can help https://github.com/apache/camel/blob/master/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/ConfigAdminLoadConfigurationFileTest.java See the loadConfigAdminConfigurationFile method. Also some details in the javadoc for this me

How to redirect an income http get request with new query parameter

2014-01-20 Thread Shing Hing Man
Hi,  I have an endpoint to receive an incoming http request. Then use a processor to derive a new value from some query parameters before redirecting the request to another URL. Roughly, my code is below. from("jetty:http4://localhost:8081/test?matchOnUriPrefix=true").to(redirectProcessor);

Ending camel route

2014-01-20 Thread anjibman
Hi All, Is it must to end camel route with to()? I have route which put data to database and I have a class with method with save operation. Can I just do like from(fromUri) . .bean(myHibernateOperationsImpl, "mySaveMethod"); Thanks, Anjib -- View this message in context:

Re: Ending camel route

2014-01-20 Thread Claus Ibsen
On Mon, Jan 20, 2014 at 6:07 PM, anjibman wrote: > Hi All, > > Is it must to end camel route with to()? I have route which put data to > database and I have a class with method with save operation. Can I just do > like > > from(fromUri) > . > .bean(myHibernateOperationsImpl, "myS

Re: How to redirect an income http get request with new query parameter

2014-01-20 Thread Claus Ibsen
Hi If you are good at using url rewrite libraries then we have that in Camel too http://camel.apache.org/urlrewrite.html Or do as in the bottom of the page, write an impl of that interface and compute the rewrite url to use. On Mon, Jan 20, 2014 at 5:52 PM, Shing Hing Man wrote: > Hi, > > I ha

Re: How to redirect an income http get request with new query parameter

2014-01-20 Thread Shing Hing Man
Thanks for the info ! Shing On Monday, January 20, 2014 5:55 PM, Claus Ibsen wrote: Hi If you are good at using url rewrite libraries then we have that in Camel too http://camel.apache.org/urlrewrite.html Or do as in the bottom of the page, write an impl of that interface and compute the re

OutHeaders and ProducerTemplate

2014-01-20 Thread Knut-Håvard Aksnes
Is it possible using receive methods on ProducerTemplate to receive return headers, that is headers set by the invoked route? If the answer is no, are there a simple way of doing it without having to define a new route for this purpose. (I need this in some unit tests for a content enricher) --

Super basic questions

2014-01-20 Thread mister blinky
Sorry for the probably very fundamental nature of these questions, but i have been reading stuff online all day and still am not sure. I am messing with Camel with HDFS, but my questions generally relate to using Camel to integrate any two (or more) systems that are remote (not on same machine, no

Re: Super basic questions

2014-01-20 Thread boday
in short, Camel parses the from/to URIs to call a Java API that knows how to speak that specific component's language (File I/O, HDFS, etc). So, yes...formatting an appropriate (see camel-hdfs examples) URI to your HDFS server will tell Camel to poll for files from "://in" directory and send the

Load testing for Camel appliation

2014-01-20 Thread bonnahu
Hi all, currently I am working on a Camel application which has a event-driven consumer listening on a message channel. After message arrives, the processor will parse XML content to retrieve the properties we want. I want to do some load testing for the app, can someone give me some suggestion of

Re: Camel XMPP and ActiveMQ

2014-01-20 Thread gadido30
Hi, Thank You Again, Can I use Camel to route my messages to or from xmpp server like Ejabberd? Can I use some pattern to find my room name or profile in DataBase and forward it to same person I want? Can I use simple xml programing or I must use Java? Best Regards Gadi On Mon, Jan 20, 201

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