Re: Jetty and the Invalid SNI

2023-09-21 Thread Claus Ibsen
that we have to switch off the SNI check for Jetty > through some Secure Request Customizer, but I fail to understand how do > I pass it to the Jetty server; or maybe there is a more generic API for > doing that through the JSSE? > https://camel.apache.org/manual/camel-configuration-utilities.html > > > Thanks! > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: JMS Batch Consumer

2023-09-21 Thread Claus Ibsen
ecords per request was around 75 > when using the sjms-batch component) > > Two questions: > > 1- Are there are any news whether the possibility to consume message in > Batches from a JMS Broker will be reinstated in Camel 4? > > 2- Do you guys have any proposals how the desired beh

Re: InterceptSendToEndpoint and access the intercepted endpoint details?

2023-09-17 Thread Claus Ibsen
h I intercepted? > > For example if I have Log-component in my route and I use > InterceptSendToEndpoint to intercept the request, can I somehow check the > details of the intercepted Log-component (like parameters etc.)? > > Thank you in advance. > > Bes

Re: Parse xml or yaml snippet into a Processor

2023-09-17 Thread Claus Ibsen
that usually are parts of > the route? Camel 4. Like > > > > ${body[0]} > > > > or > > > - unmarshal: > csv: >delimiter: ";" >useMaps: "true" > > > Thank you! > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel & Virtual threads

2023-09-01 Thread Claus Ibsen
19th September). > > In the Camel 4 blog "What's new" it states that: > > "We plan to support Java 21 on next LTS released by the end of this year." > > Camel next LTS release (4.2) is expected around December. > > I was wondering what the plans here are

Re: Global limit to threads count used by Camel (engine + routes pools + ..)

2023-08-28 Thread Claus Ibsen
table amount of memory used > by the JVM (once setting heap, code caching and so on) > > Do you have any idea or documentation to point me to? > > Thank for your support. > > Regards, > Riccardo Modanese > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Load route from a yaml in an embedded Camel

2023-08-22 Thread Claus Ibsen
at the Resource api I'm failing to understand how do I signal > the loader that it is a "yaml" character sequence and that the location > might be fake. Should the getLocation() return something ending in > ".yaml" and how free am I to invent what a getScheme() method r

Re: How to handle an exception in completion while executing =

2023-08-18 Thread Claus Ibsen
ick allowing to wrap > an unknown/private impl of GenericFileProcessStrategy. > > Regards > Cc. > > -- > Mr. Petr Kužel, Software Engineer > Eurofins International Support Services s.à r.l. > Val Fleuri 23 > L-1526 LUXEMBOURG > > -O

Re: How to handle an exception in completion while executing =

2023-08-18 Thread Claus Ibsen
gt; Cc. > > -- > Mr. Petr Kužel, Software Engineer > Eurofins International Support Services s.à r.l. > Val Fleuri 23 > L-1526 LUXEMBOURG > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Load route from a yaml in an embedded Camel

2023-08-18 Thread Claus Ibsen
y, Camel 4. > Ideally it should work with a non-file streams as I generate the route > definitions from another snippet. I will provide the id and other > metadata if needed. > > Thank you! > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: How to receive Server side events

2023-08-15 Thread Claus Ibsen
e subject to the attorney-client privilege or other > confidentiality protections. If you are not a designated recipient, you may > not review, use, copy or distribute this message. If you received this in > error, please notify the sender by reply e-mail and delete this message. > Thank you. > *** > Corporate Headquarters Mailing Address: BD (Becton, Dickinson and Company) > 1 Becton Drive Franklin Lakes, NJ 07417 U.S.A. > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Alternative for ThreadPoolRejectedPolicy.DiscardOldest in Camel 4?

2023-08-15 Thread Claus Ibsen
edExecutionHandler for > discarding, so I don't see a reason for that. > > I know that I can create the executor service myself with plain Java, but > I still wanted to ask if I'm missing something in Camel APIs. > > Jannik > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Issue with ProducerTemplate (processor not started)

2023-08-11 Thread Claus Ibsen
u can also call it directly from template, and not have that route result = producer.requestBodyAndHeader("sql:SELECT", "", "CamelSqlQuery", query); > -Original Message- > From: Claus Ibsen > Sent: Friday, 11 August 2023 22:54 > To: users@camel.apache.org >

