The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

alexcmak (1) [Avatar] Offline
#1
camel-exec is not covered in the Camel in Action book.

I tried to follow the example here http://camel.apache.org/exec.html to
try camel-exec.

from("direct:exec").to("exec:cmd?args=/C echo echoString")

There is no sign of the echoString after I ran.

All I get is the following:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further detail
s.

Where did the echo go? Did it go to the log?
I do see slf4-api-1.6.4.jar in my Maven Dependencies. How do I get around
this StaticLoggerBinder problem?

Thanks,
Alex Mak
davsclaus (413) [Avatar] Offline
#2
Re: Camel Exec
Hi

This is a forum for discussing the book and the content it covers. I have to suggest you to use the Camel forum/mailinglist for questions that is not specific to the book. As there is a lot more people there to help you. And also maybe people in the past having the same issue and talked about it before.

http://camel.apache.org/discussion-forums.html

There is also stackoverflow etc
http://stackoverflow.com/questions/tagged/apache-camel

And about your slf4j then you need to add the JAR to bridge to the logger of your choice. So if you use log4j, then you need to add

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j-version}</version>
</dependency>

<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j-version}</version>
</dependency>