Re: Issue with camel-rest producer

2021-08-17 Thread Bob Jolliffe
oot, and put somewhere like > on github or attach the jira as a .zip file. > That helps us to work on this quicker. > > > On Thu, Aug 12, 2021 at 9:48 PM Bob Jolliffe wrote: > > > > I am having the same problem that Tim has had. I see there is no reply to > >

Re: Issue with camel-rest producer

2021-08-12 Thread Bob Jolliffe
I am having the same problem that Tim has had. I see there is no reply to his message so let me try and nudge it here. In my case the version is 3.11.1 and Spring Boot 2.5.3. I am trying everything but ,like Tim, I cant get past "Cannot find RestProducerFactory in Registry or as a Component t

Join after a split

2013-11-05 Thread Bob Jolliffe
Hi I have a route which takes a database query result set, splits it by row, then proceses each row using another route with seda endpoint. Something like: Get updates from dhis db and post to registry ${in.body} Is there I can cause th

Re: Camel and PostgreSQL

2013-10-09 Thread Bob Jolliffe
Does seem to be a strange question. If you are just trying to access a postgresql database from within a camel route, using for example the sql component, then you need to: 1. setup a bean for the postgresql datasource, something like 2. then you can

Re: csv with tab delimitter

2013-08-10 Thread Bob Jolliffe
; http://camel.apache.org/support > > On Sat, Aug 10, 2013 at 9:54 AM, Bob Jolliffe > wrote: > > I am using 2.11.1 > > > > > > On 10 August 2013 08:02, Claus Ibsen wrote: > > > >> Hi > >> > >> What Camel version do you use? > >> > >

Re: csv with tab delimitter

2013-08-10 Thread Bob Jolliffe
I am using 2.11.1 On 10 August 2013 08:02, Claus Ibsen wrote: > Hi > > What Camel version do you use? > > On Fri, Aug 9, 2013 at 7:51 PM, Bob Jolliffe > wrote: > > I have a

csv with tab delimitter

2013-08-09 Thread Bob Jolliffe
I have a route like the following: My camel context complains that the delimitter should be of length 1 when I try to load this. It seems it sees my e

Re: Setting header with simple

2013-07-29 Thread Bob Jolliffe
tc > > > On Mon, Jul 29, 2013 at 10:25 AM, Bob Jolliffe > wrote: > > I am trying to set the value of a header in a route like: > > > > ... > > > > > >>${body.get('properties').get('Dhis2UID')} > > ... > >

Setting header with simple

2013-07-29 Thread Bob Jolliffe
I am trying to set the value of a header in a route like: ... ${body.get('properties').get('Dhis2UID')} ... The log message displays the expected value. But the header is being populated with the literal text "${body.get('properties').get('Dhis2UID')}". Any idea what I am doing wrong? Reg

Re: Where is org.apache.camel.spring.SpringRunWithTestSupport

2013-07-24 Thread Bob Jolliffe
r the camel-spring module *own* test purposes > (inside the camel-spring/src/test folder) so why you can't find it on the > central repo. Better look at the Camel testing support: > > http://camel.apache.org/testing.html > > Or copy&paste this class if you *really* need

Where is org.apache.camel.spring.SpringRunWithTestSupport

2013-07-24 Thread Bob Jolliffe
Hi I am trying to configure some tests using SpringRunWithTestSupport on camel 2.11.1. Try as I might I can't seem to find the package which includes this class. I thought it was in camel-spring but it seems not. Can anybody suggest what I need to include? Regards Bob

Re: C library for using Camel

2013-06-20 Thread Bob Jolliffe
I don't think you are looking for a C camel library. Rather a library to talk to activemq (either 'native' or http REST) which in turn talks to camel. On 20 June 2013 21:05, Sean Beck wrote: > Hi all, > > I am new to Camel and was directed to use it for some functionality I want > to build int

Re: How to replace a part of XML?

2013-04-25 Thread Bob Jolliffe
This is the type of task xslt is really well suited for. Use an identity template with a specific override, something like: http://www.w3.org/1999/XSL/Transform";> On 25 April 2013 13:03, horyna wrote: > Hi, > > i have a XML in exchange.body ( > getEx

Re: xslt: component