Re: Issue with ProducerTemplate (processor not started)

2023-08-11 Thread Claus Ibsen
oks like this: > from("direct:executeQuery") > .routeId("Execute resolvement query") > .toD("sql:${header.sqlquery}") > ; > > -Original Message- > From: Claus Ibsen > Sent: Friday, 11 August 2023 22:29 > To: users@camel.apache.

Re: Issue with ProducerTemplate (processor not started)

2023-08-11 Thread Claus Ibsen
> initialized. > > My question is: > How can I make sure the producer is initialized properly? > Is this a synchronization issue cause I do use parallelProcessing and I > must use some synchronizing strategies? > Or what could be the problem or the method to help for this issue? > > Camel Version: 3.20.6 > Java: 17 > Sping Boot 2.7.12 > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Set UnitOfWorkFactory in CamelContext

2023-08-10 Thread Claus Ibsen
Context.java > > > > But now with the latest version it is not there. > > > > Am I missing something here? > > > > On Thu, Aug 10, 2023 at 1:33 PM Claus Ibsen > wrote: > > > > > > Hi > > > > > > Read the migration guid

Re: Upgrade to Camel Version Set ErrorHandler

2023-08-10 Thread Claus Ibsen
.concat("] - result : NO: > ").concat(exchange.getException().getMessage())); > } > } > }); > } > > Please suggest if there is some alternative way of achieving the same. > > On Thu, Aug 10, 2023 at 1:44 PM Claus Ibs

Re: Upgrade to Camel Version Set ErrorHandler

2023-08-10 Thread Claus Ibsen
doing the same. > With the new ErrorHandlerFactory interface I am getting new methods named > as > > public ErrorHandlerFactory cloneBuilder() > > public boolean supportTransacted() > > Any suggestions/help will be appreciated. > > > > -- > Regards, > Kushagra > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Set UnitOfWorkFactory in CamelContext

2023-08-10 Thread Claus Ibsen
I use to set my UnitOfworkFactory using below pattern. > > camelContext.setUnitOfWorkFactory(customUnitOfWorkFactory); > > Now with the latest version of Camel, I just wanted to understand the > new mechanism of doing the same. > > > -- > Regards, > Kushagra > --

Re: Using the Multicast processor in another EIP component?

2023-08-06 Thread Claus Ibsen
le to > successfully use it? It would be really beneficial, including the ability > to use a proven/tested aggregation implementation. > > Thanks, > Steve > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Connection Pooling in (S)FTP Component

2023-08-02 Thread Claus Ibsen
; > ah sorry for that! > But we do not find your response? > > Could you please copy/paste the response again > Regards Christian > > > > > > Am 02.08.23, 08:47 schrieb "Claus Ibsen" claus.ib...@gmail.com>>: > > > Hi > > > I alread

Re: Connection Pooling in (S)FTP Component

2023-08-02 Thread Claus Ibsen
gt; > If you have received this email accidentally or in error, we point out > that, in accordance with § 161 para. 4 TKG 2021 (Telecommunications Act), > the contents of this email and the fact of its receipt must not be > recorded, exploited or communicated to unauthorized persons. We ask you to > delete the message from your system and to contact us. > Under this link you will find information about the processing of your > personal data and about your rights as a data subject > https://www.spar.at/service/datenschutzhinweise > > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: EventNotifier and direct/seda endpoints in Camel 4

2023-08-01 Thread Claus Ibsen
e StepStartEvent (or StepCompletedEvent). Or is this on > on lifecycle level and not on a message exchange level? > > -- > > Raymond > > > On Tue, Aug 1, 2023 at 8:58 AM Claus Ibsen wrote: > > > Hi > > > > No there is not > > > > On Tue, Aug 1, 2023

Re: EventNotifier and direct/seda endpoints in Camel 4

2023-08-01 Thread Claus Ibsen
s > like ExchangeSent give more events, but they are not 1 on 1 with a specific > route. > > Is there a way to get/keep this functionality in Camel 4 when switching to > the direct endpoint? > > -- > > Raymond > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: loading routes from external xml files

2023-07-31 Thread Claus Ibsen
quot;getRoutesLoader()" does not exist in > DefaultCamelContext, nor in ExtendedCamelContext... so how should we do it > then? > Thanks > > -- > Chipu > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Splitter does not anymore support attachments?

