Re: Get last file folder in header

2013-02-23 Thread Mark Lawson
Thank. Eventually I sorted it out: 1. Used some JS to get the first folder from the CamelFileName header (lounge/temperature) to get lounge 2. Used recipient list to make up the right uri for the topic dynamically. It isn't pretty, but it works and this way if I want to publish the data to a co

Re: camel-exec in camel blueprint: ExecBinding.* headers read?

2013-02-23 Thread Claus Ibsen
Hi You need to use the actual value from these constants ExecBinding.EXEC_COMMAND_EXECUTABLE Eg the value the constant has, is what you should type in the XML. On Fri, Feb 22, 2013 at 10:28 AM, MatteoRedaelli wrote: > With karaf 2.3 and camel-core:2.10.5.SNAPSHOT it seems camel-exec does no

Re: Issue with using multiple transaction managers of different types on two different routes in same camel-context.xml

2013-02-23 Thread Claus Ibsen
Hi You would need to use a transaction manager that supports both JMS and JDCB - eg being XA capable. (2 phase commit). Then configure your routes to use the same TX manager. On Fri, Feb 22, 2013 at 10:59 AM, Neeraj Mahajan wrote: > I have one camel route which is listening on an Activmq consu

RE: Why I cannot run multiple CamelContext simultaneously?

2013-02-23 Thread james.z.zhou
Hi DOLECEK: Thank you very much for your reply! I tired with your suggestion, I EXPLICITLY set unique ids for the camelContext, it is till NOT working. what I did is like this: http://camel.apache.org/schema/spring"; id="camelONE" > http://camel.apache.org/schema/spring"; id="camelTWO" > I sta

Re: Issue in a camel route having webservice and active-mq as endpoints

2013-02-23 Thread Claus Ibsen
Hi If you just want to send the message to the queue, and not do request/reply over JMS, then you need to use the InOnly MEP See details at http://camel.apache.org/event-message.html http://camel.apache.org/request-reply.html On Fri, Feb 22, 2013 at 9:52 AM, Sushmita chandra wrote: > I have

Re: Get last file folder in header

2013-02-23 Thread Claus Ibsen
On Fri, Feb 22, 2013 at 10:55 PM, Mark Lawson wrote: > Hi, > > I'm getting some temperature readings from a 1-wire system and putting them > out on an mqtt broker with Camel 2.10.3. The readings appear in the file > system as /mnt/1wire/study/temperature etc and I'm using this route: > > > > It wo

Re: Setting body attributes

2013-02-23 Thread Claus Ibsen
Hi You can use some of the expression languages which may support this, such as Groovy, SpEL, MVel etc. http://camel.apache.org/languages.html >From Camel 2.11 onwards the simple expression language (from camel-core) supports using types as well, using the new type function. http://camel.apache.o