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

Re: Jetty and the Invalid SNI

2024-05-01 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

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

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

Re: Functions in Camel

2024-01-09 Thread ski n
% of the 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
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 be more &g

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. > > > > On

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",

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
it to, for 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 > timestam

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

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

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

Re: Route group

2023-11-17 Thread ski n
man 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

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

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 is

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

Re: replacement for direct-vm component

2023-11-07 Thread ski n
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 s

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). > >

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 > cave

Re: Stream closed while unzipping in a container

2023-11-03 Thread ski n
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: > > > > ZipF

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=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

Re: How to properly remove a routeConfiguration

2023-10-07 Thread ski n
; 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 tried it like

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

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

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);

Re: Threading question

2023-09-04 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

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

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 > > > >

EventNotifier and direct/seda endpoints in Camel 4

2023-08-01 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-08-01 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 (

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, > Sujeet > &

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

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
he 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 : > > > > Can you set the parameter globally li

Re: Camel JMS / Set message time to live

2023-04-03 Thread ski n
ng 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 queue or topic. Th

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

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

Re: Manage and monitor a group of routes

2023-02-11 Thread ski n
> > 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 be nice if Camel ca

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:

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

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

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.

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.

Re: metadata properties

2022-12-13 Thread ski n
a group? 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 route for exampl

Re: metadata properties

2022-12-13 Thread ski n
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 n wrot

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

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

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

Re: Request for input re: Dynamic Router EIP component

2022-11-05 Thread ski n
g 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 to expanding its > usefulness, or simplifying its use. So, if you have any suggestions, I > w

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

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 '?'.

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

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))

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

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 > >

Re: Choice in a route template

2022-10-10 Thread ski n
gt; 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
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 answer of Claus: > > > > An exchange in

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

Re: Autoregister beans

2022-10-01 Thread ski n
= 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 string

Re: Autoregister beans

2022-10-01 Thread ski n
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 > factory class you active on sta

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
onding back to > the request > > Thanks > > > On 26 Sep 2022, at 11:18 PM, Jeremy Ross wrote: > > The REST component as well. > > https://camel.apache.org/components/3.18.x/rest-component.html > > > On Mon, Sep 26, 2022 at 8:40 AM ski n wrote: &g

Re: Load a route from Blueprint XML

2022-09-27 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

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

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 <

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: > >

Re: Group Commands for parallel processing (dynamic routes)

2022-09-08 Thread ski n
gested, 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 Mansour, &g

Re: Processor with constructor in a routetemplate

2022-09-08 Thread ski n
/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, based on the documentation, the first th

Re: Processor with constructor in a routetemplate

2022-09-08 Thread ski n
e 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
nstructor 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.html#_binding_beans_to_

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

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
ed 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 a parameter of

Types in routeTemplates

2022-09-06 Thread ski n
I like to create a route template with a parameter of a specific Java type. For example the following routetemplate: routeTemplate("mypollenrich") .templateParameter("timeout","5000") .from("direct:in") .pollEnrich("myuri", "{{timeout}}","CurrentEnrichStrategy")

Re: Camel and OSGI support

2022-09-06 Thread ski n
Hi Bert, The mailing list is fine for general discussions regarding Camel. It's surely not just about questions on errors, but some share experience, blogs, releases, projects or just need to some help with decisions they need to make. This is all community based, so sometimes you are lucky that

Re: templated route intercept

2022-09-02 Thread ski n
@Nikolay What are you trying to accomplish functionally? On Fri, Sep 2, 2022 at 8:02 AM Claus Ibsen wrote: > Hi > > It does not make as much sense to use intercept in templates as intercept > is really for global scoped > https://camel.apache.org/components/3.18.x/eips/intercept.html > > Also

Re: transform CrontabRouteBuilder to rest service

2022-08-31 Thread ski n
Yes, this is possible. Probably the best way is to split the current route in multiple routes (each with its own function). You can even keep the crontab when needed. Something like this: rest("/api") .post("/transfertrain") .to("direct:transfertrain");

Re: Class Not Found betwwen Camel 3.14.3 and ( 3.14.4 or 3.14.5 )

2022-08-26 Thread ski n
java.xml.bind sounds like a Java 9+ thing. I had this recently: https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist On Fri, Aug 26, 2022 at 8:06 PM Daniel Langevin < daniel.lange...@shq.gouv.qc.ca> wrote: > Hi, > > I am using CAMEL 3.14.3 with KARAF

Re: Component activemq not found

2022-08-22 Thread ski n
reated. > - After setting an explicit reference on the connection factory in the > blueprints, I think that the ActiveMQ bundle of version 2.17.1 manages a > private package "javax.jms" that hides the publicly exported one... > > So... too many issues for something that appeared

Re: Component activemq not found

2022-08-22 Thread ski n
Hi, I think this is because of the history of Camel and ActiveMQ. Originally Camel was aligned with Apache ServiceMix (https://servicemix.apache.org/) ServiceMix contained: - Runtime: Apache Karaf - Several integration tools/frameworks: - Camel - ActiveMQ (Classic) - CXF (Webservices)

Re: How do I install and use Apache Camel?

2022-07-26 Thread ski n
Basically, Apache Camel is an integration framework. Thus it's not a tool that you can run. Mostly it goes like this: 1. Start a Java project 2. Add the Camel code 3. Run the Camel (there are various runtimes like Karaf, Main, Quarkus, Spring Boot). Main is the easiest. Some suggestions: 1.

Re: How to load/register a RouteTemplate at the CamelContext?

2022-07-25 Thread ski n
es like your example with timer. > Also your route template is wrong as its a source, (eg from timer) that you > cannot "call" from a route > > No jira as kamelet component is for kamelets so it expects kamelet:source > or kamelet:sink style route templates. > > >

Re: How to load/register a RouteTemplate at the CamelContext?

2022-07-25 Thread ski n
it is all > correct then there is a chance that you can "misuse" the kamelet component. > But use latest version. > > On Mon, Jul 25, 2022 at 8:21 AM ski n wrote: > > > OK, thanks (this was more or less what I was trying to avoid :) ) > > > > I thoug

Re: How to load/register a RouteTemplate at the CamelContext?

2022-07-25 Thread ski n
then from your route that wants to call then use direct:xxx to call the > new route. > > > > On Sun, Jul 24, 2022 at 11:19 PM ski n wrote: > > > Hi, > > > > I have a Camel routeTemplate like this: > > > > public class MyRouteTemplates extends

How to load/register a RouteTemplate at the CamelContext?

2022-07-24 Thread ski n
Hi, I have a Camel routeTemplate like this: public class MyRouteTemplates extends RouteBuilder { @Override public void configure() throws Exception { // create a route template with the given name routeTemplate("myTemplate") // here we define the required

Re: Camel Quarkus Script Component

2022-07-16 Thread ski n
Hi William, First the good news :) 1. Groovy is supported by Quarkus from 1.0 https://camel.apache.org/camel-quarkus/2.10.x/reference/extensions/groovy.html 2. JavaScript is not supported by Camel anymore. The reason is that the JavaScript engine (Nashorn) has been deprecated since Java 9 (and

Re: Memory problem with Camel split

2022-07-01 Thread ski n
Hi Florian, Did you also set a specific Strategy for the cache of the streaming: https://camel.apache.org/manual/stream-caching.html There you can set the threshold so that the stream is spooled to a disk instead of kept in memory. Raymond On Fri, Jul 1, 2022 at 3:49 PM EIBL Florian

  1   2   >