camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kalber <Karlheinz.Al...@swslt.com>
Subject Pojo @Consumer Annotation
Date Sat, 13 Jun 2015 12:35:18 GMT
I'm using this in a pojo :

@Consume(uri = "sql: select codaz, codbus, logmsg from bus.buslogger where
loglev = 'STS_CFG' and (logmsg like 'V60%' or logmsg like 'V65%') and
instr(logmsg,'UNREACHABLE') = 0 and instr(logmsg,'UNKNOWN') = 0 and
substring(scriptver,instr(scriptver,'=')+1) >= '2.2.0' and codaz != 0 and
codbus = 6037 order by daterecv asc , hourrecv asc
?dataSource=#dataSource.nagios&consumer.useIterator=false&consumer.routeEmptyResultSet=true&outputClass=it.sad.batch.eam.transfer.obliRelease.ObliReleaseResult&consumer.bridgeErrorHandler=true")
public void process(Object body) {
     System.out.println("hello");
}
But body object in process method is null.
Do i something wrong or misunderstood the use of @Consumer ?

thanks
Karlheinz



-----
kh
--
View this message in context: http://camel.465427.n5.nabble.com/Pojo-Consumer-Annotation-tp5768168.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message