Re: Add property to Route (not Exchange)

2012-04-06 Thread Reuben Garrett
Jeff, i can think of two approaches which might help: whenever possible, i try to map my routing logic onto declarative orchestrations of Enterprise Integration Patterns [1] to avoid interacting directly with Camel's API [2], neutral though it may be. perhaps your use-case can be satisfied by fa

Re: jars required

2012-04-02 Thread Reuben Garrett
i believe Predicate is in camel-core, and OGNLExpression is in camel-ognl, SQLExpression is in camel-josql, and SpelExpression is in camel-spring. I'm not sure about JXPath, but in general you can look at the online javadocs [1] and see component/artifact name in the URL. the wiki [1] will also u

Re: File-component not transacted?

2012-03-29 Thread Reuben Garrett
yes, i remember filesystem operations in java tending towards the "lowest common denominator" (e.g. locks are advisory [1]). maybe idempotency [2] in flows downstream of the file consumption could help achieve the desired behaviour? [1]: http://docs.oracle.com/javase/6/docs/api/java/nio/channels/

Re: C3P0 cannot load Jtds Driver in OSGi env

2012-03-29 Thread Reuben Garrett
glad it worked for you! Sven's example sounds more elegant and robust for a larger scenario, but it's pushing the boundaries of my current skill level. i'll revisit once i've learned more. ~ Reuben On Thu, Mar 29, 2012 at 12:02, raad wrote: > Reuben, I chose your method and it worked fine. T

Re: RESTful web service support from Camel

2012-03-29 Thread Reuben Garrett
Zemin, let's take this conversation to the users' list , where participants focus on usage issues and will be better equipped to assist you. if you're interested in dynamic endpoint construction, take a look at these resources: http://camel.apache.org/dynamic-router.html http://camel.apache.org/

Re: RecipientList without aggregation

2012-03-28 Thread Reuben Garrett
Mario, if you know in advance which beans will be consuming from the endpoint, you could define them statically using Multicast, without the dynamism of Recipient-List. if you don't need to await responses from the Multicast targets before continuing from the Multicast block to the next pipe in t

C3P0 cannot load Jtds Driver in OSGi env

2012-03-28 Thread Reuben Garrett
raad, i'm not sure this is directly related to camel, but it looks like you're using a DriverManager-based connection pool within an OSGi environment. i haven't used c3p0 before, but i do use Apache Commons DBCP and had a similar issue with class loading problems. i believe i tracked it down to

Re: Have available data in several points of the route?

2012-03-28 Thread Reuben Garrett
On Wed, Mar 28, 2012 at 01:09, Christian Müller wrote: > claim-check is the prefered solution if you deal with big data. > ... or security-sensitive/confidential data! :] ~ Reuben

Re: RESTful web service support from Camel

