Single threaded route execution

2023-10-24 Thread Reto Peter
Hi I got troubles, cause several threads are executing my route at the same time Now I want to make sure the route can only be executed by max. 1 thread at a time. But I couldn't find the definition how to do that. In older versions there was a .synchronized() Or a

Error with dynamic HTTPS call

2023-09-06 Thread Reto Peter
Hi I have an error when initiating a dynamic HTTPS call as follows: .toD("${header.URLString}") The URLString in this case is: https://apps.synesty.com/studio/api/flow/v1?id=J4M_SportXX_Verkaufsauftraege_abholen=Ubk15h-jeO50n-qQ31y9-a7ixv3=webproxy.dc.migros.ch=9099=GET It results in the

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 Reto Peter
a new endpoint/producer per SQL query combination. On Fri, Aug 11, 2023 at 4:39 PM Reto Peter wrote: > Hi Claus > > Thanks for fast response. > The call is to an SQL query: > result = producer.requestBodyAndHeader("direct:executeQuery", "", > "sqlquery

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,

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:

Route doesnt get started

2023-05-24 Thread Reto Peter
Hi I have a strange situation with a Route, which is not getting started when it is called by another Route. If the Route is not called by any other Route, it is getting started. Example: from("direct:checkClientSession") .routeId("checkClientSession") .to("log:myLogger?showAll=true")

How to clear the cache of MemoryIdempotentRepository

2023-04-19 Thread Reto Peter
Hi all I have a route, which checks for uniqueness of a certain value (find duplicates, and in case of duplicates, the route will throw an exception). That works fine so far. At the end of the route, I want to clear the cache, so next time the route gets executed, it shall start with an empty

PollEnrich with File from classpath

2023-03-01 Thread Reto Peter
Hi I have a simple issue with the following route: This works .pollEnrich("file://src/main/resources/supplier/xxx/article?fileName=ExcelFooter.txt=true=false") But I need to replace the classpath 'src/main/resources' folder, cause otherwise it doesn't work when its deployed. How to PollEnrich

Consume Files with specific dynamic content only

2023-02-21 Thread Reto Peter
Hi I want to read all files inside a directory, but only process files with a specific file content. The specific file content is dynamic. It is available inside the route as a Property, Header or Body The reason is, cause I have any files inside a directory, (for ex. Orders, Invoices) and the

RE: Splitter and Aggregater onCompletion

2022-11-08 Thread Reto Peter
:53 AM Claus Ibsen wrote: > Hi > > Ah sorry there is both an onCompletion EIP you can use in routes. > And then AggregationStrategy with overloaded/default methods for > various callbacks. > > > > On Tue, Nov 8, 2022 at 11:39 AM Reto Peter > wrote: > >> Hi

RE: Splitter and Aggregater onCompletion

2022-11-08 Thread Reto Peter
hange which has onCompletion. Its a bit difficult to explain, if you have the CiA2 book then take a look in the EIP chapter about the aggregator. On Tue, Nov 8, 2022 at 9:43 AM Reto Peter wrote: > Hi all > > I am using a Splitter and an Aggregator. > All of the output are written into the

Splitter and Aggregater onCompletion

2022-11-08 Thread Reto Peter
Hi all I am using a Splitter and an Aggregator. All of the output are written into the final result. But at the end of the Split, I wanted to add something more. This is where the 'onCompletion' method inside the Aggregator can be used (in my mind, cause that works for scenarios without a

RE: Predicates

2022-10-18 Thread Reto Peter
icates Hi systemConfig.isActive is a key name, so that only works if the property is really named like that. Its not doing any kind of method call - i.e. calling isActive() on the property with key , that the simple can do. On Tue, Oct 18, 2022 at 9:01 AM Reto Peter wrote: > Hi Clause > > So for a

RE: Predicates

2022-10-18 Thread Reto Peter
;) This is not simple language, but refers to a exchange property key with the given name. You need to use simple as predicate instead of exchangeProperty On Mon, Oct 17, 2022 at 7:38 PM Reto Peter wrote: > Hi > I have a simple question about the Predicates I got a sy

Predicates

2022-10-17 Thread Reto Peter
Hi I have a simple question about the Predicates I got a systemConfig object, which has 2 getters/setters. The systemConfig object is set as an exchange property. When I use a the simple function, that works! from("direct:testPredicates") .to("direct:getSystemConfig") .choice()

RE: Unable to locate Spring NamespaceHandler

2022-09-10 Thread Reto Peter
on to be able to read the parameters of the Login object? In my case it has public getters and setters and is annotated like this: @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "login", propOrder = { "userName", "password", "anotherId","another

CXF: Unable to locate Spring NamespaceHandler

2022-09-10 Thread Reto Peter
Hi I try to invoke my first Webservice with CXF inside Camel. Camel: 3.18.2, Java 15, SpringBoot 2.7.3 But got the following error: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://camel.apache.org/schema/cxf] My POM includes CXF as follows:

SFTP fails after upgrade to Camel 3.18.0

2022-07-13 Thread Reto Peter
Hi In Camel 3.16.0 we did successfully use the SFTP component like this: from("sftp://{{sftp.host}}:{{sftp.port}}/{{sftp.remotedir.from.customer}}; + "?username={{sftp.username}}" + "={{sftp.password}}" +

RE: DropBox expired_token

2022-04-11 Thread Reto Peter
t is short lived? Or do you know if its standard at DropBox to have tokens limited to 4 hours? If its so short lived, then we should look at a way for Camel to be able to automatic extend the token expiry, fetch a updated token, or what means DropBox supports. On Mon, Apr 11, 2022 at 8:14 AM

DropBox expired_token

2022-04-11 Thread Reto Peter
Hi I have successfully used the dropbox component for download, upload and delete files. You can see my implementation below, cause there was some important issues to solve before it worked Actually the only problem I have is the expired_token. The generated token (which I created in the app

RE: JdbcAggregationRepository is not permanently?

2022-04-08 Thread Reto Peter
orresponding headers in the aggregated Exchange. On 05/04/2022 10:12, Reto Peter wrote: > Hi > > Using the JdbcAggregationRepository I am trying to save the relation between > my incoming messages and the aggregate, as a 1-n relation. It is actually the > EDI Messages (Singl

JdbcAggregationRepository is not permanently?

2022-04-05 Thread Reto Peter
Hi Using the JdbcAggregationRepository I am trying to save the relation between my incoming messages and the aggregate, as a 1-n relation. It is actually the EDI Messages (Single message) into the EDI Interchange (Collection of messages). When I run the route, I see that the entries are

RE: CamelSqlGeneratedKeyRows is not updated

2022-03-23 Thread Reto Peter
re calling the 2nd insert .setHeader("CamelSqlRetrieveGeneratedKeys").simple("true") On Wed, Mar 23, 2022 at 9:59 AM Reto Peter wrote: > > Hi > > I have a route with 2 following SQL INSERT commands. > One inserts into table A (CamelSqlGeneratedKey

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

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: Camel fails to rename/delete the source file

2022-03-07 Thread Reto Peter
and read it into memory as a string and then give that to smooks. Then smooks dont have anything to worry about closing file handles / resources So try add before the processor .convertBodyTo(String.class) On Mon, Mar 7, 2022 at 10:40 AM Reto Peter wrote: > > Hi Claus > > Thanks

RE: Camel fails to rename/delete the source file

2022-03-07 Thread Reto Peter
. On Mon, Mar 7, 2022 at 9:14 AM Reto Peter wrote: > > I am trying to convert an EDIFACT file into an XML file. > > The conversion is done with smooks. The conversion works fine. The target > file is successfully converted and also written to the disk. > > The problem arises

Camel fails to rename/delete the source file

2022-03-07 Thread Reto Peter
I am trying to convert an EDIFACT file into an XML file. The conversion is done with smooks. The conversion works fine. The target file is successfully converted and also written to the disk. The problem arises after when Camel try to move the file to the .camel subdir. The source file is copied