2023-07-29 Thread Claus Ibsen
e); > } else { > return null; > } > My proposal would be to also add the attachments here to the new Exchange. > Alternatively newExchange.setIn() could also set the attachments. Any > other solution proposal is of course also welcome. > > Regards, > > Jörg > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel Kafka Consumer Node -1 disconnected error

2023-07-28 Thread Claus Ibsen
MSK and Confluent and have seen this error > before. Typically it is security related. > Kafka is really bad about not giving you the correct info to figure out the > issue. > > > On Fri, Jul 28, 2023 at 9:35 AM Claus Ibsen wrote: > > > Hi > > > > There is no

Re: DSL to processors code

2023-07-28 Thread Claus Ibsen
w connectors and > processors get configured from the DSL and the magic behind this. I suspect > it's related to the configurator classes but i'm not entirely sure. Thanks! > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel Kafka Consumer Node -1 disconnected error

2023-07-28 Thread Claus Ibsen
ot;Message is : ${body}"); > > the is a valid url which is confidential. the camel version is 3.2.0. > > I am getting the same error when I try to connect to kafka through core > java as well. Kindly help me > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Exception with Routes on Windows / Linux, Expected w3c Document

2023-07-27 Thread Claus Ibsen
t; -Ursprüngliche Nachricht- > Von: Penagos Jaime > Gesendet: Donnerstag, 27. Juli 2023 13:48 > An: 'users@camel.apache.org' > Betreff: AW: Exception with Routes on Windows / Linux, Expected w3c > Document > > I am using maven-assembly-plugin by default. Will check the o

Re: Exception with Routes on Windows / Linux, Expected w3c Document

