RE: Error trying to get QUARKUS with Camel to read messages off of a AWS SQS queue

2021-08-24 Thread Matthee, Elmar [elm...@sun.ac.za]
Thanks Andrea. That worked like a charm. FINALLY have working code. Thank you SO much. Regard Elmar -Original Message- From: Andrea Cosentino Sent: Tuesday, 24 August 2021 15:49 To: users@camel.apache.org Subject: Re: Error trying to get QUARKUS with Camel to read messages off of a A

Re: Passing exchange header into JPA component query

2021-08-24 Thread Claus Ibsen
Hi You can try test this with 3.11.x as there has been a number of improvements and bug fixes in the endpoint-dsl and whatnot since this release. On Tue, Aug 24, 2021 at 6:39 PM Calle Andersson wrote: > > Hi, > > I use Camel 3.4 and have a question regarding the JPA component. > > I have the fol

Re: Unable to set Content-Type HTTP header to custom value

2021-08-24 Thread Claus Ibsen
On Tue, Aug 24, 2021 at 6:32 PM Calle Andersson wrote: > > I finally found a solution to my problem. It turned out 'contentTypeHeader' > could be set to 'false' in the following simple way: > restConfiguration().dataFormatProperty("contentTypeHeader", "false")... > > Now I am able to return respo

camel.component.activemq.broker-url doesnt seem to work with camel-activemq-starter:3.11.1

2021-08-24 Thread Ranabroto Ghosh
*#build.gradle* dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.apache.camel.springboot:camel-activemq-starter:3.11.1' implementation 'org.apache.camel.springboot:camel-spring-boot-starter:3.11.1' implementation 'org.apache.camel:ca

Passing exchange header into JPA component query

2021-08-24 Thread Calle Andersson
Hi, I use Camel 3.4 and have a question regarding the JPA component. I have the following query: SELECT c FROM " + MyEntity.class.getName() + " c WHERE c.dummy = :myParam I have been trying to get the following configuration to work (using Endpoint DSL): .toD(jpa(MyEntity.class.getName()).query

Re: Unable to set Content-Type HTTP header to custom value

2021-08-24 Thread Calle Andersson
I finally found a solution to my problem. It turned out 'contentTypeHeader' could be set to 'false' in the following simple way: restConfiguration().dataFormatProperty("contentTypeHeader", "false")... Now I am able to return responses with custom Content-Type values.

Re: How to programmatically reset an application property?

2021-08-24 Thread Vyacheslav Boyko
Look into Spring application properties locations https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.external-config.files Your users can specify properties in command line and external file. ___ Best regards, Vyacheslav. Ron Cecchini 24 августа 2021 г. 17:46:

Re: How to programmatically reset an application property?

2021-08-24 Thread Ron Cecchini
Thank you, Vyacheslav. I suppose it's not something I really need - although it would have been nice. I have to implement a way for users to change some of the default properties (after startup) and have them persist. I already implemented a class to specially handle these several properties

Re: Error trying to get QUARKUS with Camel to read messages off of a AWS SQS queue

2021-08-24 Thread Andrea Cosentino
Is the secret key containing special characters? If so you should use RAW() in the parameter. Il mar 24 ago 2021, 15:46 Matthee, Elmar [elm...@sun.ac.za] < elm...@sun.ac.za> ha scritto: > I am trying to write a small quarkus-camel-sql client to read messages off > of an existing queue. I have "ra

Error trying to get QUARKUS with Camel to read messages off of a AWS SQS queue

2021-08-24 Thread Matthee, Elmar [elm...@sun.ac.za]
I am trying to write a small quarkus-camel-sql client to read messages off of an existing queue. I have "raw" java code that it works fine with, but when I try to plug it into a camel route I get the following error and I'm not sure how/where to tweak. WARN [org.apa.cam.com.aws.sqs.Sqs2Consumer