Hi You can use the block option to allow some time to wait for the update to be complete.
On Tue, Nov 18, 2014 at 3:36 PM, Thomas Weinschenk <thomas.weinsch...@infoserve.endress.com> wrote: > Hi folks, > > I am using direct-vm to link different camel contexts (environment is Karaf > 2.3.3 and Camel 2.12.2). > Everything works fine until I update one of the routes acting as the > direct-vm cosumer. This leads to 'No consumers available ...' exceptions. > The problems seems to be the fact, that the consumer must be started before > the producer. But even when I try to restart the routes it might not work. > > Here is an example... > > Camel Context 1 > /<route id="route1"> > <from uri="file:test/in-vm"/> > <to uri="direct-vm:route2"/> > </route>/ > > Camel Context 2 > /<route id="route2"> > <from uri="direct-vm:route2"/> > <to uri="direct-vm:route3"/> > </route>/ > > Camel Context 3 > /<route id="route3"> > <from uri="direct-vm:route3"/> > <log message="booya" /> > </route>/ > > E.g. in Karaf, drop them in the deploy folder and it works. But as soon as > you change one of the files...your lost ;) > > Any idea how I can handle updates on direct-vm 'chained' context/routes? > > Regards, > Thomas > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/direct-vm-in-OSGI-how-to-handle-context-updates-tp5759259.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/