I am trying to work out best approaches to sending a route to a remote CamelContext for execution. e.g. I have a client that generates the route definition and then needs to send it to a sever for execution.

I notice that you can apply a new route to an existing context:
http://camel.apache.org/loading-routes-from-xml-files.html
Q. Is spring XML the only format supported?
Q. Is there a way to generate the route using the Java object model and then generate the XML from that?

I also see the ManagedCamelContextMBean.addOrUpdateRoutesFromXml() method:
http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/api/management/mbean/ManagedCamelContextMBean.html#addOrUpdateRoutesFromXml(java.lang.String)
Q. Presumably this is the approach to use for remote deployment?

I also seem to recall some mechanism for deploying camel "jobs" to a server, but can't find this right now. Is there such a thing.

And in terms of scalability, I'm assuming that the CamelContext is quite a heavyweight object, so its better (in general terms) to deploy multiple routes to one context rather than end up with having a large number of contexts running each with one or two routes?

Sorry for all the questions :-(

Tim

Reply via email to