On Fri, Jun 25, 2010 at 4:05 PM, falvarez <falva...@ancap.com.uy> wrote: > > When i put de following code into my applicationcontext > <route> > <from uri="direct:exec" /> > <to uri="exec:c:/creo.bat" /> > </route> > and run de ActiveMQ de app jump to the following error > > ERROR | Context initialization failed > org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: > exec:///c:/creo.bat due to: No component found with scheme: exec > > i have two question: > why i have to write "direct:exec" and not "activemq=mytestqueue" > and > it's ok put "to uri" into de route?? >
The exec component is part of Camel 2.3.0 http://camel.apache.org/exec So you need to use Camel 2.3.0 and also you need to drop the camel-exec.jar in the lib folder for AMQ so it can pick it up. And + all the .jars which the camel-exec need at runtime. Eg all those with compile below: [INFO] Building Camel :: Exec [INFO] task-segment: [dependency:list] [INFO] ------------------------------------------------------------------------ [INFO] [dependency:list] [INFO] [INFO] The following files have been resolved: [INFO] aopalliance:aopalliance:jar:1.0:test [INFO] com.sun.xml.bind:jaxb-impl:jar:2.1.12:compile [INFO] commons-io:commons-io:jar:1.4:compile [INFO] commons-lang:commons-lang:jar:2.5:compile [INFO] commons-logging:commons-logging:jar:1.1.1:test [INFO] commons-logging:commons-logging-api:jar:1.1:compile [INFO] javax.activation:activation:jar:1.1:compile [INFO] javax.xml.bind:jaxb-api:jar:2.1:compile [INFO] javax.xml.stream:stax-api:jar:1.0-2:compile [INFO] junit:junit:jar:4.4:test [INFO] log4j:log4j:jar:1.2.16:test [INFO] org.apache.camel:camel-core:jar:2.4-SNAPSHOT:compile [INFO] org.apache.camel:camel-spring:jar:2.4-SNAPSHOT:test [INFO] org.apache.camel:camel-test:jar:2.4-SNAPSHOT:test [INFO] org.apache.commons:commons-exec:jar:1.0.1:compile [INFO] org.fusesource.commonman:commons-management:jar:1.0:compile [INFO] org.springframework:spring-aop:jar:2.5.6:test [INFO] org.springframework:spring-beans:jar:2.5.6:test [INFO] org.springframework:spring-context:jar:2.5.6:test [INFO] org.springframework:spring-core:jar:2.5.6:test [INFO] org.springframework:spring-test:jar:2.5.6:test [INFO] org.springframework:spring-tx:jar:2.5.6:test > > > ----- > Todos somos muy ignorantes. Lo que ocurre es que no todos ignoramos las > mismas cosas. > -- > View this message in context: > http://camel.465427.n5.nabble.com/ActiveMQ-Message-Endpoint-tp489670p511341.html > Sent from the Camel Development mailing list archive at Nabble.com. > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus