HeaderFilterStrategy

2021-12-06 Thread Rafael Sainz
Hello,

I need to modify HttpHeaderfilterStrategy by removing field date filter because 
I use it as header in my camel route.

[cid:image001.png@01D7EB36.EAB104F0]

So, I have initiate a bean to return a new filter strategy...


@Configuration

public class AppConfig{





  @Bean

  public DefaultHeaderFilterStrategy filterStrat2() {

  DefaultHeaderFilterStrategy filterStrat2 = new 
DefaultHeaderFilterStrategy();

  filterStrat2.getOutFilter().remove("date");

  return filterStrat2;

  }

}

That I have configured my https endpoint and add to headerFilterStrategy …

.to("https://{{cevaldom.status-request}}?throwExceptionOnFailure=false&headerFilterStrategy=#filterStra2";)

But the filters still applies and ${headers}" log does not return the expected 
“date” header ..

Do you have a Snippets to help me configure this properly in camel?

Thanks


Re: idempotentConsumer Exception

2021-06-10 Thread Rafael Sainz
Good lord! Thanks for answering me Andrea.

De: Andrea Cosentino 
Fecha: jueves, 10 de junio de 2021, 22:29
Para: users@camel.apache.org 
Asunto: Re: idempotentConsumer Exception
It is Concatenada, not Concatenado

Il gio 10 giu 2021, 22:13 Rafael Sainz  ha
scritto:

> Hello Camel team,
>
>
> I am struggling with idempotentConsumer
>
>
>
> .idempotentConsumer(header("Concatenado"), idempotentPosturasRepo)
>
>
>
> It returns
>
>
> org.apache.camel.processor.idempotent.NoMessageIdException: No message ID
> could be found using expression: ${headers.Concatenado} on message
> exchange: Exchange[]
>
>
> even though the header has been created
>
> {CamelHttpResponseCode=200, CamelHttpResponseText=OK, Codrueda=["MINO"],
> Concatenada=41205Vencida, Content-Length=43380,
> Content-Type=application/json, Date=Thu, 10 Jun 2021 19:43:15 GMT,
> Server=waitress}
>
> Can you help me please?
>
> Thanks!
>
> Rafael
>


idempotentConsumer Exception

2021-06-10 Thread Rafael Sainz
Hello Camel team,


I am struggling with idempotentConsumer



.idempotentConsumer(header("Concatenado"), idempotentPosturasRepo)



It returns


org.apache.camel.processor.idempotent.NoMessageIdException: No message ID could 
be found using expression: ${headers.Concatenado} on message exchange: 
Exchange[]


even though the header has been created

{CamelHttpResponseCode=200, CamelHttpResponseText=OK, Codrueda=["MINO"], 
Concatenada=41205Vencida, Content-Length=43380, Content-Type=application/json, 
Date=Thu, 10 Jun 2021 19:43:15 GMT, Server=waitress}

Can you help me please?

Thanks!

Rafael


Quickfix - Add tag to Logon message

2021-02-28 Thread Rafael Sainz
Hello,

Does anyone know whether it is possible to add a tag in the logon message with 
Apache Camel Quickfix component?.
In concrete, the integration case that I am working requires to add 
DefaultCstmApplVerID (tag 1408), that is a new field required in FIX 5.0.

Thank you,

Rafael



Spring Main unavailable in 3.2

2020-04-17 Thread Rafael Sainz
Hello,

While I was upgrading from Camel 2.x to 3.2. I realized that 
org.apache.camel.spring.Main class is no longer available in Camel 3.2 though 
it is within 3.1

Is it going to be supported?

Thanks