2023-07-27 Thread Claus Ibsen
gy().setSpoolDirectory("./download/tmp"); > context.getStreamCachingStrategy().setSpoolThreshold(64 * 1024); > context.getStreamCachingStrategy().setBufferSize(16 * 1024); > > context.setStreamCaching(true); > > > Because of the transforming objects I have (without this the > (un)marshalling wont work. > > I tested these routes and somehow can't find anything that helps. POM has > also the dependencies I need. Why wont it work on a Linux server? > > Thanks in advance for your time and advice with this problem. > > Best regards, > Jaime Penagos > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: SNMPv3 Traps

2023-07-24 Thread Claus Ibsen
copying of > this e-mail is strictly prohibited. If you received this e-mail in error, > please return the e-mail to the sender, delete it from your computer, and > destroy any printed copy of it. > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Counterintuitive behavior in S3 producer and consumer

2023-07-15 Thread Claus Ibsen
t; bucket name in the Camel URI to override the settings, but apparently it > doesn't take. I'm wondering if this qualifies as a bug or perhaps something > to point out in documentation. > > Happy to attach a test if folks are having trouble reproducing. > > Anthony > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: [VOTE] Release Camel K Runtime 2.16.0

2023-07-05 Thread Claus Ibsen
gt; > > Please test this release candidate and cast your vote. > > [ ] +1 Release Apache Camel K Runtime 2.16.0 > [ ] -1 Veto the release (provide specific comments) > > The vote is open for at least 72 hours. > > I start the vote with my +1. > > Thanks and regards, > Pasquale Congiusti > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Jetty HttpServletResponse sendRedirect

2023-07-05 Thread Claus Ibsen
nding.writeResponse shows it doesn't > check for HttpServletRequest.isCommitted(), only for the body to be blanc. > > Is there any solution to allow users to send redirects in their scripts > in the processors? Couldn't find a dedicated Camel HttpMessage method > for that. > > --fedd > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: [VOTE] Release Apache Camel Kamelets 3.21.0

2023-07-03 Thread Claus Ibsen
s/releases/tag/v3.21.0 > > > > > > > > > > Please cast your vote. > > > > > > > > > > [ ] +1 Release camel-kamelets 3.21.0 > > > > > [ ] -1 Veto the release (provide specific comments) > > > > > > > > > > The vote is open for at least 72 hours. > > > > > > > > > > Here's my +1. > > > > > > > > > > Thanks, > > > > > Andrea Cosentino > > > > > > > > > > > > > > > > > -- > > > > Zineb Bendhiba > > > > > > > > > > > > > -- > > Otavio R. Piske > > http://orpiske.net > > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Issue in resolving endpoint with property having period

2023-06-14 Thread Claus Ibsen
gins.shade.resource.Services > ResourceTransformer"> > > > We used Camel 3.40 but if all goes well will move to 3.14.8 as suggested > here. > > > Thanks all for the help and support. > > > Thanks & Regards, > Sujeet > > > On Fri, 9 Jun 2023, 16:2

Re: interceptSendToEndpoint broken when setting address of CxfEndpoint

2023-06-13 Thread Claus Ibsen
"setAdress" instead or passing the endpoit > uri directly like in the following example: > > CxfEndpoint endpoint = (CxfEndpoint) camelContext.getEndpoint("cxf:// > http://remotehost/ws/service;); > > I will try to figure out why this was not possible for us. > But in the meantime: Maybe you have some other hints for me?! > > With kind regards > Bert Speckels -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: 3.20.4 Bug(?): Route's ErrorHandler not working if exception happens on Kamelet

2023-06-13 Thread Claus Ibsen
Hi Okay so your use-cases will then work out of the box in 3.20.6 onwards. On Tue, Jun 13, 2023 at 2:59 PM Claus Ibsen wrote: > Hi > > I tracked down what I consider a little bug > https://issues.apache.org/jira/browse/CAMEL-19443 > > With the bug fix then this use-case

Re: 3.20.4 Bug(?): Route's ErrorHandler not working if exception happens on Kamelet

2023-06-13 Thread Claus Ibsen
nt concept that regular route templates that would not. So we may need to consider CAMEL-19411 whether we want to do this in Camel v4 or not. On Sat, Jun 3, 2023 at 10:48 AM Claus Ibsen wrote: > Hi > > Yes its a good idea to make kamelets like a "black box" and they should

Re: Issue in resolving endpoint with property having period

2023-06-09 Thread Claus Ibsen
t; >> > > > > >> > Thanks & Regards, > > > >> > Sujeet > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > On Mon, Jun 5, 2023 at 7:37 PM ski n > > wrote: > > > >> > > > > >> > > 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 < > > > >> sujeetkumarsi...@gmail.com> > > > >> > > 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 startup. > > > >> > > > > > > >> > > > Caused by org.apache.camel.ResolveEndpointFailedException: > > Failed to > > > >> > > > resolve endpoint: > > timer://notification?fixedRate=true=5000 > > > >> due > > > >> > to: > > > >> > > > Error binding property (period = 5000) with name: period on > > bean: > > > >> > > > timer://notification?fixedRate=true=5000 with value: > > 5000 > > > >> > > > > > > >> > > > If I remove period from above endpoint it starts working. Same > > thing > > > >> > > > happens for time, maxAge etc. > > > >> > > > > > > >> > > > Any help would be appreciated. > > > >> > > > > > > >> > > > Thanks & Regards, > > > >> > > > Sujeet > > > >> > > > > > > >> > > > > > >> > > > > >> > > > > > > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Guaranteed deliveries for spring-rabbitmq producer

2023-06-05 Thread Claus Ibsen
ytel Reply > Via del Giorgione, 59 > 00147 - Roma - ITALY > phone: +39 06 844341 > mobile: +39 335 1900199 > m.cordi...@reply.it > www.reply.it > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: 3.20.4 Bug(?): Route's ErrorHandler not working if exception happens on Kamelet

2023-06-03 Thread Claus Ibsen
sion: > > >> > > constant: > > >> > > expression: Hello World > > >> > > - marshal: > > >> > > json: > > >> > > library: jackson > > >> > >

Re: Simple Language

2023-06-03 Thread Claus Ibsen
x via simple > Please see the following example: > > .setHeader("result", simple("${header.CamelFileName.replaceAll('^.*.pdf', > 'Hello')}")) > > But it does not work at all. Do I miss something? > > Thanks for any help > Michael > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

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

2023-05-23 Thread Claus Ibsen
ing > any other proprietary connector). > > Want to look for a practical example (or build one in the process). > > ચિરાગ/चिराग/Chirag > -- > Sent from My Gmail Account > -- Claus Ibsen - @davsclaus Camel in Action

Re: Netty TCP component throwing No response received even when the response was read

2023-05-23 Thread Claus Ibsen
tty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:819) > ~[netty-transport-4.1.55.Final.jar:4.1.55.Final] > at > > io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) > ~[netty-common-4.1.55.Final.jar:4.1.55.Final] > > > -- > Regards, > Rohan Emmanuel > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Not able to use aggregate with Splitter in Camel Version 3.20.0

