RE: Issue with ProducerTemplate (processor not started)

2023-08-11 Thread Reto Peter
To: users@camel.apache.org Subject: Re: Issue with ProducerTemplate (processor not started) On Fri, Aug 11, 2023 at 5:08 PM Reto Peter wrote: > Hi Claus > > You mean I should just change my executeQuery route this way, from > dynamic to static? > > OLD > from("direct:

Re: Issue with ProducerTemplate (processor not started)

2023-08-11 Thread Claus Ibsen
u can also call it directly from template, and not have that route result = producer.requestBodyAndHeader("sql:SELECT", "", "CamelSqlQuery", query); > -Original Message- > From: Claus Ibsen > Sent: Friday, 11 August 2023 22:54 > To: users@camel.apache.org >

RE: Issue with ProducerTemplate (processor not started)

2023-08-11 Thread Reto Peter
ot; .to("sql:SELECT") Correct? But the bean class does still have the injected producerTemplate. The only change is the static call to the sql component -Original Message- From: Claus Ibsen Sent: Friday, 11 August 2023 22:54 To: users@camel.apache.org Subject: Re: Issue with P

Re: Issue with ProducerTemplate (processor not started)

2023-08-11 Thread Claus Ibsen
oks like this: > from("direct:executeQuery") > .routeId("Execute resolvement query") > .toD("sql:${header.sqlquery}") > ; > > -Original Message- > From: Claus Ibsen > Sent: Friday, 11 August 2023 22:29 > To: users@camel.apache.

RE: Issue with ProducerTemplate (processor not started)

2023-08-11 Thread Reto Peter
;) .toD("sql:${header.sqlquery}") ; -Original Message- From: Claus Ibsen Sent: Friday, 11 August 2023 22:29 To: users@camel.apache.org Subject: Re: Issue with ProducerTemplate (processor not started) What endpoint do you send to with the producer template On Fri, Aug 11,

Re: Issue with ProducerTemplate (processor not started)

2023-08-11 Thread Claus Ibsen
What endpoint do you send to with the producer template On Fri, Aug 11, 2023 at 4:15 PM Reto Peter wrote: > Hi > > I got an issue with the ProducerTemplate used inside a bean > The Bean class called Resolvement.class injects the ProducerTemplate as > follows: > > > @EndpointInject > > private

Issue with ProducerTemplate (processor not started)

2023-08-11 Thread Reto Peter
Hi I got an issue with the ProducerTemplate used inside a bean The Bean class called Resolvement.class injects the ProducerTemplate as follows: @EndpointInject private ProducerTemplate producer; inside the bean resolve() method, I do then use this producer like this: