The Camel VM component is where you are looking for: http://camel.apache.org/vm.html
Best, Christian On Wed, Jan 11, 2012 at 10:54 PM, MichaelAtSAG <mebevilac...@gmail.com>wrote: > Two Spring XML Context files: > > Spring 1: > <camelContext xmlns="http://camel.apache.org/schema/spring" > xmlns:evt="http://namespaces.softwareag.com/EDA/Event"> > <route id="Emit_EntryPoint"> > <from uri="file:src/data?noop=true" /> > <to uri="seda:Emit_InvLow" /> > </route> > </camelContext> > > Spring 2: > <camelContext xmlns="http://camel.apache.org/schema/spring"> > > <route id="Emit_InvLow"> > <from uri="direct:Emit_InvLow" /> > <log message="///Emitting PartInventoryLow" /> > <to uri="jmsEDA:topic:InvMgmt" /> > <log message="///Published to PartInventoryLow JMS > " /> > </route> > </camelContext> > > Launch code: > import org.apache.camel.spring.Main; > > /** > * Launch ProductXYZ > * > * @version > */ > public class ProductXYZ { > /** > * @param args > * @throws Exception > */ > public static void main(String[] args) throws Exception { > new Main().run(args); > } > > Error: > org.apache.camel.CamelExchangeException: No consumers available on > endpoint: > Endpoint[direct://Emit_InvLow]. Exchange[PartInventoryLow.xml] > > I believe this is due to the use of two camel context files. I then changed > the endpoint to use seda instead of direct, yet nothing happens when I do > this. > > How do I connect the routes together? > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/No-consumers-available-on-endpoint-exception-tp5138202p5138202.html > Sent from the Camel - Users mailing list archive at Nabble.com. >