2023-05-20 Thread Claus Ibsen
tionStrategy"/> > > > > < from uri : splitter> > > $ > *completionSize="10"* completionTimeout="1000"> > > true > > > > > >

Re: Unable to write JAVA object using netty TCP Producer

2023-05-19 Thread Claus Ibsen
preciated. > netty component always expects the data to be of the type > "io.netty.buffer.ByteBuf"? > I also tried sending a string, I was able to read the string on the server > only if I convert the exchange body to io.netty.buffer.ByteBuf type > > On Fri, May 19

Re: Unable to write JAVA object using netty TCP Producer

2023-05-19 Thread Claus Ibsen
i tried the " type="io.netty.buffer.ByteBuf"/>" but it gives out an error during > coversion. > > can anyone guide me on how to send Java obj data using Netty TCP producer.? > -- > Regards, > Rohan Emmanuel > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-18 Thread Claus Ibsen
one. I can imagine it is not a trivial development for a rarely > used development feature and is likely to be marked as "will not > implement" so let's leave it as it is. > > On 18.05.2023 09:06, Claus Ibsen wrote: > > On Wed, May 17, 2023 at 10:59 PM Fyodor Kravchenk

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-18 Thread Claus Ibsen
n users can turn this on via some new option (maybe name it only existing files, or some better name? ). withRoutesReloadOnlyExistingFiles(true) You are welcome to create a JIRA ticket for that. > On 17.05.2023 22:58, Claus Ibsen wrote: > > Hi > > > > What is your goal w

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-17 Thread Claus Ibsen
> ${exec.appArgs}" -Dexec.appArgs= > > -Dexec.mainClass=camelmaintry.CamelMainTry > > -Dexec.executable=/home/fedd/Programs/graalvm-ce-java19-22.3.0/bin/java > > org.codehaus.mojo:exec-maven-plugin:3.1.0:exec > > > > (nothing special in the "exec.

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-17 Thread Claus Ibsen
late response, only now I've got the rejection > notification for the html-formatted email) > > On 15.05.2023 11:01, Claus Ibsen wrote: > > Hi > > > > Are you loading these files from classpath or file system directly. > > And what Camel version do you use

Re: [VOTE] Release Apache Camel Kamelets 3.20.4

2023-05-16 Thread Claus Ibsen
e vote is open for at least 72 hours. > > Here's my +1. > > Thanks, > Andrea Cosentino > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-15 Thread Claus Ibsen
. If I specify the directory explicitly it > works, but I need it to locate the routes in dozens of directories. > > How do I fix it? > > (While we're at it I would also like to make it reload on the fly for > the testing purposes, not all of the .yaml files but restricting it

Re: camel examples main yaml doesn't work for me

2023-05-11 Thread Claus Ibsen
Hi I just created a tag for the 3.20.4 release so you can use this https://github.com/apache/camel-examples/tree/camel-examples-3.20.4 On Thu, May 11, 2023 at 9:49 PM Claus Ibsen wrote: > Hi > > Those examples on main branch is for the main branch camel-core which > currently is

Re: camel examples main yaml doesn't work for me

2023-05-11 Thread Claus Ibsen
/bin:/xxx/graalvm-ce-java19-22.3.0/bin > > I have also Java 8 installed somewhere but I tried to make sure the > modern java is used. > > What am I doing wrong? > > --fedd > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: [VOTE] Release Apache Camel Kamelets 4.0.0-M3

2023-05-11 Thread Claus Ibsen
s) > > The vote is open for at least 72 hours. > > Here's my +1. > > Thanks, > Andrea Cosentino > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel Jbang & JSON Logging & ExchangeId as mdc/ndc?

2023-05-11 Thread Claus Ibsen
"${json:exception:message}", > "error.stack_trace": "${json:exception:stackTrace:text}" > } > > > And I think the mdc (labels) or ndc (tags) could be a suitable place > to hold this information. > > Also the idea is that if my integration contains a L

Re: Book on camel 3.20.x

2023-05-11 Thread Claus Ibsen
tion 2. > > Reference documentation does not cover details and a lot of time is getting > invested in figuring out solutions. > > Thanks > Rishi > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Shutdown of camel routes

