Thanks for the information; The problem with the xpath was because of the
namespace;

Added the namespace part; Strangely however the batchsize option does not
seem to be working; It is not wating for 3 messages to come in ; but outputs
after each message; However the bacthTimeout is working; Now I have to see
if the completionpredicate works

Namespaces ns = new Namespaces("p", "http://nsn.com/obs/mw/medfra/snmpbc";);
        
        from("jbi:service:http://servicemix.apache.org/test/camel-receiver";)
        .aggregator(new MyAggregationStrategy())
        .xpath("string(/p:snmp-getResponse/p:NE/@ipaddr)",String.class, ns)
        //.batchSize(3)
          .batchTimeout(10000L)
          
//.to("jbi:endpoint:http://servicemix.apache.org/test/file_sender_getbulk/endpoint";);
 
// 3 
        .to("log:tutorial");  

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

Reply via email to