testing the tracer

2014-09-18 Thread apanday
Hi, I'm writing a "functional tracer" (similar to the jpa tracer example) and i have two issues - I'd like to test my traces, independently of the actual DB (a nosql in my case), so i'm trying to "weave" a mock in place, like: weaveById("direct:tracer").replace.to("mock:traced") the route "direc

Re: errorHandler and onException

2014-08-06 Thread apanday
Edit: Ok, the first file doesn't really vanish, it is moved to a ".camel" directory under the input directory. So the proper interpretation is probably that the first file is "waiting" to be deliverable to the rabbit, and since there can be only one, the second file gets an actual error. As for

errorHandler and onException

2014-08-05 Thread apanday
Hi, I'm setting up a simple route that reads files and dumps them into a rabbitmq exchange. By default, the rabbitmq endpoint is configured as an "immediate exchange" which means that if no active consumer is present, an error is thrown. I don't have a consumer yet, so i simply expect everything t

Re: "simple programatic" camel and OSGi

2014-08-05 Thread apanday
got you :) before i start contributing a new tutorial though, i'll try to learn how to use camel myself. i'll be coming back with more questions very soon! thanks -- View this message in context: http://camel.465427.n5.nabble.com/simple-programatic-camel-and-OSGi-tp5754790p5754810.html Sent

Re: "simple programatic" camel and OSGi

2014-08-05 Thread apanday
Thanks Claus! I just figured it out after reading Matt's response :) On a side note, I really think things should be explained simply in these terms in the tutorials. The tutorial @ http://camel.apache.org/tutorial-osgi-camel-part1.html is quite scary just looking at the amount of dependencies an

Re: "simple programatic" camel and OSGi

2014-08-05 Thread apanday
Hi Matt, Thanks a lot for your reply. It's still not very clear though: 1. Create the Component instance somewhere (like a BundleActivator). > 2. Register it as a service with at least the attribute "name" = > "rabbitmq". > my service registry already contains the following service [org.apache.

"simple programatic" camel and OSGi

2014-08-05 Thread apanday
Hi all, I have a fairly good understanding of OSGi, not so much of Camel internals. I'm trying to start a simple camel route involving rabbitmq in an OSGi container (simple file -> camel). (and incidentally I'm using the scala DSL, and camel version 2.13.2, inside a simple felix container) My pr