Re: Question: Why are 2 connections created?

2012-06-29 Thread camel_user
Thanks for your response Charles. I am using connectionFactories in the actual code, this is just an example to illustrate the problem. But the point is if I have the same setup in spring XML I do not get this problem. Only one connection is created. What is so different between having a Rout

Re: Question: Why are 2 connections created?

2012-06-29 Thread camel_user
Any ideas anyone? -- View this message in context: http://camel.465427.n5.nabble.com/Question-Why-are-2-connections-created-tp5715235p5715249.html Sent from the Camel - Users mailing list archive at Nabble.com.

Question: Why are 2 connections created?

2012-06-28 Thread camel_user
Hi, I have a simple problem, but I can't figure out how to solve it. I have the following piece of code (as an example) where I am using Qpid AMQP broker and configuring 2 endpoints from 2 topics to route to the same end point. public class TestApp { public static void main(String[] args)

Re: Camel dynamic properties placeholder substitution in Spring XML

2012-06-16 Thread camel_user
Thanks Claus, Looks like the only way to do this is vi a Java bean and use: String route=MessageFormat.format((String) props.get("dynamic.path"), "substitution"); And then set a property value to be used in Spring XML -- View this message in context: http://camel.465427.n5.nabble.com/Camel-dy

Camel dynamic properties placeholder substitution in Spring XML

2012-06-16 Thread camel_user
Hi, Is there a way in camel to substitute property placeholders in Spring XML? What I mean by this is something along the lines of: In my properties file I want to have: dynamic.path=direct:myvery{0}complexroutename and in spring XML however the {0} bit in the route is d

Re: camel ThreadHelper class failing to parse amqp topic x-bindings

2012-05-22 Thread camel_user
Thanks Claus, I'll try with 2.9.2. With regards to the thread naming pattern, don't see how this can help as the problem is not in the pattern but in the final if statement of ThreadHelper class if (answer.indexOf("$") > -1 || answer.indexOf("${") > -1 || *answer.indexOf("}")* > -1) { the bit

Re: camel ThreadHelper class failing to parse amqp topic x-bindings

2012-05-22 Thread camel_user
Any ideas anyone? -- View this message in context: http://camel.465427.n5.nabble.com/camel-ThreadHelper-class-failing-to-parse-amqp-topic-x-bindings-tp5713072p5713316.html Sent from the Camel - Users mailing list archive at Nabble.com.