Jonathan Vila created CAMEL-7513:
------------------------------------

             Summary: 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
    Affects Versions: 2.13.1
         Environment: Linux Ubuntu 14.04
16Gb Memory
Karaf 3.0.1
            Reporter: Jonathan Vila


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