2023-05-11 Thread Claus Ibsen
y route and they didn't; > get a chance to process. > > Is there any way to stop the Quickfix engine first and then stop the route > or any other way to sequence the shutdown? > > > > -- > Regards > Gaurav > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: ProducerTemplate is waiting on something

2023-05-04 Thread Claus Ibsen
apache.camel->routes->route-id->Attributes->Exchanges Inflight, but you > mentioned there is some way to see the list of actual exchanges. > What is the path in jconsole to see it? > > Dmitry > > > > From: Claus Ibsen > Sent: Thursday, May 4, 2023 4:05 AM > To:

Re: ProducerTemplate is waiting on something

2023-05-04 Thread Claus Ibsen
gle > ApplicationScoped instance): > > @Inject > @MyProducerTemplate > ProducerTemplate producerTemplate; > > Is there anything wrong with re-using single instance? If not, what may be > the problem? > > Thanks, > Dmitry > > > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Adding route builder when camel is already started doesn't respect startup order

2023-04-28 Thread Claus Ibsen
p order manager in > https://github.com/apache/camel/blob/camel-3.4.4/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java#L3070 > basically being useless. > > Does anyone know a way around this in Camel 3.4.4? > > Best regards, > Jannik > >

Re: A bigger Camel example

2023-04-28 Thread Claus Ibsen
sted three issues and two pull requests, > now I hope this will be useful to someone else as well and that I'll be > able to contribute more to Camel and the community. > > js. > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Karaf, Camel, and Spring

2023-04-27 Thread Claus Ibsen
g 5.3.27 ? > > Thanks for your help. > > Regards. > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: spring-main & addRoutesBuilder : don't work together ?

2023-04-27 Thread Claus Ibsen
rt my app, i see "Routes startup > (started:0)", and nothing after that. > I also tested to add in the camelContext, With that, all > the routes starts OK, but no conditions possible... > > How can i have a situation like old 2.25 ? > > Thanks > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: camel-pulsar performance

2023-04-19 Thread Claus Ibsen
vertised message > rate. If not, how can I determine what is slowing down Pulsar's > performance in my use case? > > Thanks, > Steve > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: How to clear the cache of MemoryIdempotentRepository

2023-04-19 Thread Claus Ibsen
mpotentRepository(2000)).skipDuplicate(false) > > > .choice().when(header(Exchange.DUPLICATE_MESSAGE).isEqualTo(true)).throwException(ImportException.class, > "Line/Unit: ${exchangeProperty.CamelSplitIndex}: Found Duplicates").end() > > // do some processing &

Re: JQ: Function strftime/1 does not exist

2023-04-18 Thread Claus Ibsen
> https://github.com/eiiches/jackson-jq and based on the documentation, > > I think it should support strftime: > > > > > > > https://github.com/eiiches/jackson-jq/blob/ad9dba1eb618640cf8c72634a5ee99c04ddc8e5b/README.md?plain=1#L530 > > > > Also tested in this format but sam

Re: Sending exchange through Pulsar endpoint, exchange properties disappear

2023-04-14 Thread Claus Ibsen
sequentialstart0limit100 > > Am I doing anything obviously wrong? Or is the Pulsar component eating > exchange properties? > > Thanks, > Steve > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel-Jbang export errors for camel version older then 3.14

2023-04-11 Thread Claus Ibsen
70) > at > org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:154) > at main.CamelJBang.main(CamelJBang.java:36) > > Regards, > > ચિરાગ/चिराग/Chirag > -- > Sent from My Gmail Account > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Sending with ProducerTemplate, how to marshal with ProtobufDataFormat

2023-04-10 Thread Claus Ibsen
nks, > Steve > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel JMS / Set message time to live

2023-03-31 Thread Claus Ibsen
ers ? > > Thanks for your help. > > Regards. > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Trying to set the current time in camel using quartz

2023-03-24 Thread Claus Ibsen
l fire to the destination from the input source. > > Is there any thing in camel to set the current using Quartz Scheduler? > > > > Thanks, > > Narasimha Gudisa > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Enum comparing does not work when toString is overridden

