[ 
https://issues.apache.org/jira/browse/CAMEL-7513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-7513:
-------------------------------

    Fix Version/s: 2.14.0
                   2.13.2
                   2.12.4

> Using JPA entities as the argument in Aggregator using POJO
> -----------------------------------------------------------
>
>                 Key: CAMEL-7513
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7513
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core, eip
>    Affects Versions: 2.13.1
>         Environment: Linux Ubuntu 14.04
> 16Gb Memory
> Karaf 3.0.1
>            Reporter: Jonathan Vila
>            Assignee: Claus Ibsen
>             Fix For: 2.12.4, 2.13.2, 2.14.0
>
>
> I have an Aggregator POJO with this method :
> public Map<Hoteles, List<EventoPrecio>> agregaEventoPrecio(Map<Hoteles, 
> List<EventoPrecio>> lista, EventoPrecio evento) 
> With this route :
> from("timer://tesipro?fixedRate=true&period=60000").
> beanRef("uploadARIService", "getEventosPrecio").
> aggregate(constant(true), AggregationStrategies.bean(AgregadorEventos.class, 
> "agregaEventoPrecio")).
> completionSize(100).
> log("Ejecucion de Quartz ");
> And I get this error :
> Error occurred during starting Camel: CamelContext(249-camel-9) due Parameter 
> annotations at index 1 is not supported on method: public java.util.HashMap 
> com.tesipro.conectores.interfaces.tesiproconpush.camel.AgregadorEventos.agregaEventoPrecio(java.util.HashMap,com.tesipro.conectores.domain.EventoPrecio)
>           
> It seems the problem is that annotations are not supported in the aggregator 
> arguments nor in the argument class.
> https://github.com/apache/camel/blob/3f4f8e9ddcc8de32cca084927a10c5b3bceef7f9/camel-core/src/main/java/org/apache/camel/processor/aggregate/AggregationStrategyBeanInfo.java#L67



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to