Hi Stefan,

the JBI Message and Exchange classes are provided by ServiceMix Specs, in the jbi-api-1.0 (and by transitivity in the servicemix-shared).

Could you try to add it in your POM dependencies ?

Regards
JB

On 10/01/2011 01:35 PM, Stefan Essl wrote:
Hi there,

I'm trying to get a Camel based Content Enricher to run within ServiceMix. On 
compilation with maven, I get the following error:

--- snip ---
[ERROR] /path/to/MyRouteBuilder.java:[16,10] cannot find symbol
[ERROR] symbol: class Message
[ERROR] Message in = exchange.getIn();
--- snip ---

MyRouteBuilder.java just looks like the one I found on the Camel website:

--- snip ---
public class MyRouteBuilder extends RouteBuilder {
     public void configure() {
         from("direct.start").process(new Processor() {
                public void process(Exchange exchange) {
                        Message in = exchange.getIn();
                        in.setProperty("myCamelContentEnricherExamplePropertyName", 
"myCamelContentEnricherExamplePropertyValue");
                }
                }).to("mock.result");
     }
}
--- snip ---

I guess I'm missing some dependencies but can't find out which ones. In my 
pom.xml I have:

--- snip ---
     <dependency>
       <groupId>org.apache.servicemix</groupId>
       <artifactId>servicemix-camel</artifactId>
       <version>2010.02</version>
     </dependency>
--- snip ---

I appreciate any hints!

Thanks,
Stefan

--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to