2012-11-09 Thread Bob Jolliffe
On 9 November 2012 11:46, anakin59490 wrote: > Thank you very much Bob !! > > It works !! > > In fact check, was my first step, but i used xslt: component because i must > transform my xml file in an other xml file (the same without specifics > tags). > > But i thought that it could do both (chec

Re: xslt: component

2012-11-09 Thread Bob Jolliffe
Hi I think you are confusing processing/transforming xml file with xslt and validating it with xsd. It looks like this describes what you need: http://camel.apache.org/validation.html Bob On 9 November 2012 10:28, anakin59490 wrote: > Hello, > > I would like to check a xml file with a xsd

Re: RouteDefinition vs Route

2012-07-30 Thread Bob Jolliffe
add in extra properties, or you could > update the project and do a pull request. > > On Sat, Jul 28, 2012 at 7:45 PM, Bob Jolliffe wrote: >> Ah .. just realized that if I cast my CamelContext to a >> ModelCamelContext I can do all I need to do with RouteDefinitions >> (rather

Re: RouteDefinition vs Route

2012-07-28 Thread Bob Jolliffe
Ah .. just realized that if I cast my CamelContext to a ModelCamelContext I can do all I need to do with RouteDefinitions (rather than Routes) On 28 July 2012 17:54, Bob Jolliffe wrote: > Thanks Babak > > On 28 July 2012 11:42, Babak Vahdat wrote: >> Hi >> >> th

Re: RouteDefinition vs Route

2012-07-28 Thread Bob Jolliffe
On 28 July 2012 12:11, Babak Vahdat wrote: > And also CamelWatch could be of your interest which does already what you try > to achieve: > > http://sksamuel.github.com/camelwatch/ This looks very nice. As you say, very much like I want to do, except that I was hoping to get the description prope

Re: RouteDefinition vs Route

2012-07-28 Thread Bob Jolliffe
Thanks Babak On 28 July 2012 11:42, Babak Vahdat wrote: > Hi > > the easiest is to check their javadoc: > > http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Route.html > http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/model/RouteDefinition.html

RouteDefinition vs Route

2012-07-28 Thread Bob Jolliffe
A quick question which I am sure has an easy answer but I am getting a bit befuddled ... A have a simple web user interface where I want to list routes in a context with their id's and descrtiption. One purpose is being able to stop and start them. Because I am interested in the description I am

looping http fetches of paginated data

2012-07-08 Thread Bob Jolliffe
I've got a problem which I can't quite figure out how to solve. I want to configure a route which fetches xml data (representing health facilities) from a repository using a REST http get, transform the data and load into another system. Typically triggered from a quartz endpoint running every 24

Re: XPath Filter not working

2012-06-27 Thread Bob Jolliffe
On 27 June 2012 10:46, Christian Müller wrote: > Shouldn't your use: > > >  /Feeds/Feed >   > A bit verbose, but if you cannot easily work around the namespace mapping you can also try /*[local-name()='Feeds']/*[local-name()='Feed'] Or in the likely case that 'Feed' is the only child of 'Feeds

Re: xpath and namespaces

2012-04-27 Thread Bob Jolliffe
x27;organisationUnit']") > > regards, Marco > > Am 24.04.2012 23:23, schrieb Bob Jolliffe: > >> On 24 April 2012 16:36, Claus Ibsen  wrote: >>> >>> On Tue, Apr 24, 2012 at 5:11 PM, Bob Jolliffe >>>  wrote: >>>> >>>> On

Re: xpath and namespaces

2012-04-24 Thread Bob Jolliffe
On 24 April 2012 16:36, Claus Ibsen wrote: > On Tue, Apr 24, 2012 at 5:11 PM, Bob Jolliffe wrote: >> On 24 April 2012 15:22, Claus Ibsen wrote: >>> Hi >>> >>> Thanks >>> >>> Just to be sure how do you refer to this external file? >>

Re: xpath and namespaces

2012-04-24 Thread Bob Jolliffe
oadRoutesDefinition( is ); camelContext.addRouteDefinitions( routes.getRoutes() ); } catch ( Exception e ) { log.info( "Unable to load route: " + e.getMessage() ); return ERROR; } > > > > On Mon, Apr 23, 2012 at 6:54 PM, Bob Jolliffe wrote: >> On 23 April 2012 17:29, Claus Ibsen w

Re: xpath and namespaces

2012-04-23 Thread Bob Jolliffe
2]) Note that I have declared xmlns:d="http://dhis2.org/schema/dxf/2.0"; on the route element. It seems this is not being picked up. Regards Bob > > > On Mon, Apr 23, 2012 at 6:23 PM, Bob Jolliffe wrote: >> I have an application where I load a camel context using sp

xpath and namespaces

2012-04-23 Thread Bob Jolliffe
I have an application where I load a camel context using spring and then add different spring dsl routes particular to individual site configurations. I am having trouble using an XPath splitter because of the issue with making namespaces visible to the XPath processor. I've seen from here (http:

Re: http endpoint, unknown host and errorhandler

2012-04-18 Thread Bob Jolliffe
On 18 April 2012 13:34, Bob Jolliffe wrote: > I have a route which gets data using an http endpoint.  I am trying to > sensibly handle errors on the route.  Because its a remote server > there are many things which could go wrong in the network, so I > configured an errorhandler with

http endpoint, unknown host and errorhandler

2012-04-18 Thread Bob Jolliffe
I have a route which gets data using an http endpoint. I am trying to sensibly handle errors on the route. Because its a remote server there are many things which could go wrong in the network, so I configured an errorhandler with maximumRedeliveries="5". My problem is that if I test with a dumm

Re: newbie question re LifecycleManagementStrategy

2012-04-15 Thread Bob Jolliffe
On 15 April 2012 08:56, Claus Ibsen wrote: > On Sat, Apr 14, 2012 at 11:35 PM, Bob Jolliffe wrote: >> Hi Claus >> >> On 13 April 2012 16:12, Claus Ibsen wrote: >>> Hi >>> >>> What runtime do you use? Tomcat, Standalone, OSGi etc? >> >&g

Re: newbie question re LifecycleManagementStrategy

2012-04-14 Thread Bob Jolliffe
OK now that I know, is that the LifecycleStrategyManager does indeed work as expected (which is great), but it doesn't seem to be picked up during testing. I am guessing that the CamelTestSupport uses its own liefecycle manager. Is this true? > > On Fri, Apr 13, 2012 at 1:25 PM, Bob Jolliffe wrote: >&

Re: newbie question re LifecycleManagementStrategy

2012-04-13 Thread Bob Jolliffe
Thanks Babak for the suggestions. A few queries in line ... On 13 April 2012 14:00, Babak Vahdat wrote: > Hi > > You could look at [1] to see how easily you can add routes from XML, and > check the commit log at the bottom of that link for some examples. Yes I have seen this and have tried (suc

newbie question re LifecycleManagementStrategy

2012-04-13 Thread Bob Jolliffe
Hi I am struggling a bit with loading a custom LifecycleManagementStrategy. (Like some previous posters I am looking to load some xml routes on startup). I have created a class DHIS2LifecycleManagementStrategy which extends DefaultLifecycleManagementStrategy and overridden the onContextStart() m