Svar: Re: Svar: Re: Unable to get Openapi/swagger in Camel Quarkus

2024-04-12 Thread Mikael Andersson Wigander
java.html#extensions-openapi-java-usage > > Alternatively, the OpenAPI spec can be resolved as per normal under > /openapi.json or /openapi.yaml: > > https://camel.apache.org/components/4.4.x/others/openapi-java.html#_json_or_yaml > > -- > James > > On Wed, 10 Apr

Svar: Re: Unable to get Openapi/swagger in Camel Quarkus

2024-04-10 Thread Mikael Andersson Wigander
Hi and thanks but the result is the same /M Den 9 apr. 2024 kl 15:53, Claudio Miranda <[clau...@claudius.com.br](mailto:Den 9 apr. 2024 kl 15:53, Claudio Miranda < skrev: > Em ter., 9 de abr. de 2024 às 13:50, Mikael Andersson Wigander > escreveu: >> >> I have a Q

Unable to get Openapi/swagger in Camel Quarkus

2024-04-09 Thread Mikael Andersson Wigander
I have a Quarkus Camel application which exposes a REST interface. I have followed the process of adding the dependencies and created the definition but I can not get anything in the Quarkus Swagger UI. Dependencies: quarkus-smallrye-openapi quarkus-camel-openapi-java camel-quarkus-platform-http

Svar: Re: Svar: Re: Issue with unit or work and toV endpoint when Excetion thrown

2024-03-26 Thread Mikael Andersson Wigander
Sorry cry wolf  My bad /M Den 26 mars 2024 kl 10:46, Mikael Andersson Wigander <[mikael.andersson.wigan...@pm.me.INVALID](mailto:Den 26 mars 2024 kl 10:46, Mikael Andersson Wigander < skrev: > Hi and thanks for the fix. > > However there are some additional issues. &

Svar: Re: Svar: Re: Issue with unit or work and toV endpoint when Excetion thrown

2024-03-26 Thread Mikael Andersson Wigander
or occurred)" > }% > > On Sat, Mar 23, 2024 at 9:15 AM Claus Ibsen wrote: > >> Hi >> >> https://issues.apache.org/jira/browse/CAMEL-20607 >> >> On Thu, Mar 21, 2024 at 1:03 PM Mikael Andersson Wigander >> wrote: >> >>> >>>

Re: Svar: Re: Issue with unit or work and toV endpoint when Excetion thrown

2024-03-21 Thread Mikael Andersson Wigander
Hi As simple as I get do it… https://github.com/hakuseki/demo-Camel-UoW /M On Thursday, March 21st, 2024 at 11:09, Claus Ibsen wrote: > Hi > > Yeah if you keep it plain camel and not fancy spring boot stuff > > On Thu, Mar 21, 2024 at 11:06 AM Mikael And

Svar: Re: Issue with unit or work and toV endpoint when Excetion thrown

2024-03-21 Thread Mikael Andersson Wigander
Spring boot OK? /M Den 21 mars 2024 kl 10:51, Claus Ibsen <[claus.ib...@gmail.com](mailto:Den 21 mars 2024 kl 10:51, Claus Ibsen < skrev: > Hi > > Can you make something that is pure camel (not quarkus) that will help > > On Thu, Mar 21, 2024 at 7:56 AM Mikael Anders

Re: Issue with unit or work and toV endpoint when Excetion thrown

2024-03-21 Thread Mikael Andersson Wigander
k and better understand > what is happening? > > > On Mon, Mar 18, 2024 at 10:04 AM Mikael Andersson Wigander > mikael.andersson.wigan...@pm.me.invalid wrote: > > > Hi > > > > I have experienced a weird behavior in Camel 4.4.0 in Quarkus where the > > Exception

Svar: Camel Quarkus native missing classes

2024-03-20 Thread Mikael Andersson Wigander
I did what’s stated in the documentation and it is working fine. Just curious why it suddenly tipped over and broke… /M Den 20 mars 2024 kl 13:03, Mikael Andersson Wigander <[mikael.andersson.wigan...@pm.me.INVALID](mailto:Den 20 mars 2024 kl 13:03, Mikael Andersson Wigander < skrev

Camel Quarkus native missing classes

2024-03-20 Thread Mikael Andersson Wigander
I have an application that is built and run as native. It has been running fine for a while but then I make to me a small insignificant change it breaks. It throws a runtime exception complaining ClassNotFoundException. This class has been there all time and the change I made was made

Issue with unit or work and toV endpoint when Excetion thrown

2024-03-18 Thread Mikael Andersson Wigander
Hi I have experienced a weird behavior in Camel 4.4.0 in Quarkus where the Exception handling is not executing as expected when using a toV(). In my code sample below everything starts with a rest call. If this rest call finish without errors then the original message should be returned. If an

Svar: Re: Svar: How to get headers within Variables returning?

2024-03-18 Thread Mikael Andersson Wigander
> Sent from My Gmail Account > > On Thu, Mar 14, 2024 at 6:38 AM Mikael Andersson Wigander > wrote: > >> >> Hi >> >> Never mind, I found it out. >> >> simple(“${variable[header:token.Authorization]}”) >> >> >> >>

Svar: How to get headers within Variables returning?

2024-03-14 Thread Mikael Andersson Wigander
Hi Never mind, I found it out. simple(“${variable[header:token.Authorization]}”) /M Den 14 mars 2024 kl 11:30, Mikael Andersson Wigander <[mikael.andersson.wigan...@pm.me.INVALID](mailto:Den 14 mars 2024 kl 11:30, Mikael Andersson Wigander < skrev: > Hi > > I’m using the

How to get headers within Variables returning?

2024-03-14 Thread Mikael Andersson Wigander
Hi I’m using the new 4.4 feature with Variables and having issues with headers created within the variables. I use this feature for getting an access_token and I store it as a header in the call to be used later. How can I retrieve it in subsequent executions returning from my toV() call

Svar: Re: What happened to HTTP component OAuth support?

2024-03-01 Thread Mikael Andersson Wigander
client v4 -> v5 > upgrade that causes major refactor. > And as such this feature may need to be implement again. If so you are > welcome to help. Create a JIRA and see how to do that. > > On Mon, Feb 19, 2024 at 12:22 PM Mikael Andersson Wigander > wrote: > >> Hi >

What happened to HTTP component OAuth support?

2024-02-19 Thread Mikael Andersson Wigander
Hi As of release 4.2 there’s support for OAuth in the http component but nowhere to be found on how to use it. CAMEL-18637 all I can find is a OAuth2ClientConfigurer class. /M

Re: Using reactive datasource in Camel Quarkus?

2023-03-17 Thread Mikael Andersson Wigander
gt; https://github.com/jamesnetherton/sql-reactive-imperitive > > On Fri, 17 Mar 2023 at 09:50, Mikael Andersson Wigander > mikael.andersson.wigan...@pm.me.invalid wrote: > > > Well it seems impossible to have both JDBC and Reactive datasources in > > Quarkus simultane

Svar: Re: Using reactive datasource in Camel Quarkus?

2023-03-17 Thread Mikael Andersson Wigander
I took another look and it seems you made it working. Thank you. I’ll compare it to mine and see what is wrong in my code. /M Den 17 mars 2023 kl 15:35, Mikael Andersson Wigander skrev: > Hi > > Almost. > > I’m trying to use either sql or jdbc component > > I thin

Svar: Re: Using reactive datasource in Camel Quarkus?

2023-03-17 Thread Mikael Andersson Wigander
t 09:50, Mikael Andersson Wigander > wrote: > >> Well it seems impossible to have both JDBC and Reactive datasources in >> Quarkus simultaneously when using Camel, when both sources connect to the >> same database. >> >> Even with different DS in the pro

Re: Using reactive datasource in Camel Quarkus?

2023-03-17 Thread Mikael Andersson Wigander
datasource configuration the > same as the reactive DS config and add the JDBC specific bits like > quarkus.datasource.jdbc.url etc. > > -- > James > > On Wed, 15 Mar 2023 at 14:50, Mikael Andersson Wigander > mikael.andersson.wigan...@pm.me.invalid wrote: > > >

Using reactive datasource in Camel Quarkus?

2023-03-15 Thread Mikael Andersson Wigander
I have an application where I'd like to combine Quarkus Reactive Database client and also using Camel SQL component to query same PostgreSQL database. I can't find any documentation where it states how I should define my datasource(s). Normally with only JDBC it works using the "default"

Re: JSONPath use own ObjectMapper instead of global

2022-04-28 Thread Mikael Andersson Wigander
ess(Exchange exchange) { > Object body = exchange.getIn().getBody(); > if (body instanceof Map) { > for (Object value : ((Map)body).values()) { > if (value instanceof Double) { > String d = String.format("%12.2f", value); > ... > Is that helpful? > > Karen Lease >

Re: Bindy to ignore empty lines?

2022-04-27 Thread Mikael Andersson Wigander
nevermind /M --- Original Message --- On Wednesday, April 27th, 2022 at 13:08, Mikael Andersson Wigander wrote: > Hi > > How can one make Bindy understand to ignore a file with empty lines? > I can't find any options for it. > > In empty I mean a csv file with

Bindy to ignore empty lines?

2022-04-27 Thread Mikael Andersson Wigander
Hi How can one make Bindy understand to ignore a file with empty lines? I can't find any options for it. In empty I mean a csv file with two or more CR/LF at the end of the file… A,B,C,D E,F,G,H /M

Re: JSONPath use own ObjectMapper instead of global

2022-04-12 Thread Mikael Andersson Wigander
; Ah okay that sounds like a good improvement. You are welcome to create a JIRA. > > On Wed, Apr 13, 2022 at 6:35 AM Mikael Andersson Wigander > mikael.andersson.wigan...@pm.me.invalid wrote: > > > Hi > > > > I have discovered that when using JSONPath in a route, t

JSONPath use own ObjectMapper instead of global

2022-04-12 Thread Mikael Andersson Wigander
Hi I have discovered that when using JSONPath in a route, the implementation does not use any ObjectMapper registered, it uses it's own. JacksonMappingProvider.class public class JacksonMappingProvider implements MappingProvider { private final

Sv: Re: Re: How to make a bean thread safe?

2021-11-12 Thread Mikael Andersson Wigander
HiI have created a ticket for thishttps://issues.apache.org/jira/projects/CAMEL/issues/CAMEL-17181?filter=reportedbyme/M On fre, nov. 12, 2021 at 09:37, Claus Ibsen <claus.ib...@gmail.com> skrev: On Fri, Nov 12, 2021 at 8:03 AM Mikael Andersson Wigander wrote:> Ok thanks.>>

Sv: Re: How to make a bean thread safe?

2021-11-11 Thread Mikael Andersson Wigander
create the XPathExpression for the next message, and then you have more CPU usage and also more pressure on the GCto de-allocate those 10 XPathExpression per message.On Mon, Nov 8, 2021 at 8:12 PM Mikael Andersson Wigander wrote:HiWith the risk of being seen as a n00b (again)…We are processing large XML files

Re: XPathBuilder never clears pool

2021-11-10 Thread Mikael Andersson Wigander
t; .2 cents: try to see if you can reproduce it w/ a plain Camel Main. I have > just tried w/ it and you can turn the preCompile flag on and off with it. > > It would also be simpler to debug a reproducer this way, IMHO. > > Kind regards > > On Tue, Nov 9, 2021 at 5:04 PM Mikael A

Re: XPathBuilder never clears pool

2021-11-09 Thread Mikael Andersson Wigander
h-language.html#_spring_boot_auto_configuration > > On Tue, Nov 9, 2021 at 3:54 PM Mikael Andersson Wigander > > mikael.andersson.wigan...@pm.me.invalid wrote: > > > Tried > > > > mvn spring-boot:run -Dcamel.language.xpath.pre-compile=false > > >

Re: XPathBuilder never clears pool

2021-11-09 Thread Mikael Andersson Wigander
the equivalent, using the launcher/script/runtime/etc for your > > application. > > Kind regards > > On Tue, Nov 9, 2021 at 11:42 AM Mikael Andersson Wigander < > > mikael.andersson.wigan...@pm.me> wrote: > > > Hi, thanks. creating a ticket now > > >

Re: XPathBuilder never clears pool

2021-11-09 Thread Mikael Andersson Wigander
Rodolfo Piske wrote: > Unless you get an answer correcting me ... I'd say it looks like a bug. > > If you could create a ticket on Jira with a reproducer, I think we could take > a closer look. > > Kind regards > > On Tue, Nov 9, 2021 at 9:01 AM Mikael Andersson Wig

XPathBuilder never clears pool

2021-11-09 Thread Mikael Andersson Wigander
Hi My last question came to this conclusion and therefor I create a new thread here. How and where should the XPathBuilder clear the pool it uses when adding @Xpath() expressions? There's a overridden method doStop() in it but I can't see where/when it is called. I tried to put a breakpoint

RE: How to make a bean thread safe?

2021-11-08 Thread Mikael Andersson Wigander
, afaik That's the leak, imo /M ‐‐‐ Original Message ‐‐‐ On Tuesday, November 9th, 2021 at 07:15, Mikael Andersson Wigander wrote: > Hi > > I see what you mean but still there must be a leak somewhere… > > The payload is small > > > > > > DE000C3JALS0 >

RE: How to make a bean thread safe?

2021-11-08 Thread Mikael Andersson Wigander
XPath > expressions on it inside the bean (then you will only parse your document > once and have only one DOM tree). > > Best regards > > Stephan > > From: Mikael Andersson Wigander > Sent: Monday, 8 November 2021 20:30 > To: Camel Mail List > Subject: Sv: How to m

Sv: How to make a bean thread safe?

2021-11-08 Thread Mikael Andersson Wigander
There’s a typo in the code sample. The processing SHOULD be parallel, not sequential as in the snippet. /M På mån, nov. 8, 2021 vid 20:11, Mikael Andersson Wigander <mikael.andersson.wigan...@pm.me.INVALID> skrev: HiWith the risk of being seen as a n00b (again)…We are processing lar

How to make a bean thread safe?

2021-11-08 Thread Mikael Andersson Wigander
Hi With the risk of being seen as a n00b (again)… We are processing large XML files (0.5GB/~500.000 records). To process them we use stream caching, spit, parallel processing, xpath and a bean. We get a lot of OutOfMemoryExceptions and after analysing we see that the call to the bean method

Re: Sv: File component process files multithreaded

2021-10-26 Thread Mikael Andersson Wigander
.synchronous I'm an idiot, sorry for wasting bandwidth… RTFM /M ‐‐‐ Original Message ‐‐‐ On Tuesday, October 26th, 2021 at 19:12, Mikael Andersson Wigander wrote: > Adding the readlock option reveals a camelLock file so I assume it processes > the file asynchronous. > >

Sv: File component process files multithreaded

2021-10-26 Thread Mikael Andersson Wigander
Adding the readlock option reveals a camelLock file so I assume it processes the file asynchronous. Any takers on this?/M På mån, okt. 25, 2021 vid 11:08, Mikael Andersson Wigander <mikael.andersson.wigan...@pm.me.INVALID> skrev: HiHas there been a strategic change to the way th

File component process files multithreaded

2021-10-25 Thread Mikael Andersson Wigander
Hi Has there been a strategic change to the way the File component processes multiple files in one directory in version 3? It seems that it process them in parallel which in our situation creates a memory issue. Code: from(file("{{esma.full.path}}") .delete(true) .sortBy("${file:name}"))

mkdirs() failed for

2021-10-24 Thread Mikael Andersson Wigander
Hi Running a Spring Boot 2.5.5 with Camel 3.12.0 using File component and StreamCaching, prints this in the logs: org.apache.camel.util.FileUtil : mkdirs() failed for /var/folders/_0/3zz8nd611hd0y6cryrnkkmhcgn/T/camel/camel-tmp-93A1B6915DD4B0F- Using 3.11.3 it doesn't I'm

Re: No suitable setter for property, dataformat.csv

2021-09-20 Thread Mikael Andersson Wigander
Can you try a plain unit test / standalone with spring boot or > > > > quarkus. > > > > On Mon, Sep 20, 2021 at 11:11 AM Mikael Andersson Wigander > > > > mikael.andersson.wigan...@pm.me.invalid wrote: > > > > > Hi > > > > > > Tha

Re: No suitable setter for property, dataformat.csv

2021-09-20 Thread Mikael Andersson Wigander
, September 20th, 2021 at 06:38, Claus Ibsen wrote: > Hi > > > in.setHeader("ColumnNames", new ArrayList<>(headers)); > > Store that header as a single string with comma separated values, > > On Sun, Sep 19, 2021 at 5:37 PM Mikael Andersson Wigander > >

No suitable setter for property, dataformat.csv

2021-09-19 Thread Mikael Andersson Wigander
HI I'm converting a route from Camel 2.25.0 Spring Boot to latest Quarkus. The route parses a CSV file, splits it and use either headers if exist or creates headers if not, sends it to a bean for further processing ending up as amessage in a JMS. This was working fine but now when I run it in

Sv: Re: Reading a directory on schedule

2021-08-10 Thread Mikael Andersson Wigander
e with insights on this?>> /M>> ‐‐‐ Original Message ‐‐‐> On Friday, July 30th, 2021 at 12:54, Mikael Andersson Wigander> wrote:>> > HI, sorry for a stupid question but I can't get this to work> > properly…> >> > I thought by adding a scheduler to

Re: Reading a directory on schedule

2021-08-10 Thread Mikael Andersson Wigander
Hi Noone with insights on this? /M ‐‐‐ Original Message ‐‐‐ On Friday, July 30th, 2021 at 12:54, Mikael Andersson Wigander wrote: > HI, sorry for a stupid question but I can't get this to work properly… > > I thought by adding a scheduler to a file component it will

Reading a directory on schedule

2021-07-30 Thread Mikael Andersson Wigander
HI, sorry for a stupid question but I can't get this to work properly… I thought by adding a scheduler to a file component it will only poll for files on schedule but apparently it executes as soon a file is present… What am I doing wrong here or have I understood this completely wrong?

Camel file component root path in Quarkus?

2021-06-22 Thread Mikael Andersson Wigander
Hi When developing and running/debugging a Spring Boot Camel Java application the file components root seems to be default to the project root (in IDEA anyhow). When converting to a Quarkus version the same path is now not applicable. Where is the "default root" for the file component when

Re: File filter bean not working in Camel 3

2021-05-21 Thread Mikael Andersson Wigander
b repo. > > They show how to use SB with Camel 3. That can possible help you to > > find the solution. > > On Fri, May 21, 2021 at 11:47 AM Mikael Andersson Wigander > > mikael.andersson.wigan...@pm.me.invalid wrote: > > > OK, interesting thought. > > > &g

Sv: Re: File filter bean not working in Camel 3

2021-05-21 Thread Mikael Andersson Wigander
a link to the github repo.They show how to use SB with Camel 3. That can possible help you tofind the solution.On Fri, May 21, 2021 at 11:47 AM Mikael Andersson Wigander wrote:>> OK, interesting thought.>> All my classes are within the same base.> @Configuration is in Config.class>> If thi

Re: File filter bean not working in Camel 3

2021-05-21 Thread Mikael Andersson Wigander
OK, interesting thought. All my classes are within the same base. @Configuration is in Config.class If this structure no longer works with Spring Boot, what to do then? Should I put all my @Configuration in my Main class instead? /M ‐‐‐ Original Message ‐‐‐ On Friday, May 21st, 2021

Re: File filter bean not working in Camel 3

2021-05-21 Thread Mikael Andersson Wigander
omitted /M ‐‐‐ Original Message ‐‐‐ On Friday, May 21st, 2021 at 07:18, Claus Ibsen wrote: > Hi > > Crashes at startup. Can you tell what kind of crash, and do you see > > any exceptions or something? > > On Wed, May 19, 2021 at 3:13 PM Mikael Andersson Wigander >

Re: File filter bean not working in Camel 3

2021-05-19 Thread Mikael Andersson Wigander
=true") .completionFromBatchConsumer() .eagerCheckCompletion() .to("file:mifir/archive") .log( "Monthly housekeeping is done! Archived ${property.CamelAggregatedSize} files and saved ${header.HouseKeepingSize} bytes") .end(); } Missed information about JVM: 1.8 is used

File filter bean not working in Camel 3

2021-05-19 Thread Mikael Andersson Wigander
Hi In Camel 2.x we have a file component with a filter bean and now migrating to Camel 3 the bean is not found and program crashes upon start. The migration has been only with the route converting to use EndpointRoutebuilder, the config, bean and class is unchanged. Config @Bean public static

Re: How to preserve paths when using ZipAggregation?

2021-03-29 Thread Mikael Andersson Wigander
Answering my own question… By adding true to the ZipAggregationStrategy constructor, filenames are preserved. /M ‐‐‐ Original Message ‐‐‐ On Friday, March 26th, 2021 at 16:31, Mikael Andersson Wigander wrote: > Hi > > I'm building a archive solution for files and usin

How to preserve paths when using ZipAggregation?

2021-03-26 Thread Mikael Andersson Wigander
Hi I'm building a archive solution for files and using the Zip dataformat and aggregation. Trying with the option "preservePathElements=true" but the ZIP file doesn't include any paths for my files. My purpose here is to be able to detect from where in the directory structure the files comes

Best practise after aggregation processing in-memorty list?

2021-01-27 Thread Mikael Andersson Wigander
Hi We process a lot of transactions and aggregating them with a time threshold. When the aggregation is flushed we receive a List containing several thousand items in-memory and starts processing them further. In order to secure the process how is it done normaly when processing a list in

RE: EXTERNAL: Re: Can't get routes to Start in SpringBoot / Camel 3.5.0

2021-01-07 Thread Mikael Andersson Wigander
Can you share the class file where you have your main() ? /M ‐‐‐ Original Message ‐‐‐ On Thursday, January 7th, 2021 at 16:01, Cox, Jeremy wrote: > Thank you all for the tips. These are good improvements, but the route still > doesn't start. > > Adding to application.properties > >

Re: Can't get routes to Start in SpringBoot / Camel 3.5.0

2021-01-07 Thread Mikael Andersson Wigander
Tried adding quartz as an dependency org.apache.camel.springboot camel-quartz-starter x.x.x /M ‐‐‐ Original Message ‐‐‐ On Thursday, January 7th, 2021 at 15:09, Cox, Jeremy wrote: > I am trying to port a project from Spring/Camel 2 to Spring Boot / Camel 3. > The

Re: Camel Quarkus and Picocli

2020-12-01 Thread Mikael Andersson Wigander
Fooled myself. Thought it worked but it doesn't. Back to the original question: how get a Picocli work with a Camel in Quarkus /M ‐‐‐ Original Message ‐‐‐ On Tuesday, December 1st, 2020 at 19:49, Mikael Andersson Wigander wrote: > Nevermind, I just removed the class with QuarkusM

Re: Camel Quarkus and Picocli

2020-12-01 Thread Mikael Andersson Wigander
Nevermind, I just removed the class with QuarkusMain and adding Picocli to the Camel component instead /M ‐‐‐ Original Message ‐‐‐ On Tuesday, December 1st, 2020 at 19:34, Mikael Andersson Wigander wrote: > Anyone managed to create an application in Quarkus with Camel and Pico

Camel Quarkus and Picocli

2020-12-01 Thread Mikael Andersson Wigander
Anyone managed to create an application in Quarkus with Camel and Picocli? The different types of command modes makes everything confusing. Thx /M

How to declare a datasource in Camel Quarkus JDBC?

2020-11-30 Thread Mikael Andersson Wigander
How do I declare and inject a datasource for Camel JDBC using Quarkus? /M

Re: File filter option using genericFileFilter is not working properly

2020-10-21 Thread Mikael Andersson Wigander
‐‐‐ On Wednesday 21 October 2020 kl. 10:14, Claus Ibsen wrote: > Hi > > No you should use the # syntax. See the FromFtpFilterTest. > > On Wed, Oct 21, 2020 at 10:00 AM Mikael Andersson Wigander > > mikael.andersson.wigan...@pm.me.invalid wrote: > > > We have a running SFTP rou

File filter option using genericFileFilter is not working properly

2020-10-21 Thread Mikael Andersson Wigander
We have a running SFTP route using the option to accept files using a regular expression. This is working fine in Camel 2.25.0. Migrating to Camel 3.5.0 it is not working at all. Every file in the directory is downloaded, disregarding the filter option. I can't find any documentation about

Re: File component moveFailed with date is not parsed correctly

2020-09-28 Thread Mikael Andersson Wigander
> > I would assume the date:now function is in 2.25.x also. > > On Mon, Sep 28, 2020 at 9:35 AM Mikael Andersson Wigander > mikael.andersson.wigan...@pm.me.invalid wrote: > > > Hi > > trying to use the file component and the moveFailed option to create a > > d

File component moveFailed with date is not parsed correctly

2020-09-28 Thread Mikael Andersson Wigander
Hi trying to use the file component and the moveFailed option to create a directory with a timestamp and put the file there but the date string is not parsed correctly. This is the yaml string file://mifir/input/import?noop=false=true=error/${date:now:MMdd}/${file:name}=3=changed but the

Re: Maximum version of Spring Boot for Camel 2.25.2?

2020-08-31 Thread Mikael Andersson Wigander
ou compatible versions. > > On Mon, Aug 31, 2020 at 3:42 PM Mikael Andersson Wigander > wrote: > >> I have read somewhere on the site the maximum dependency for Spring Boot for >> Camel 2.x but can't find it. >> What's the recommendation? >> >> We have an ap

Maximum version of Spring Boot for Camel 2.25.2?

2020-08-31 Thread Mikael Andersson Wigander
I have read somewhere on the site the maximum dependency for Spring Boot for Camel 2.x but can't find it. What's the recommendation? We have an app heavily dependent on Camel and need to upgrade Spring Boot to 2.2.0.RELEASE due to problems with jUnit5 and 2.1.9.RELEASE using vintage jUnit

Bindy question about quoting

2020-07-03 Thread Mikael Andersson Wigander
Hi In Bindy when marshalling from object to CSV you can state that it should use “quoting” by two options: quote and quoting. But there’s a third in the factory: quotingEscaped How should this be interpreted in the context of the other two options? Also in the documentation there’s an

Re: Unable to XPath, as bean or as split with complex XML

2020-06-18 Thread Mikael Andersson Wigander
urse). >> >> But I cannot see how to manipulate the xpath expression. >> >> final XPathBuilder xPathBuilder = >> XPathBuilder.xpath("//*[local-name()='Tx']"); >> >> When trying out it in http://xpather.com/ using >> >> //FinInstrmR

Re: Unable to XPath, as bean or as split with complex XML

2020-06-18 Thread Mikael Andersson Wigander
omething >>> like: >>> https://github.com/apache/camel/blob/master/core/camel-core/src/test/java/org/apache/camel/builder/xml/XPathTest.java#L241 >>> >>> hth, >>> Alex >>> >>> On Thu, Jun 18, 2020 at 9:36 AM Mikael Andersson Wigander &l

Re: Unable to XPath, as bean or as split with complex XML

2020-06-18 Thread Mikael Andersson Wigander
Found the local namespace trick working but not as I expected. It found the inner Tx instead. Back to square on. Thx for all input so far // Mikael Andersson Wigander > 18 juni 2020 kl. 10:39 skrev Claus Ibsen : > > On Thu, Jun 18, 2020 at 10:15 AM Mikael Andersson Wigander

Re: Unable to XPath, as bean or as split with complex XML

2020-06-18 Thread Mikael Andersson Wigander
der/xml/XPathTest.java#L241 > > hth, > Alex > > On Thu, Jun 18, 2020 at 9:36 AM Mikael Andersson Wigander < > mikael.grevs...@gmail.com> wrote: > >> Hi >> >> My problem is that I can’t extract some XML using xpath in Camel 3.3.0 >> >> My inco

Unable to XPath, as bean or as split with complex XML

2020-06-18 Thread Mikael Andersson Wigander
Hi My problem is that I can’t extract some XML using xpath in Camel 3.3.0 My incoming XML is complicated where my target tag also has a tag further down the tree as . I have created a demo project on Github for share if someone could help me. https://github.com/hakuseki/xpath I have tested

Re: split with tokenizeXML in complex XML

2020-06-17 Thread Mikael Andersson Wigander
of camel with the same result. File is xml and body converted to String and then split(xpath(“//FinInstrmRptgTxRpt/Tx”)) Also tried an XPathBuilder with the same result. Pls advice // Mikael Andersson Wigander > 17 juni 2020 kl. 13:22 skrev Claus Ibsen : > > Hi > > It can

Re: split with tokenizeXML in complex XML

2020-06-17 Thread Mikael Andersson Wigander
Hi Makes sense. Tried splitting using xpath but it didn’t work either. Should xpath be as argument of split or own statement (.xpath())? // Mikael Andersson Wigander > 17 juni 2020 kl. 10:14 skrev Claus Ibsen : > > Hi > > No tokenizeXml is for not complex XML with tags

split with tokenizeXML in complex XML

2020-06-17 Thread Mikael Andersson Wigander
Hi We have a XML file to split on tag . However this tag is also present in a node further down the tree as well. tokenizeXML is used in our application but now this won’t work because it ends prematurely. Here’s the XML 1312312

Camel Quarkus Core causes Exception

2020-04-30 Thread Mikael Andersson Wigander
Hi I just migrated my quarkus sample app to Camel 1.0.0-M7 and using 1.4.1.Final of Quarkus on GraalVM for Java 11 and I now get this exception on startup: 2020-04-30 11:24:03,079 ERROR [io.qua.dep.dev.DevModeMain] (main) Failed to start Quarkus: java.lang.NoSuchMethodError: 'void

Re: Camel Endpoint DSL

2020-04-23 Thread Mikael Andersson Wigander
Thx, that’s what I suspected! M > On 23 Apr 2020, at 11:26, Guillaume Nodet wrote: > > Le jeu. 23 avr. 2020 à 10:06, Mikael Andersson Wigander < > mikael.grevs...@gmail.com> a écrit : > >> Hi >> >> How can I combine the endpoint DSL with dynamic proper

Camel Endpoint DSL

2020-04-23 Thread Mikael Andersson Wigander
Hi How can I combine the endpoint DSL with dynamic property definitions such as: final String toStr = "{{shuttle.ftp.outgoing.url}}" + "={{shuttle.ftp.username}}" + "={{shuttle.ftp.password}}" + "=false" + "=true" + "=true" + "=#defaultPollStrategy";

Camel Quarkus toD with dynamic values?

2020-04-20 Thread Mikael Andersson Wigander
Hi trying to convert a small Camel application to Quarkus but fails on this: from(timer("{{esma.download.timer}}").repeatCount(1)) .log("{{esma.download.url}}") .toD(https("{{esma.download.url}}")) esma: download: url :

Consuming JMS queue messages decreases when aggregating

2020-04-09 Thread Mikael Andersson Wigander
Hi, All When aggregating messages from an ActiveMQ queue to a LevelDB repo we see that over time ~1h the consumption of messages decreases significantly, for us to a point where we consume 0,5 msg/s as lowest. Using a normal message consumer the throughput is >40 msg/s… Tried different

Re: Unable to get Micrometer counter in Camel 3.2.0

2020-04-08 Thread Mikael Andersson Wigander
Done. tried to explain afaik Thx for the reminder M > On 8 Apr 2020, at 17:57, Andrea Cosentino wrote: > > Open an issue please. Reporting this stuff on the mailing list will be lost. > > Il mer 8 apr 2020, 17:49 Mikael Andersson Wigander < > mikael.grevs...@

Re: Unable to get Micrometer counter in Camel 3.2.0

2020-04-08 Thread Mikael Andersson Wigander
stries that are in place here but I think the Camel implementation never gets registered accordingly. Thx M > On 8 Apr 2020, at 10:04, Mikael Andersson Wigander > wrote: > > Thanks, I did and I can’t see anything new or significant > > Tried Timers but they doesn’t work eith

Re: Grouped Aggregation Strategies...

2020-04-08 Thread Mikael Andersson Wigander
what their actual purpose is. > > Thanks, > > On Wed, Apr 8, 2020 at 6:06 AM Mikael Andersson Wigander < > mikael.grevs...@gmail.com> wrote: > >> I too have migrated to Camel 3 and I can’t get this to work. >> >> I have tried using a constant(true) but

Re: Grouped Aggregation Strategies...

2020-04-08 Thread Mikael Andersson Wigander
I too have migrated to Camel 3 and I can’t get this to work. I have tried using a constant(true) but I get only 1 message back instead of 3 Using a unique correlation expression I get as before, 3 different back, not a List of 3 M > On 4 Apr 2020, at 16:10, Craig Taylor wrote: > >>> Are you

Re: Unable to get Micrometer counter in Camel 3.2.0

2020-04-08 Thread Mikael Andersson Wigander
heck on their project. > > > > On Wed, Apr 8, 2020 at 8:46 AM Mikael Andersson Wigander > wrote: >> >> Yes, it is added >> >> M >> >>> On 8 Apr 2020, at 08:45, Andrea Cosentino wrote: >>> >>> Did you add the camel-man

Re: Unable to get Micrometer counter in Camel 3.2.0

2020-04-08 Thread Mikael Andersson Wigander
ntext : micrometer://counter:messages converted to endpoint: micrometer://counter:messages by component: org.apache.camel.component.micrometer.MicrometerComponent@3e078d50 > On 8 Apr 2020, at 08:46, Mikael Andersson Wigander > wrote: > > Yes, it is added > > M > >

Re: Unable to get Micrometer counter in Camel 3.2.0

2020-04-08 Thread Mikael Andersson Wigander
Yes, it is added M > On 8 Apr 2020, at 08:45, Andrea Cosentino wrote: > > Did you add the camel-management dependency? Otherwise Jmx won't be enabled > > Il giorno mer 8 apr 2020 alle ore 08:43 Mikael Andersson Wigander > mailto:mikael.grevs...@gmail.com>> ha scritto

Unable to get Micrometer counter in Camel 3.2.0

2020-04-08 Thread Mikael Andersson Wigander
Hi Previously I used to run my Camel routes under 2.25.0 and with Micrometer component for JMX in Spring Boot 2.1.9. This route gives me a “messasges” counter in JMX to study: .to("micrometer:counter:messages") But now that I upgraded to Camel 3.2.0 and Spring 2.2.6 it is not available in

Re: Grouped Aggregation Strategies...

2020-04-04 Thread Mikael Andersson Wigander
Claus (or any other ), please correct me if I’m wrong but all the GroupedAggregationStrategies extends AbstractListAggregationStrategy and by inheritance aggregate() is called on the extended class if not provided by own class. This method in Camel 2.25.0 is only returning the Exchange (old/new

Re: Grouped Aggregation Strategies...

2020-04-04 Thread Mikael Andersson Wigander
Been struggling with this for a while and I have studied the underlying code and found that “GroupedAggregationStrategies" extends AbstractListAggreationStrategy which in turn uses the aggregate() method. But it is not returning anything of value. It picks up a List internally but then

Aggregation problem with grouped messages

2020-04-01 Thread Mikael Andersson Wigander
Hi Been struggling with this for a long time now and I can’t seem to get it right. I process transactions from a JMS queue, +1/24h. I need to aggregate them before sending them further down the chain. When ever I receive a transaction with the same transactionNumber I have to check what

Aggregation strategy discussion??

2020-03-30 Thread Mikael Andersson Wigander
Hi, community I was wondering if anyone is willing to have a discussion with me about an Aggregation strategy approach? I’m not looking for help or a solution just a way to explain what we are doing and how this can be perfected since we are hitting a peak in performance. We are working with

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Mikael Andersson Wigander
Hi, all I think I found the problem. When running with a LevelDB repository it fails but switching to a JDBC Repository it works. So somewhere deep in LevelDB then… M > On 25 Mar 2020, at 10:16, Mikael Andersson Wigander > wrote: > > Hi > > Yes, I tried that but m

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Mikael Andersson Wigander
fact that in Java you can have the same named > class loaded by two classloaders result in a ClassCastException. I > also provided a way to check for that. > > zoran > > On Wed, Mar 25, 2020 at 9:59 AM Mikael Andersson Wigander > wrote: >> >> >&

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Mikael Andersson Wigander
Error occurred in >> ShuttleIntegration >> >> >> >>> Hi Mikael, >>> ClassCastException with SameClass cannot be cast to SameClass means >>> that there is an object passed from one classloader and being cast to >>> a type loaded from a

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Mikael Andersson Wigander
I implemented CompletionAwareAggregationStrategy and in onCompletion() I checked the class but it crashes with an Ex eption in there as well… > On 25 Mar 2020, at 09:59, Mikael Andersson Wigander > wrote: > > > >> On 25 Mar 2020, at 09:28, Zoran Regvart wrote: >

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Mikael Andersson Wigander
> class objects. > > zoran > > > On Wed, Mar 25, 2020 at 8:23 AM Mikael Andersson Wigander > wrote: >> >> TL;DR >> >> We have a very interesting mystery in one of our Camel applications. >> >> We have a route where we aggregate incoming

  1   2   >