Hi Got over the error

Changed to camel-core 1.4.0

        <dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-core</artifactId>
    <version>1.4.0</version>
        </dependency>
        
and also changed the code to match the 1.4.0 syntax

        Namespaces ns = new Namespaces("p", 
"http://nsn.com/obs/mw/medfra/snmpbc";);
    
from("jbi:endpoint:http://servicemix.apache.org/test/inmc_filepoller/endpoint";)
        //.setBody(constant("<message>Hello world!</message>"))   
        .aggregator()
        .xpath("string(/p:snmp-getResponse/p:NE/@ipaddr)", ns)
                .batchSize(5)   

Now however I am getting some xpath error while the message comes in 

-- 
View this message in context: 
http://servicemix.396122.n5.nabble.com/servicemix-3-3-1-and-camel-core-2-3-0-tp1624310p1687494.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to