Camel + Java DSL Fluent builder with real ActiveMQ Broker -


i'm trying implement wiretap java dsl fluent builders, gives following example code snippet.

from("direct:start") .to("log:foo") .wiretap("direct:tap") .to("mock:result"); 

this works if run mock example (e.g. camel-example-jms-file). if take sample code , try substitute real broker instance , queue replace mock objects fails error below.

from("tcp://localhost:61616") .to("ativemq:atsupdatequeue") .wiretap("activemq:fdmcapturequeue"); 

then fails

org.apache.camel.failedtocreaterouteexception: failed create route route2: route(route2)[[from[tcp://localhost:61616?queue=atsupdateque... because of failed resolve endpoint: tcp://localhost:61616?queue=atsupdatequeue due to: no component found scheme: tcp 

i've googled extensively , example i've found use virtual mock queues none seem illustrate working real broker , cannot find documentation on uri specification camel.

the important part of error message describes problem no component found scheme: tcp, becasuse there no "tcp" component camel, can use netty component if want interact tcp endpoint:

from("netty:tcp://localhost:61616") 

more info here - http://camel.apache.org/netty.html


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -