Re: Bug in SMB reconnect handling

2025-06-16 Thread ski n
I think this is a bug in the underlying library smbj: https://github.com/hierynomus/smbj/issues/864 And this error was also discussed on the Camel forum: https://camel.zulipchat.com/#narrow/channel/257298-camel/topic/SMB.20Componnent.20how.20the.20connection.20alive.3F/with/507977443 As I can s

Re: problem getting stats from route in 4.10

2025-04-28 Thread ski n
Hi, I get stats like this: ManagedCamelContext managed = context.getCamelContextExtension().getContextPlugin(ManagedCamelContext.class); ManagedRouteMBean route = managed.getManagedRoute(routeId); totalMessages = route.getExchangesTotal(); completedMessages = route.getExchangesCompleted(); faile

Re: loading Yaml routes while a context is running (4.10.x)

2025-04-09 Thread ski n
I don't know about Yaml, but this is how I load XML routes as String like this: loader = PluginHelper.getRoutesLoader(context); loader.loadRoutes(setResource(route,"xml")); private Resource setResource(String route, String type){ String uuid = UUID.randomUUID().toString(); if(type.equa

Re: Enrich with attachement in 4.10.0

2025-02-14 Thread ski n
= new ByteArrayOutputStream(); mm.writeTo(byteStream, headers.toArray(new String[0])); exchange.getIn().setBody(byteStream.toString()); however when using the normal stream: mm.writeTo(stream, headers.toArray(new String[0])); (on line 167) On Fri, Feb 14, 2025 at 5:02 PM ski n wrote: > I have the follow

Enrich with attachement in 4.10.0

2025-02-14 Thread ski n
I have the following route: direct:enrich This route works as follows: 1. Enrich: Adds the body from the enrich endpoint as attachment: 2. Marshal: The exchange with attachment is marshalled to a MimeMessage using MimeMultipartDataFormat This worked until 4.9.0, but f

Re: Handling exception in DIRECT sub-route and continue on the parent route

2025-02-12 Thread ski n
Did you try to use an errorHandler? Some like this: from("seda:a") // here we configure the error handler .errorHandler(deadLetterChannel("seda:error")) // and we continue with the routing here .to("seda:b"); Then you can set the errorHandler direct

Re: Camel body content based routing with jsonpath on XML DSL (no java project, no pom)

2024-12-18 Thread ski n
Thanks for your interest in Camel. The error: " Caused by: java.lang.ClassNotFoundException:" means that the right dependency (jsonpath in this case) is not on the Java classpath. How the dependencies are handled depends a bit on the runtime that Camel is running. ActiveMQ is not really a runtime.

Re: How to expose an https endpoint with Platform HTTP Main

2024-12-02 Thread ski n
I have never used the platform-http component myself, but from the documentation it says that: "The Platform HTTP is used to allow Camel to use the existing HTTP server from the runtime. For example, when running Camel on Spring Boot, Quarkus, or other runtimes. " So I think the first question is

Apache Camel Upgrade Recipes

2024-09-30 Thread ski n
Today there was a vote for a release for “Apache Camel Upgrade Recipes”. What are these recipes exactly? Are they the OpenRewrite Recipes to upgrade between LTS versions? https://docs.openrewrite.org/recipes/io/quarkus/updates/camel Is this only for Quarkus, or general purpose? Are they document

Re: Dynamic To with InOnly Exchange Pattern in Java DSL

2024-09-19 Thread ski n
Like Claus mentioned, it's always possible to set the exchangePattern into a separate step. A route would look something like this: from("direct:start") .setExchangePattern(ExchangePattern.InOnly) .toD("log:${header.destination}"); Raymond On Thu, Sep 19, 2024 at

Re: Camel 4.6 activemq issue

2024-08-27 Thread ski n
> > Hi, > > In the code that I pasted it is already set to lazy-init="true". > > > > Please correct me if I am wrong. > > > > Thanks, > > Sujeet > > > > > > On Tue, 27 Aug 2024, 17:26 ski n, wrote: > > > >> You are

Re: Camel 4.6 activemq issue

2024-08-27 Thread ski n
et to lazy-init="true". > > Please correct me if I am wrong. > > Thanks, > Sujeet > > > On Tue, 27 Aug 2024, 17:26 ski n, wrote: > > > You are creating a custom component with its own name " jmsMQ". This is > not > > uncommon for the

Re: Camel 4.6 activemq issue

2024-08-27 Thread ski n
You are creating a custom component with its own name " jmsMQ". This is not uncommon for the JMSComponent, however in your case, the component is not available as endpoint when you load it. You may try to set lazy-init="true" from to false. Raymond On Tue, Aug 27, 2024 at 1:26 PM Sujeet Singh wr

Re: Large Camel Open-Source project?

2024-08-21 Thread ski n
I also have a fairly big open source project based on Camel: https://github.com/assimbly/gateway It's a gateway between systems. It also powers a commercial project. Raymond On Wed, Aug 21, 2024 at 10:24 AM Claus Ibsen wrote: > Hi > > You can also find some companies, and open source projects

EventNotifier for steps

2024-05-10 Thread ski n
In Camel 4 (4.5.0) I like to get events for each step (like StepStarted and StepCompleted). I expected that wherever I use a step that these events are triggered. Currently when I use this: This works and I get an event for every step. However when I use t

Re: Jetty and the Invalid SNI

2024-04-30 Thread ski n
I was running into this issue well, while upgrading to Camel 4 when using the Jetty component. I had a bunch of tests using a self-signed certificate with localhost. This is not allowed anymore for SNI. In Jetty12 there are several ways to turn it off. For example, in Spring Boot config (applicati

Understanding backpressure

2024-03-13 Thread ski n
I try to understand backpressure on Camel routes better. For this purpose, I set up a load test. This test contains 5 routes that are connected through direct or seda endpoints. At the end of all routes, I put a delay or throttle. The routes are getting more messages than the throttle/delay can han

Re: Why has timePeriodMillis for the Throttle EIP been removed and how can I account for this

2024-02-02 Thread ski n
Maybe check the following Jira issue I created and post your use case and concerns there: https://issues.apache.org/jira/browse/CAMEL-20355 Raymond On Fri, Feb 2, 2024 at 11:29 AM Jono Morris wrote: > > The Throttler previously employed a fixed windows algorithm, allowing a > fixed number of

How to send form data (multipart/form-data)

2024-02-01 Thread ski n
Hi, I need to send form data (binary files). With Curl you can do this as follows: curl https://reqbin.com/echo/post/form -F key1=value1 -F key2=value2 -F photo=@photo.png or curl https://reqbin.com/echo/post/form --form key1=value1 --form key2=value2 --form photo=@photo.png

Re: Camel use case

2024-01-25 Thread ski n
Yes, dividing it into chunks is a good practice. This adheres to message-based systems in general, not specific to Camel. Let's discuss both ways of processing messages: 1. One big message Say the message is 100 GB+ and this is processed by some integration software on a server, you need to scale

Re: Functions in Camel

2024-01-09 Thread ski n
solution (Calling it directly from a route by name and route and routeid are automatically started) The suggestion I did was to get to 100% and make it a real "pattern" with for newbies logical names and part of the core. Raymond On Mon, Jan 8, 2024 at 4:43 PM ski n wrote: > I also s

Re: Functions in Camel

2024-01-08 Thread ski n
o they are straight to use. Raymond On Mon, Jan 8, 2024 at 4:24 PM ski n wrote: > Yeah, calling a Kamelet has the advantage that the subroute is dynamically > created. > > - Still need the to, not a separate EIP. > - Beginners would not search for "Kamelet", but function would

Re: Functions in Camel

2024-01-08 Thread ski n
eally seems the Kamelets' mission > > Il lun 8 gen 2024, 15:59 Pasquale Congiusti > ha scritto: > > > Hi Raymond, > > Can't be a Kamelet considered for such a feature? I think it's one of its > > purposes as well. > > > > Pasquale. > >

Functions in Camel

2024-01-08 Thread ski n
Question/Discussion: Do you think "functions" in the Camel DSL make sense? Explanation: Say you have to following route: from("direct:a") .setHeader("myHeader", constant("test")) .to("direct:b"); And then you have a similar route: from("direct:c") .setHeader("myHeader2", constant(

Virtual threads

2023-12-19 Thread ski n
Since Camel 4.3.0 released 18th December, the framework has primarily support for virtual threads: https://camel.apache.org/manual/threading-model.html#_virtual_threads In the documentation, it's already said that this doesn't work in all cases. Previously, it was also mentioned by Claus that it

Re: Event / Exchange / Message timestamps

2023-11-21 Thread ski n
example Elastic, but there maybe easier ways to get size stats. Raymond On Mon, Nov 20, 2023 at 11:23 PM ski n wrote: > Yes, I was suspecting something like that, but the Javadoc only says: > > "Timestamp for each event, when the event occurred. By default, the > timestamp is not

Re: Event / Exchange / Message timestamps

2023-11-20 Thread ski n
Yes, I was suspecting something like that, but the Javadoc only says: "Timestamp for each event, when the event occurred. By default, the timestamp is not included and this method returns 0." It does not say how and where it can be turned on. I first checked the EventNotifierSupport class, but ap

Event / Exchange / Message timestamps

2023-11-20 Thread ski n
In Camel 3.20.8 I use the event notifier (as described here https://dzone.com/articles/event-notifier-apache-camel). One of the things I try to get timestamps. These timestamps are available on several levels: 1. Event level 2. Exchange level 3. Message level When I used the following the get th

Re: Jetty Component how to add additional steps after send http response back to the client

2023-11-19 Thread ski n
Or take a look at the wire tap pattern: https://camel.apache.org/components/4.0.x/eips/wireTap-eip.html Raymond On Sun, Nov 19, 2023 at 2:05 PM Claus Ibsen wrote: > Hi > > You can also look at using onCompletion > https://camel.apache.org/manual/oncompletion.html > > On Sat, Nov 18, 2023 at 8:

Re: Route group

2023-11-17 Thread ski n
just a human description and > has no logic > 2 no > 3 no > > This is not a desired feature and to APIs and controllers to manage > lifecycle of routes is already complex and vast and need to deal with many > things. > > > > On Fri, Nov 17, 2023 at 10:58 AM ski n wrote: &g

Re: Route group

2023-11-17 Thread ski n
request? Raymond On Fri, Nov 17, 2023 at 9:07 AM Claus Ibsen wrote: > 1 2 3 yes > 4 no > > > > On Fri, Nov 17, 2023 at 8:26 AM ski n wrote: > > > Recently, a “route group“ was added: > > > > https://issues.apache.org/jira/browse/CAMEL-11669 > > >

Route group

2023-11-16 Thread ski n
Recently, a “route group“ was added: https://issues.apache.org/jira/browse/CAMEL-11669 The ticket mentioned that the route group is a “logical group” that one or more routes are attached to. Some questions about this new feature: 1. Is the syntax still the same as in the ticket? 2. Is this alrea

Re: [ANNOUNCE] Apache Camel 4.2.0 Released

2023-11-14 Thread ski n
Great! Is this the first version that fully supports Java 21? Raymond On Tue, Nov 14, 2023 at 8:54 PM Gregor Zurowski wrote: > The Camel PMC is pleased to announce the release of Apache Camel 4.2.0. > > Apache Camel is an open source integration framework that empowers you > to quickly and eas

Re: How to check if an message on an exchange has attachments?

2023-11-14 Thread ski n
it. Raymond On Tue, Nov 14, 2023 at 8:12 PM ski n wrote: > > I need to check if a message has an attachment. > > In Camel2 I used the following expression: > > ${exchange.getIn().hasAttachments} > > As attachment was modularized in Camel 3, the hasAttachments method isn&#

How to check if an message on an exchange has attachments?

2023-11-14 Thread ski n
I need to check if a message has an attachment. In Camel2 I used the following expression: ${exchange.getIn().hasAttachments} As attachment was modularized in Camel 3, the hasAttachments method isn't directly available on the exchange anymore (it now extends Message). Based on the documentation

Re: replacement for direct-vm component

2023-11-07 Thread ski n
el 4 the route in those applications cannot interact with each other directly. Raymond On Tue, Nov 7, 2023 at 7:58 PM Arthur Naseef wrote: > Can you explain "there is only one CamelContext"? How is that > ensured/enforced? > > Art > > On 2023/11/07 18:33:02

Re: replacement for direct-vm component

2023-11-07 Thread ski n
I think the direct-vm was created in Camel 2 when you could have multiple CamelContexts (for example in Karaf). When you would run multiple CamelContexts and you want call another route then you needed direct-vm. Since Camel 3 there is only one CamelContext, thus in most cases you can use "direct"

Re: Stream closed while unzipping in a container

2023-11-04 Thread ski n
Sure, issue is created: https://issues.apache.org/jira/browse/CAMEL-20080 Raymond On Sat, Nov 4, 2023 at 10:17 AM Andrea Cosentino wrote: > Il ven 3 nov 2023, 09:33 ski n ha scritto: > > > Sorry, I forgot to mention. This was tested with Camel 3.20.7 (JDK 11). > > > &g

Re: Stream closed while unzipping in a container

2023-11-04 Thread ski n
to be investigated further. > > Kind regards > > > > > On Fri, Nov 3, 2023 at 9:33 AM ski n wrote: > > > Sorry, I forgot to mention. This was tested with Camel 3.20.7 (JDK 11). > > > > btw: I'm also in the progress to upgrade to 4, but that has some >

Re: Stream closed while unzipping in a container

2023-11-03 Thread ski n
4 AM Claus Ibsen wrote: > Hi > > Which Camel version, and have you tried with latest releases. > > On Thu, Nov 2, 2023 at 9:00 PM ski n wrote: > > > I have a route where I want to unzip zipfile (containing 1 or more > files). > > This is the route: > > >

Stream closed while unzipping in a container

2023-11-02 Thread ski n
I have a route where I want to unzip zipfile (containing 1 or more files). This is the route: ZipFileDataFormat zipFile = new ZipFileDataFormat(); zipFile.setUsingIterator(true); from("file:src/test/resources/org/apache/camel/dataformat/zipfile/?delay=1000&noop=true") .unmarshal(zipFile)

Re: Camel HTTP/2 support

2023-10-08 Thread ski n
Camel provides various HTTP clients like: 1. http (https://camel.apache.org/components/4.0.x/http-component.html) 2. netty http ( https://camel.apache.org/components/4.0.x/netty-http-component.html) 3. vert.x http ( https://camel.apache.org/components/4.0.x/vertx-http-component.html) 4. rest (http

Re: How to properly remove a routeConfiguration

2023-10-07 Thread ski n
heck). > Where you can remove via the model (def class). So you need to remove that > way. > > > > On Tue, Oct 3, 2023 at 9:34 PM ski n wrote: > > > I have a route and a routeConfiguration. I want to remove both from the > > CamelContext. > > > > I tri

Re: Camel 4 migration blog post - Feedback welcome

2023-10-06 Thread ski n
Not being the typical Camel user, I see that as a compliment :) For the blog it may be also good to highlight not just how to upgrade (migration path), but also why to upgrade. There are technical reason like being up to date with Jakarta EE/Spring/Quarkus, but I think most users are even more i

Re: Camel 4 migration blog post - Feedback welcome

2023-10-06 Thread ski n
Sure happy to give feedback. I plan to upgrade from 3.20.x to 4.x. Currently, thus not migrating yet, but planning has started. The things I need to consider: - I first need to finish some stuff to upgrade from 2.x to 3.x (Currently the docs for 2.0 are gone, is the archive to Camel 2.0 document

How to properly remove a routeConfiguration

2023-10-03 Thread ski n
I have a route and a routeConfiguration. I want to remove both from the CamelContext. I tried it like this: String routeId = route.getId(); String routeConfigurationId = route.getConfigurationId(); //remove route routeController.stopRoute(routeId, 30, TimeUnit.SECONDS); context.removeRoute(route

Re: Threading question

2023-09-03 Thread ski n
The starting doc is the following: https://camel.apache.org/manual/threading-model.html If you still some questions or missing some stuff you can ask them here of course. Raymond On Sun, Sep 3, 2023 at 8:42 PM Alex O'Ree wrote: > Under the hood, does camel allocate thread pools specific to ea

Re: Camel & Virtual threads

2023-09-01 Thread ski n
ol, question is how much > > synchronization is camel using under the hood. > > > > On Fri, 1 Sept 2023, 10:34 ski n, wrote: > > > >> OK, thanks. It will take some (couple of years) before most libraries > are > >> catching up. > >> >

Re: Camel & Virtual threads

2023-09-01 Thread ski n
libraries and many > other frameworks starting to adopt them as well, which means Java 21 as > minimum base version. > Support for Java 21 is to run on JDK21. JDK17 will be primary supported, > and 21 secondary, that is the plan for this year. > > > On Fri, Sep 1, 202

Camel & Virtual threads

2023-09-01 Thread ski n
In integration there is a lot of Async I/O (calling disk, databases, api's and other external systems). Though Camel is very fast, it's mostly these async I/O calls that take time and eat a lot of platform threads. For example: from("direct:start") .log("some log") //this takes less than 1 ms

Re: EventNotifier and direct/seda endpoints in Camel 4

2023-08-01 Thread ski n
gt; > On Tue, Aug 1, 2023 at 8:49 AM ski n wrote: > > > Currently, I use the EventNotifier to collect events in Camel: > > > > > > > https://www.javadoc.io/doc/org.apache.camel/camel-api/3.21.0/org/apache/camel/spi/CamelEvent.html > > > > I hav

EventNotifier and direct/seda endpoints in Camel 4

2023-07-31 Thread ski n
Currently, I use the EventNotifier to collect events in Camel: https://www.javadoc.io/doc/org.apache.camel/camel-api/3.21.0/org/apache/camel/spi/CamelEvent.html I have integrations that consist of 1 or more routes like this: To route between two routes I use either: - direct-vm -

Re: loading routes from external xml files

2023-07-31 Thread ski n
OK, good to know as I use this functionality also heavily. Some questions/remarks about this: 1. What's the reason that it was (re)moved? Is there a new concept behind the PluginHelper? 2. Maybe good to add this to the migration guide ( https://camel.apache.org/manual/camel-4-migration-guide.html)

Re: Issue in resolving endpoint with property having period

2023-06-07 Thread ski n
> >base-package=""/> > > > > The route information is stored in database and using JPA we are extracting > and configuring it. > > We are really stuck on this though it works very well with Camel 2.x > > Thanks & Regards, > S

Re: Issue in resolving endpoint with property having period

2023-06-05 Thread ski n
Hi Sujeet, Can you add the complete route, so it's clear where you are using it? Regards, Raymond On Mon, Jun 5, 2023 at 3:50 PM Sujeet Singh wrote: > Hi, > > I am trying to migrate from Camel 2.x to > Camel 3.2.0. I have followed all the > guidelines but getting the below error > during star

Re: anyone using Camel with YAML / XML DSL and IBM MQ ?

2023-05-23 Thread ski n
I don't have xml/yaml dsl, but maybe this helps with setting up de connection to an IBMMQ Broker https://github.com/assimbly/runtime/blob/develop/dil/src/main/java/org/assimbly/dil/blocks/connections/broker/IBMMQConnection.java Raymond On Tue, May 23, 2023 at 8:43 PM Claus Ibsen wrote: > Hi >

Re: [Kaoto] Release version 1.0.0

2023-04-14 Thread ski n
Great progress has been made since the first public release. Big congrats to the Kaoto team, and I would recommend Camel users to try 1.0 out. Raymond On Fri, Apr 14, 2023 at 11:37 AM María Arias de Reyna wrote: > 🥳 🥳 Kaoto version 1.0.0 released!🎉 🎉 > > This marks the first major release for

Re: Camel JMS / Set message time to live

2023-04-03 Thread ski n
e queues that are managed by the same > broker group. > > That's why I need to set this time to live using headers only for some > messages sent to some queues... > > Thanks. > > Le lun. 3 avr. 2023 à 13:08, ski n a écrit : > > > > Ca

Re: Camel JMS / Set message time to live

2023-04-03 Thread ski n
dication > using a header, since I can't modify the endpoint URI ? > > Thanks again. > > Regards. > > Le lun. 3 avr. 2023 à 09:43, ski n a écrit : > > > > I should be possible as Camel Headers are translated to JMS Headers when > > sending to an ActiveMQ queu

Re: Camel JMS / Set message time to live

2023-04-03 Thread ski n
I should be possible as Camel Headers are translated to JMS Headers when sending to an ActiveMQ queue or topic. This can be tricky though as sometimes JMS Headers are not set by the client but by the broker (for example JMSTimestamp), so you can't use all headers. You can check this page with the

Re: WELCOME to users@camel.apache.org

2023-02-27 Thread ski n
Hi Prassad, Welcome to Camel community. Let's help you on your way with asking questions on the user list: For new question: 1. Write a new email to users@camel.apache.org 2. Give the subject a clear summary of the question. 3. In the mail a. tell about the version of Camel or CamelK you

Re: Smooks Component

2023-02-20 Thread ski n
Hi Michael, You may want to check out our repository: https://github.com/assimbly/custom-components They contain some edifact related Camel components based on smooks. There are some examples in the config folder of the integration tests: https://github.com/assimbly/runtime-integration-tests H

Re: Manage and monitor a group of routes

2023-02-11 Thread ski n
processor > > levels for each statistics. So you have how many messages are processed by > routes. > You can associate a route to a route. And you can see the route in the > statistics, so your monitoring systems can aggregate data together. > > However I think it would also

Manage and monitor a group of routes

2023-02-10 Thread ski n
Hi Cameleers, I'm wondering what the best way is to manage and monitor a group of routes as an integration ('a unit of work')? Through the mailing list, I try to gather some ideas on this topic. Background: Integration vs Routes Say I have three routes that together form my integration: http:/

Components in 4.0

2023-02-05 Thread ski n
Currently, there are around 26 components planned that will be removed from Camel 4.0: https://camel.apache.org/manual/camel-4-migration-guide.html Maybe something to consider: 1. Deprecate those components already in 3.21.x 2. If the component has been renamed or has an alternative (say ActiveM

Re: Camel 3.20.1 // Events ExchangeCreated and ExchangeCompleted seem to be repeated

2023-01-31 Thread ski n
Maybe it's a good aidea to add a graph/explanation about the Exchange lifecycle to: https://camel.apache.org/manual/lifecycle.html and/or https://camel.apache.org/manual/exchange.html On Mon, Jan 30, 2023 at 3:56 PM Claus Ibsen wrote: > It has always been like that, when an exchange is create

EventNotifier filters

2023-01-30 Thread ski n
I have a question about event notifiers. Currently, I collect events using EventNotifierSupport https://javadoc.io/doc/org.apache.camel/camel-support/latest/org/apache/camel/support/EventNotifierSupport.html There I get a "CamelEvent" as listed in this class. https://www.javadoc.io/doc/org.apac

Re: Camel 3.X / DataFormat BeanIO

2022-12-27 Thread ski n
Sometimes it's also good to question why the project is dead. I also worked for big retail companies, as well as government organizations, and saw fixed length formats on various occasions. The truth is that these formats are outdated and get less and less support, thus fewer libraries and tools. T

Re: metadata properties

2022-12-13 Thread ski n
? Or has it other uses? Is there an example? Raymond On Tue, Dec 13, 2022 at 6:10 PM ski n wrote: > Yes, I know. But I don't want to implement this in every > route/routeTemplate, so that's why I thought I use the API for it (inject > metadata properties on the start of a r

Re: metadata properties

2022-12-13 Thread ski n
parated to the CamelContext and I was worried it would take too much resources, but it seems working fine. Raymond On Tue, Dec 13, 2022 at 5:22 PM Claus Ibsen wrote: > There are route properties / route groups you can set via the DSL. > > > > On Tue, Dec 13, 2022 at 4:24 PM ski

metadata properties

2022-12-13 Thread ski n
I have a use case where I like to add properties as metadata to a route/routetemplate. Properties like: - The group a route belongs to - The author of the route - The version of the route - The environment it runs - etc. I know Kamelet have a construct for metadata, but is there also construct to

Re: Streamcaching and spooling

2022-11-25 Thread ski n
In addition to Simo I also encountered sometimes FileNotFoundException and other I think disk related issues like: org.apache.camel.RuntimeCamelException: Cannot reset stream from file tmp/camelcontext-ID_5ffdbadf852c8f0010034cb9/cos4845255624781072102.tmp What maybe also is possible is to set it

Re: Integrating Apache Beam and Apache Camel

2022-11-16 Thread ski n
I agree with Romain that processor is good thing to look at. Here are some resources that maybe useful: https://stackoverflow.com/questions/20578756/apache-camel-processor-purpose https://camel.apache.org/manual/processor.html https://www.youtube.com/watch?v=s_6ip_9Yz5M https://access.redhat.com/

Re: Request for input re: Dynamic Router EIP component

2022-11-05 Thread ski n
ing any other camel component. When you >are subscribing/unsubscribing is where using code might apply, to create >the subscription message and then send it, for example, by a producer >template. > > Please let me know if this helps. I am always open t

Re: Request for input re: Dynamic Router EIP component

2022-11-05 Thread ski n
For those interested. Here are some more resources: Background: https://camel.apache.org/blog/2022/01/dynamic-router-eip-component/ Documentation: https://camel.apache.org/components/3.18.x/dynamic-router-component.html --- For me, reading through the documentation, it seems l

Re: File component fails with charsets

2022-11-03 Thread ski n
@Otavia I run the test and this also happens on Camel 3.19.0 (JDK11). The result: Caused by: java.nio.charset.UnmappableCharacterException: Input length = 1 I am not expert on charsets, but when a character is not available / unmappable I would expect that it is replaced by for example a '?'. Obv

Re: Route Template and dependency to Spring Boot Component Order initialization

2022-11-02 Thread ski n
Hi Michael, Interesting case. As far as I know, you cannot change the order of the components to load while scanning. It's maybe possible to load the routetemplate definitions before Spring starts: 1. Move the routetemplate definitions (for example the RouteTemplate.java file) to a separate pack

Re: Exception while collecting the response of http call used in recipient list EIP

2022-10-26 Thread ski n
No problem, such thing happen If possible, you may try to simplify the Camel route. Something like this (pseudocode): from("seda://notification-pool?concurrentConsumers=500") .setHeader(Exchange.CONTENT_TYPE).constant("application/json") .setProperty("WEBHOOK_URL", getWebhookUrl(exchange)) .s

Re: How to interrupt camel multicast for subset of enpoints/subroute

2022-10-24 Thread ski n
Hi Jitesh, You can separate the polling of the two FTP into two separate routes: //normal route from("ftp://[username@]hostname[:port]/output";) //code for normal output .to("direct:process_extracted_file"); //error route from("ftp://[username@]hostname[:port]/error";) //code for error output

Re: ws proxy server in Karaf has problems with mtom attachments

2022-10-20 Thread ski n
Hi Tom, I can't comment on the CXF/MTOM part, but I can say a bit about removing headers. You note that: " I think the problem could have been in because all the previous headers are gone and instead of them are different. But I haven't found a way how to remove only one of them and without it i

Re: Camel Producer receiving messages asynchronously from Web Socket Server

2022-10-12 Thread ski n
In general, I wouldn't bother too much about the Camel Context, Exchanges and producer tasks. Sound the best way to do this is by just chaining various Camel routes and use direct or seda endpoints between them. Raymond On Wed, Oct 12, 2022 at 10:31 AM Stefan Kok wrote: > Hi All > > Background:

Re: Choice in a route template

2022-10-10 Thread ski n
ile > was last modified told the router to update itself. Each line of the > properties file is your next route e.g. > > bar=direct:b > cheese=direct:c > otherwise=direct:d > > Nick > > -Original Message- > From: ski n > Sent: 10 October 2022 20:08 &

Choice in a route template

2022-10-10 Thread ski n
Consider the following route: from("direct:a") .choice() .when(simple("${header.foo} == 'bar'")) .to("direct:b") .when(simple("${header.foo} == 'cheese'")) .to("direct:c") .otherwise() .to("direct:d"); I like to use such choice in a

Re: ExchangeTimedOutException

2022-10-10 Thread ski n
t; > On the return, I am not using the setOut method but the setMessage as > setOut has been deprecated. It is my understanding that we should use > setMessage instead of setOut. > > Stefan > > On Mon, 2022-10-10 at 12:43 +0200, ski n wrote: > > To enhance the

Re: ExchangeTimedOutException

2022-10-10 Thread ski n
To enhance the answer of Claus: An exchange in Camel has two types: 1) InOnly 2) InOut See: https://camel.apache.org/manual/exchange-pattern.html With the first type of exchange, "InOnly", the exchange is an event message (also called 'fire and forget' or 'one-way)'. You will never see the war

Re: Autoregister beans

2022-10-01 Thread ski n
bean = clazz.getDeclaredConstructor().newInstance(); registry.bind(beanId, bean); } catch (Exception e) { //Ignore if class not found } } Raymond On Sat, Oct 1, 2022 at 3:53 PM ski n wrote: > I use Camel standalone. > > I first thought that I maybe could set the bean with a st

Re: Autoregister beans

2022-10-01 Thread ski n
otations you can use to trigger custom > code. > > If you talk about plain standalone camel then its a bit more work to do, > but we do this with some classpath scanning such as what we can do when you > have camel-debug JAR on classpath or not. You could have your own service &

Autoregister beans

2022-10-01 Thread ski n
I can register a bean like this: Registry registry = context.getRegistry(); registry.bind("CurrentAggregateStrategy", new AggregateStrategy()); But I want this dependency to be optional, so I am not sure that the class (in this example AggregateStrategy) is on the classpath. Is it possible that

Re: how to create Camel HTTP route with async handling

2022-09-27 Thread ski n
mE7YJ7JDhzG27Sr8bH3Jimzsd8Grb8jOKeo8hpeIWcLsay%2Ba%2FHswgdAQlbQEebkrrApFd4m0JffPAerKCwi9A54BI2eZNq2xmPRHg%2FkUQzLX11l%2Fa387Zp1%2Bz8%3D> > > > Which the http component can wait for callback before responding back to > the request > > Thanks > > > On 26 Sep 2022, at 11:18 PM

Re: Load a route from Blueprint XML

2022-09-26 Thread ski n
Hi Alex, I seem you are sending the message to the direct endpoint before the xml-route is loaded. Couple of things you may try: 1) Start CamelContext before loading routes 2) Load the camel xml-route with the Camel context (multiple routes can be loaded in the CamelContext, so you just add it t

Re: how to create Camel HTTP route with async handling

2022-09-26 Thread ski n
I would check the Jetty component: https://camel.apache.org/components/3.18.x/jetty-component.html The Jetty component can consume HTTP requests and pass it to Kafka. Raymond On Sun, Sep 25, 2022 at 4:14 PM Chio Chuan Ooi wrote: > Hi All, > > I am trying to create an application which can e

Re: Building Apache Camel

2022-09-20 Thread ski n
You can either build with OpenJDK 11 with the option or build it with OpenJDK 17 without the option. The option: -XX:MaxPermSize=size Was already deprecated for a while and has been removed in Java 17. Raymond On Tue, Sep 20, 2022 at 10:27 AM FÖRSTERLING Björn < bjoern.foersterl...@cpb-softwa

Re: Encrypt header value.

2022-09-10 Thread ski n
@Jeremy Don't you mean Jasypt: https://camel.apache.org/components/3.18.x/others/jasypt.html On Sat, Sep 10, 2022 at 7:12 PM Jeremy Ross wrote: > Have you looked at the jsypt component? With it, you can store your > password encrypted, then access it using property placeholder syntax: > > ftps:

Re: Group Commands for parallel processing (dynamic routes)

2022-09-08 Thread ski n
Claus suggested, to use jms-group might be a good idea, and use cases > described in the page he refers to are very similar. > > If you have an idea to simplify this and remove the smell, please share. > > > > On Thu, Sep 8, 2022 at 4:20 AM ski n wrote: > > > Hi M

Re: Processor with constructor in a routetemplate

2022-09-08 Thread ski n
tps://camel.apache.org/components/3.18.x/others/main.html#_creating_a_custom_bean_with_constructor_parameters > > On Thu, Sep 8, 2022 at 2:52 PM Claus Ibsen wrote: > > > > > > > On Thu, Sep 8, 2022 at 2:39 PM ski n wrote: > > > >> Yes, that was, base

Re: Processor with constructor in a routetemplate

2022-09-08 Thread ski n
late can then be set with a normal templateParameter. Raymond On Thu, Sep 8, 2022 at 1:51 PM Claus Ibsen wrote: > You should NOT register the processor yourself, this is done by the > template bean thingy automatically > > On Thu, Sep 8, 2022 at 1:39 PM ski n wrote: > > > OK

Re: Processor with constructor in a routetemplate

2022-09-08 Thread ski n
d Java code with a new constructor and pass in a > string literal. Camel is not in use at that point. > > In your template bean example, then you need to use {{MyProcessor}} as the > bean name. > See the IMPORTANT note at: > > https://camel.apache.org/manual/route-template.h

Processor with constructor in a routetemplate

2022-09-08 Thread ski n
Hi, I have a routetemplate as follows: routeTemplate("processortemplate") .templateParameter("out") .from("direct:in") .process("MyProcessor") .to("{{out}}"); This works. The processor is registered an the called by reference. Now I added a constructor argum

Re: Group Commands for parallel processing (dynamic routes)

2022-09-08 Thread ski n
Hi Mansour, Your use case sounds a bit complicated. On one hand you need parallel processing, on the other hand you need blocks/sequential processing. This may have a bad smell, but I don't know the details of your use case. I would say try to come up with a way for real parallel processing where

Re: Types in routeTemplates

2022-09-07 Thread ski n
; Ah yeah we need a timeout that takes a string value > > .pollEnrich("myUrl).timeout("xxx") > > I just added that to 3.19 and 3.18.x > > > > On Tue, Sep 6, 2022 at 4:46 PM ski n wrote: > > > I like to create a route template with

  1   2   >