RE: CamelSqlGeneratedKeyRows is not updated

2022-03-23 Thread Reto Peter
Hi I tried both with no success a) it works as normal, I get the keys back if I only run the 2nd select b) I set the Header before first statement and before second statement but no change. -Original Message- From: Claus Ibsen Sent: Thursday, March 24, 2022 3:51 AM To:

Re: CamelSqlGeneratedKeyRows is not updated

2022-03-23 Thread Claus Ibsen
Hi a) Can you try with just 1 sql insert, .to("sql:INSERT INTO message_out(identifier) VALUES (1)") It may be that this SQL does not return any generated keys b) Can you try to set the header to get keys before calling the 2nd insert

Re: CamelSqlGeneratedKeyRows is not updated

2022-03-23 Thread Jeremy Ross
FYI, I think I worked around this by removing the CamelSqlGeneratedKeyRows header prior to a sql call. On Wed, Mar 23, 2022 at 4:42 AM Reto Peter wrote: > Ya sorry. > Camel version: 3.15.0 > > On 23 March 2022 17:03:19 Andrea Cosentino wrote: > > Report the camel version, please > > Il mer 23

Re: Webhook for listening Integration CRD changes

2022-03-23 Thread Antonin Stefanutti
Hi, A webhook is generally implemented to hook into the k8s admission control. To react to changes, watch requests are usually enough: https://kubernetes.io/docs/reference/using-api/api-concepts/#efficient-detection-of-changes On 23 Mar 2022, at 14:47, Roberto Camelk

Webhook for listening Integration CRD changes

2022-03-23 Thread Roberto Camelk
There is a way to create a webhook to listen for Integration CRD changes? I was looking this https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/ But I do know if this is possible I want to be notified when an Integration phase changes to "Running" or

"When" the kubernetes service is exposed/created

2022-03-23 Thread Roberto Camelk
At what moment the kubernetes service is exposed/created for an integration that has an REST exposed? I need to discover this service to get the node-port and persist it on my "api gateway" to be able to proxy the requests from my gateway to the correct integration. I was thinking about a "loop"

Re: CamelSqlGeneratedKeyRows is not updated

2022-03-23 Thread Reto Peter
Ya sorry. Camel version: 3.15.0 On 23 March 2022 17:03:19 Andrea Cosentino wrote: Report the camel version, please Il mer 23 mar 2022, 09:59 Reto Peter ha scritto: Hi I have a route with 2 following SQL INSERT commands. One inserts into table A (CamelSqlGeneratedKeyRows is correct) Next

Re: CamelSqlGeneratedKeyRows is not updated

2022-03-23 Thread Andrea Cosentino
Report the camel version, please Il mer 23 mar 2022, 09:59 Reto Peter ha scritto: > Hi > > I have a route with 2 following SQL INSERT commands. > One inserts into table A (CamelSqlGeneratedKeyRows is correct) > Next inserts into table B (CamelSqlGeneratedKeyRows is wrong, the value is > not

CamelSqlGeneratedKeyRows is not updated

2022-03-23 Thread Reto Peter
Hi I have a route with 2 following SQL INSERT commands. One inserts into table A (CamelSqlGeneratedKeyRows is correct) Next inserts into table B (CamelSqlGeneratedKeyRows is wrong, the value is not updated, it remains the same) I am using mySQL and Java 11 My simplified route:

Re: Issue with Camel SFTP localworkdirectory with multicast

2022-03-23 Thread thomas wong
Hi, Yes, both endpoints are FILE. I set the parameter for renameUsingCopy=true but I still encounter same error. And I also upgraded camel to 3.11.6. FYI - the error will disappear once I removed the localworkdirectory parameter in FROM(sftp). Regards, Thomas

Re: Issue with Camel SFTP localworkdirectory with multicast

2022-03-23 Thread Claus Ibsen
Hi Are destination1 and destination2 file endpoints? If they are then camel will optimize and rename the local file and so when destination2 is executed then the file has been renamed and is not in the local directory anymore. If you really want to do this multicast and 2 file destinations then