2023-03-22 Thread Claus Ibsen
e, copy, > disclosure or distribution of this e-mail is strictly prohibited. If you > are not the intended recipient, please notify AddSecure immediately and > destroy all copies of this e-mail. AddSecure does not accept any liability > for breach of security, error or virus that may result from the

Re: Using specificAvroReader with Camel JBang and kafka

2023-03-17 Thread Claus Ibsen
n > 'specific.avro.reader' was supplied but isn't a known config. > > and > 2023-03-16 07:14:39.661 WARN 2098 --- [X]] > fka.clients.consumer.ConsumerConfig : The configuration > 'basic.auth.user.info' was supplied but isn't a known config. > > Is there something else I need to configure to be able to deserialize > avro messages? > > Thanks > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Enum comparing does not work when toString is overridden

2023-03-15 Thread Claus Ibsen
s strictly prohibited. If you > are not the intended recipient, please notify AddSecure immediately and > destroy all copies of this e-mail. AddSecure does not accept any liability > for breach of security, error or virus that may result from the > trans­mission of this message. > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: camel run * --camel-version=3.20.2

2023-03-14 Thread Claus Ibsen
che.camel.main.MainSupport : Apache Camel (JBang) 3.20.2 > shutdown > > $ camel run * --camel-version=3.20.1 > No Camel integration files to run > > > Should this be a JIRA? attached is highlighted documentation page. > > > > ચિરાગ/चिराग/Chirag > -- > Sent from My Gmail Account > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Blocking message transfer to MQ

2023-03-13 Thread Claus Ibsen
relation ID as the ID of the sent message. If the ID and correlation ID > match, the message will be considered as complete and Camel will send the > next message. > > This sounds like a common pattern. Is there an out of box support for > implementing it? > > Regards, > Yash >

Re: Karavan + JBang + YAML DSL ; trying to use xtokenize

2023-03-02 Thread Claus Ibsen
sion(XMLTokenizeLanguage.java:119) > > at > org.apache.camel.reifier.language.XMLTokenizerExpressionReifier.createExpression(XMLTokenizerExpressionReifier.java:42) > > at > org.apache.camel.reifier.language.ExpressionReifier.createExpression(ExpressionReifier.java:1

Re: ConsumerTemplate waiting indefinitely for Response

2023-03-02 Thread Claus Ibsen
return the body of the file, just > an empty string. Maybe creating an Endpoint could help? I will try to test > if it loads the information I need. > > *fingers crossed* > > -Ursprüngliche Nachricht- > Von: Claus Ibsen > Gesendet: Donnerstag, 2. März 2023 08:47 >

Re: PollEnrich with File from classpath

2023-03-01 Thread Claus Ibsen
esources/supplier/xxx/article?fileName=ExcelFooter.txt=true=false") > But I need to replace the classpath 'src/main/resources' folder, cause > otherwise it doesn't work when its deployed. > How to PollEnrich a file from classpath? > > Camel: 3.20.2 > Spring Boot 2.7.8 > -- C

Re: ConsumerTemplate waiting indefinitely for Response

2023-03-01 Thread Claus Ibsen
id > and Camel won't continue? What could be the issue here? I double checked > (and also used the noop parameter to be certain the file stays in the same > folder) > > Thanks for your advice, > > Best regards, > Jaime Penagos > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Karavan + JBang + YAML DSL ; trying to use xtokenize

2023-03-01 Thread Claus Ibsen
Hi Oh can you try using expression instead of path, so its expression: xtokenize: id: xtokenize-460a expression: //Batchmaster mode: w On Wed, Mar 1, 2023 at 10:13 PM Claus Ibsen wrote: > Hi > > Ah there i

Re: Karavan + JBang + YAML DSL ; trying to use xtokenize

2023-03-01 Thread Claus Ibsen
https://camel.apache.org/schema/spring/camel-spring.xsd;> > > > > > > > //BatchMaster > > > > > > > > Trying to redefine this to be Yaml so that this could be > edited/maintained thru Karavan. > > ચિરાગ/चिराग/Chirag >

Re: KameletBinding & CloudEvents & Camel JBang & Documentation

2023-03-01 Thread Claus Ibsen
a1 > > > kind: KameletBinding > > > metadata: > > > name: test-binding > > > spec: > > > source: > > > ref: > > > kind: Kamelet > > > apiVersion: camel.apache.org/v1alpha1 > > >

Re: Karavan + JBang + YAML DSL ; trying to use xtokenize

2023-02-28 Thread Claus Ibsen
nize. > b) how to provide that using Karavan (Screenshot attached). > > Info: > Karavan running within Visual Studio Code on Windows. Route running > under Jbang 3.20.2 on Windows. > > Regards, > > ચિરાગ/चिराग/Chirag > -- > Sent from My Gmail Account > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Possible performance issue invoking a bean method with a string parameter

