Re: Apache Karaf and camel-fop

2014-03-25 Thread Richard Kettelerij
When you say you've installed it manually, does this mean you didn't use the Camel features file? If so, please double check if you have all required bundles installed. FOP requires quite a few dependencies. See the camel-fop feature: https://github.com/apache/camel/blob/master/platforms/karaf/feat

Re: download files for each xml entry

2014-03-25 Thread Richard Kettelerij
Hi, I don't think using a filter yields the desired outcome. With this filter you're only verifying whether the XML file contains a "entry/filter" node. If the XML file is valid this will always succeed but it will not help you in downloading additional files. I guess what you're looking for is t

RE: download files for each xml entry

2014-03-25 Thread Ravindra.Godbole
Here is what you can do . from("direct:start") .to("http://localhost/Files.xml";) .split(xpath("//file/text()")).parallelProcessing() .process(new Processor() {

No bean could be found in the registry for JNDI Look up using EJB Component

2014-03-25 Thread Deekay
Hi, My stateless session bean is deployed in JBOSS eap 6 and I can invoke it using standalone java client. But while integrating it with camel route i am getting below exception. Stacktrace --

RE: camel route enable/disable based on configuration

2014-03-25 Thread chaij
it should be decided at startup time. Hopefuuly not through jmx or programming. I am hoping that camel supports conditional configuraion. -- View this message in context: http://camel.465427.n5.nabble.com/camel-route-enable-disable-based-on-configuration-tp5749315p5749337.html Sent from the C

Making Periodic HTTP Request Using Timer

2014-03-25 Thread ibcole...@gmail.com
I'm trying to do something which seems like it should be very simple, but instead is turning out to be very difficult. I have a very straightforward REST URL that I want to poll periodically, retrieve the JSON response, and then process that response. I managed to successfully generate an http re

Re: Making Periodic HTTP Request Using Timer

2014-03-25 Thread Donald Whytock
On Tue, Mar 25, 2014 at 7:32 AM, ibcole...@gmail.com wrote: > I'm trying to do something which seems like it should be very simple, but > instead is turning out to be very difficult. > > I have a very straightforward REST URL that I want to poll periodically, > retrieve the JSON response, and then

Camel with Karaf

2014-03-25 Thread Pascal Klink
Hi everyone, I have some problems getting a Bundle, which is using Camel, to run on my Karaf (Version 2.3.0, Camel Version 2.13.0). I think this is because I'm doing something wrong with the Import Statements in the Manifest file. This is the pom.xml of my Bundle: http://maven.apache.org/POM/

Re: Camel with Karaf

2014-03-25 Thread cemmersb
Hi Pascal, one quick question, are you using JDK 8.0? I’m facing a similar behaviour when running Karaf on JDK 8.0 - without any Camel: org.osgi.service.blueprint.container.ComponentDefinitionException: java.lang.IllegalArgumentException at org.apache.aries.blueprint.container.Referen

Re: Making Periodic HTTP Request Using Timer

2014-03-25 Thread Ian Coleman
On Tue, Mar 25, 2014 at 10:00 AM, Donald Whytock wrote: > On Tue, Mar 25, 2014 at 7:32 AM, ibcole...@gmail.com >wrote: > > > I'm trying to do something which seems like it should be very simple, but > > instead is turning out to be very difficult. > >[...] > > Were you including images in that

Re: Enricher doesn't work with ActiveMQ

2014-03-25 Thread ak-dak
Hi all, has anyone an idea what can I do to solve my problem? Best Regards -- View this message in context: http://camel.465427.n5.nabble.com/Enricher-doesn-t-work-with-ActiveMQ-tp5748641p5749346.html Sent from the Camel - Users mailing list archive at Nabble.com.

Aw: Re: Camel with Karaf

2014-03-25 Thread Pascal Klink
Hi Christpoh, I'm running on JDK 7. Other bundles are starting up perfectly when having no dependencies to camel so there aren't any other issues around except this one (I hope I answered b) as you expected - I was not excatly sure what you meant with the question). Greetings, Pascal > Gesen

Re: Re: Camel with Karaf

2014-03-25 Thread Charlie Mordant
Hi, For some component, you have to export them as Osgi services, then referencing in your bp.xml as the prefix you use it in your route. I would do so for the SQL component: Regards, 2014-03-25 17:01 GMT+01:00 Pascal Klink : > Hi Christpoh, > > I'm running on JDK 7. Other bundle

Camel: How to stop a route temporarily?

2014-03-25 Thread doug5791
I am trying to see if I can increase the performance of my route by adding a cache prior to a database write. I will describe the flow of the route I would like below: if( cacheSize != MAXCACHESIZE) { //Add the Exchange to the data structure but* do not* continue with the write //cacheSi

Aw: Re: Re: Camel with Karaf

2014-03-25 Thread Pascal Klink
Hi everyone, I think I've narrowed the root of the problem down to blueprint. I took a working example from the internet and reworte the route which was built in Java Code in Blueprint XML and voila - another NullPointerException. I'll now try to rewrite my own route in Java and only use the ca

Re: Camel: How to stop a route temporarily?

2014-03-25 Thread Claus Ibsen
Hi There is this FAQ which may help http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html On Tue, Mar 25, 2014 at 6:12 PM, doug5791 wrote: > I am trying to see if I can increase the performance of my route by adding a > cache prior to a database write. I will describe the flow of the

Re: Camel SMPP

2014-03-25 Thread Christian Müller
Hi Nader! After sending a SMS, the SMPP producer will set the message header "CamelSmppId". If you receive a DeliveryReceipt or DataSm, Camel will also set the message header "CamelSmppId" as described in [1]. This is the correlation Id you can use. P.S.: Please use the Camel user mailing list th

Re: Route based on Soap Action

2014-03-25 Thread Christian Müller
You should share the entire route if you are looking for help... Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.linkedin.com/pub/christian-mueller/11/55

Question: Processing exchange with until done?

2014-03-25 Thread Matt Payne
I'm picking up an object to work from a directory and instead of using content based routing (because the predicates are complex), I'm thinking of doing something like this: from("direct:workEventQueue") .process(blueWorker).choice().when(header("done").isNotNull()).to("direct:done") .process(redW

Re: How to consume a Rest Web Service passing through a proxy server

2014-03-25 Thread dan carter
Hi, I have a similar problem. I can see how in the cxf component i would configure the proxy server, but i cannot see how to configure the component from camel. How do i configure the cxf component using the java DSL? here is my route return new RouteBuilder() { public void config

Re: Camel CXF Proxy with WS-Security

2014-03-25 Thread chaij
Willem, I didn't see an example on how to wire in the TransformInInterceptor in the junit test case. Maybe I have missed something? Are you suggesting to configure the cxf-bus instead of the endpoint only? Can you give some more specific suggestions? New to camel and still learning. Thanks! Jin

Re: Question: Processing exchange with until done?

2014-03-25 Thread Matt Payne
I want to take an exchange and send it along a series of processors until one of them uses it and sets the next route to "direct:done"; I'd rather not use content based routing because I want the work it takes decide if the exchange is for a particular processor reused inside of the processor and t

Re: camel route enable/disable based on configuration

2014-03-25 Thread Henrique Viecili
Take a look at Control Bus EIP: http://www.eaipatterns.com/ControlBus.html If you are using Camel 2.11.x, you can use: https://camel.apache.org/controlbus-component.html Henrique Viecili On 25 March 2014 22:32, chaij wrote: > it should be decided at startup time. > Hopefuuly not through jmx o

Re: Transform without modifying message for downstream endpoints

2014-03-25 Thread MichaelAtSAG
Thanks Mark. I reviewed the recipient list pattern in Camel documentation and do not see how this solves the transform issue. Could you be so kind as to provide a code example? Upon further reading, I was thinking that a multicast pattern may best

Error handler to both logger and dead letter queue?

2014-03-25 Thread Rural Hunter
Hi, I configured the error handler to send messages causing error to dead letter queue. I noticed when the message went to the dead letter queue, there is no error in the log. In this case, it's very hard for me to know what's the problem with those messages. Is it possible for the error hand

Issue with SetHeader / Xpath

2014-03-25 Thread contactreji
Hi Would be nice if you guys can help me with the proper way os using Xpath in Spring DSL I am trying to extract a value from incomign XML file using Xpath and trying to set it to header. The route is as follows * ftp://{{ftpUser}}@{{ftpHost}}{{path}}?password={{ftpPasswo

Re: Camel: How to stop a route temporarily?

2014-03-25 Thread doug5791
I guess the biggest thing I need to accomplish is telling all the exchanges that are stopped to go to the next endpoint. Is there something I can append like a property that says: "exchange.set property(Exchange.goToEndpoint, "database")"? "doug5791 [via Camel]" wrote: I am currently trying

Re: Camel: How to stop a route temporarily?

2014-03-25 Thread doug5791
I am currently trying to use the "Exchange.ROUTE_STOP" property -I do not think that using a CountDownLatch will work out-, however I do not get the desired effect. Using the code below, only the last Exchange goes on to the database: //exAr is a List of Exchanges .process(new Processor()

Re: Came DSL ( Spring Routes ) on Tomcat (insted of Servicemix )

2014-03-25 Thread N.S.KARTHIK
HI Thx for the Info and Sorry for Delay to replay Now To make the task more Intresting. Ref: http://camel.apache.org/tutorial-on-using-camel-in-a-web-application.html Question : Could a bunch of "*Camel Routes" be part of WEB-INF/lib/jar*" file instead of hardcoding in "applicationConte

Re: Route based on Soap Action

2014-03-25 Thread Gnanaguru S
Hi Chris, I solved this issue using the Message format itself, but interestingly the soapaction URL comes in a double quote & camel simple components expects a single quote around it. After that the choice router delegates the messages based on the soap action. This is the working code: ${in.h

Re: Camel: How to stop a route temporarily?

2014-03-25 Thread Claus Ibsen
Hi You can use some of these EIPs for dynamic routing behavior http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html http://camel.apache.org/recipient-list.html http://camel.apache.org/routing-slip.html http://camel.apache.org/dynamic-router.html On Tue, Mar 25, 2014 at 9:45 PM, doug5791

Re: Came DSL ( Spring Routes ) on Tomcat (insted of Servicemix )

2014-03-25 Thread Claus Ibsen
Hi Yeah you can define your routes in Java code https://camel.apache.org/java-dsl.html And if you are using spring then you can refer to these route builder classes from the spring xml file https://camel.apache.org/spring.html Or tell Camel to use package scanning etc to find the route builder c

Re: Error handler to both logger and dead letter queue?

2014-03-25 Thread Claus Ibsen
Hi You can use a direct endpoint as the DLQ and then have a route where you route to a log and then the actual DQL you wanna use. eg its then just a route and you can do what you want. On Wed, Mar 26, 2014 at 2:50 AM, Rural Hunter wrote: > Hi, > > I configured the error handler to send messages

Re: Issue with SetHeader / Xpath

2014-03-25 Thread Claus Ibsen
Hi You need to use namespace for your xpath expression. eg your namespace is: http://www.wbf.org/xml/B2MML-V0401 See the "foo" namespace example at http://camel.apache.org/xpath On Wed, Mar 26, 2014 at 6:03 AM, contactreji wrote: > Hi > > Would be nice if you guys can help me with the proper wa