Currently I am using ActiveMQ as message queue. 
The camel which I use for routing messages. 
Also used to efficiently execute the sentence exec services to the arrival
of a message to the queue. 
The problem is: I have a listener from a queue and it does not work on
arrival of messages to the queue. When I lift the listener, it connects to
the server, is included as an active consumer, but does not execute the
method OnMessage to the arrival of a message to the queue. 

What is different is that you add the following lib ActiveMQ. JAR: 
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/Listener-ActiveMQ-Camel-Exec-tp1843417p1843417.html
Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to