2023-02-27 Thread Claus Ibsen
;alsoSlow2\")") > .to("bean:myBean?method=myMethod(\"'fast'\")"); > } > } > > > > public class MyBean { > public void myMethod(String str) { > System.out.println("str = " + str); > } > } > > I am using Apache Camel 3.20.2 > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: HTTP handlers with Camel Undertow endpoint

2023-02-24 Thread Claus Ibsen
uld not find any examples. Could someone please tell us how handlers > are supposed to be configured to get them working ? > > Thank you in advance! > Arnaud > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Start a route with aggregation fails due to NPE in AggregateProcessor

2023-02-18 Thread Claus Ibsen
micro service instance. > > for (String key : keys) { > Exchange exchange = aggregationRepository.get(camelContext, key); > // grab the timeout value > long timeout = > exchange.getProperty(ExchangePropertyKey.AGGREGATED_TIMEOUT, 0L, > long.class); > > Is my assumptio

Re: camel init works - but leaves errors

2023-02-17 Thread Claus Ibsen
चिराग/Chirag > -- > Sent from My Gmail Account > > On Thu, Feb 16, 2023 at 3:52 PM Claus Ibsen wrote: > > > > Hi > > > > Thanks for reporting - yeah that smells like a windows problem/bug with > > camel-jbang. > > Can you create

Re: camel init works - but leaves errors

2023-02-16 Thread Claus Ibsen
uteUserObject(CommandLine.java:2041) > at picocli.CommandLine.access$1500(CommandLine.java:148) > at > picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461) > at picocli.CommandLine$RunLast.handle(CommandLine.java:2453) >

Re: Using Java processors/aggregators with YAML & Camel JBang

2023-02-15 Thread Claus Ibsen
the application needs. > > --- > > > > I think I could package the java-file into a jar and then use that as > > a dependency but I would like to use java-files if possible. And if > > possible, embedding them inside the YAML sounds interesting. > > > > I think I'm missing something simple as it is still early morning but > > if anyone has any tips to offer, I'm happy for the assistance. > > > > Kind regards, > > Mikael > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Using Java processors/aggregators with YAML & Camel JBang

2023-02-15 Thread Claus Ibsen
. > > I think I'm missing something simple as it is still early morning but > if anyone has any tips to offer, I'm happy for the assistance. > > Kind regards, > Mikael > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Smooks Component

2023-02-15 Thread Claus Ibsen
** B2B Suite) > > Thanks for your help > Michael > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel REST Component and Jersey to trigger Camel Routes withg Java DSL (without Springboot)

2023-02-15 Thread Claus Ibsen
mples git or in the camel website > where I can see how is it done? Somehow I included the parameters in the > web.xml and the context paths and it doesnt seem to work... > > Thank you so much for the advice > > -Ursprüngliche Nachricht- > Von: Claus Ibsen > Gesendet:

Re: Camel REST Component and Jersey to trigger Camel Routes withg Java DSL (without Springboot)

2023-02-15 Thread Claus Ibsen
t; online has to to with it... not sure how should I continue... any advice? I > am working with Camel 3.20.2, Java 11 and Tomcat 9. > > Thanks for your answer, > > Best regards > -- > Jaime Penagos > > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Manage and monitor a group of routes

2023-02-11 Thread Claus Ibsen
event. > > From an integration point of view, I am only interested in what goes in and > out the integration and how many messages that are. Or I am interested > what messages are going into and out a single route (as a processing step). > > Is there a way to work with integrations opposed to routes? What are the > possibilities in Camel? > > Raymond > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Pausable Kafka Consumer Unit Test

2023-02-11 Thread Claus Ibsen
rus being passed on. If > you have received this e-mail in error please notify > postmas...@virginwines.co.uk | Company Name: Virgin Wine Online Ltd. | > Company Registration No.: 03800762 > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

<    1   2   3   4   5   6   7   8   9   10   >