2012-03-27 Thread Reuben Garrett
CXF is probably very relevant to your scenario, as Sergey indicates (although i haven't used it yet). for the general case of "dynamic" endpoints/URIs, check out these resources: http://camel.apache.org/dynamic-router.html http://camel.apache.org/recipient-list.html http://camel.apache.org/how-do

Re: Only one endpoint can follow to the split bean ?

2012-03-27 Thread Reuben Garrett
wow, I'd like to move this discussion to the user list since you have usage concerns. my only suggestion is to use log [1] or tracer [2] to help diagnose that routing details (e.g. headers) match their expected values. the commiters will be able to give further insight. [1]: http://camel.apache

Message Transformation issue

2012-03-23 Thread Reuben Garrett
ramnar, i believe something like this should work: http://camel.apache.org/message-translator.html http://camel.apache.org/schema/spring";> ${in.body} extra data! also, from what i've heard, the route models will have a much richer semantic representation in camel 3.0 -

Re: wireTap issue: Exchange is empty while copy defaults to true

2012-03-20 Thread Reuben Garrett
Is this a scenario where the WireTap's onPrepareRef might be helpful to capture the needed information from the tapped Exchange before its parent message is consumed? ~ RNPG On Tue, Mar 20, 2012 at 05:08, Claus Ibsen wrote: > You use local work directory with the FTP endpoint which means the >

Re: Using Camel as a Fast Back-end Bus with REST services?

2012-03-19 Thread Reuben Garrett
Ludovic, It should be fine to pose your questions in multiple forums, as long as you clearly identify and cross-link (as you have). StackOverflow is becoming popular, and Claus has even answered several of my questions there. It's the "blind" cross-posts without reference links that become annoy

Re: Camel features depending on Camel Component

2012-03-02 Thread Reuben Garrett
thanks, Dan! On Thu, Mar 1, 2012 at 12:16, Ashwin Karpe wrote: > look for it ... in camel-extras/github. The component was quite > compelling and could not be brought into the Apache Camel offering due to > license restrictions in RabbitMQ. > to Ashwin's point (above), does this mean that elem

Re: Camel features depending on Camel Component

2012-03-02 Thread Reuben Garrett
RabbitMQ appears to be licensed under MPL 1.1 [1], but there is a new MPL 2.0 [2] that is purportedly more Apache-friendly [3]. Are MPL 2.0 projects compatible for incorporation in APL projects? I don't fully understand all the intricacies entailed, but perhaps new possibilities will arise [4].

Re: How to use escape tool ($esc.xml($somestrwithspclchars)) in camel velocity template

2012-02-23 Thread Reuben Garrett
Ramesh, I'm not as knowledgeable as the committers, but it looks like you're trying to attach an instance of the EscapeTool class to a header in your Exchange and then invoke it later on inside the Velocity template. But when you use a expression in the Spring DSL, it just returns the text withi

Re: Multiple timers with same name in same context

2012-02-22 Thread Reuben Garrett
I have a similar scenario in which I use a single timer endpoint that s to different vm: or seda: queues containing the "real" consumers. Could that be a good work-around in the interim? ~ RNPG On Wed, Feb 22, 2012 at 07:46, Claus Ibsen wrote: > Hi > > If the uri is slightly different then tha

Re: Spring DSL route

2012-02-21 Thread Reuben Garrett
newbiee, I'm not sure I completely understand your situation, but it sounds more like a dependency/deployment problem than something related to camel itself. If you're having trouble packaging your application's dependencies, then maybe the Maven Shade plugin would help? http://maven.apache.org/p

Re: return a response for spring webservice route

2012-02-21 Thread Reuben Garrett
Chris, i haven't used Wire Tap that much, but i think your markup is setting the body after the wireTap block completes. assuming you want to send a constant body to the wireTap target (activemq:queue:jms.incoming) for each incoming request from the web service, maybe try this:

Re: error while using direct:order

2012-02-21 Thread Reuben Garrett
kapoor, CamelContext.loadRoutesDefinition(…) receives a standard java.io.InputStream - you don't have to obtain it from a classpath resource. it sounds like you want a java.io.FileInputStream. try this: InputStream is = new java.io.FileInputStream("E://cameltest.xml"); RoutesDefinition routes =

Re: how call another service for part of the message in one route

2012-02-21 Thread Reuben Garrett
Rafal, this sounds like the Content Enricher pattern to me: http://camel.apache.org/content-enricher.html a bean or inlined fluent processor is probably a good solution - you seem to be on the right track ~ RNPG On Feb 21, 2012, at 6:32, Rafal Janik wrote: > Hi! > > I'm looking for the b

Re: error while using direct:order

2012-02-21 Thread Reuben Garrett
kapoor, is this helpful? http://camel.apache.org/loading-routes-from-xml-files.html // load route from XML and add them to the existing camel contextInputStream is = getClass().getResourceAsStream("barRoute.xml"); RoutesDefinition routes = context.loadRoutesDefinition(is); context.addRoute