Hi,

When you create routes like:

<camelContext xmlns="http://camel.apache.org/schema/blueprint";>
  <route>
    <from uri="..."/><to uri="..."/>...
  </route>
  <route>
    <from uri="..."/><to uri="..."/>...
  </route>
</camelContext>

you have only one CamelContext containing two routes.

I think that the problem is just about the display of the camel:context-list command where it uses the route properties.

If you take a look on the MBeans, using jconsole for instance, you should see the right/expected values.

Let me take a look on the Camel commands. By the way, what's the Camel version that you use ?

Regards
JB

On 12/23/2014 05:16 PM, Billy Buzzard wrote:
Would someone please explain to me why multiple camel routes create multiple
camel context with the same name, but different start times?  I created a
camel route (file) and assigned it to camel context1 and then created a
second camel route (file) and again I assigned it to context1.  When I
perform a camel:context-list I see context1 listed twice with different
times.  I would have assumed that there would have been only one instance of
context1.  Why are two context1 instances created and is there a way to add
subsequent routes (independent route files) to only one camel context?

I'm using Apache-Karaf-3.01 and  Java 1.7.0_60.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Multiple-camel-routes-create-multiple-camel-context-with-the-same-name-but-different-start-times-tp4037394.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to