camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Pojo @Consumer Annotation
Date Sat, 13 Jun 2015 18:17:26 GMT
Hi

Does the SQL return any data at all?

You have set consumer.routeEmptyResultSet which could be that an empty
body is sent

On Sat, Jun 13, 2015 at 2:35 PM, kalber <Karlheinz.Alber@swslt.com> wrote:
> 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.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message