Re: Camel Spring Boot unable to load routes from a jar file

2023-02-10 Thread Claus Ibsen
8) due to the internal platform version. We plan > to upgrade Spring Boot later this year, but for now we have to go with this > version. > > -Original Message----- > From: Claus Ibsen > Sent: Friday, February 10, 2023 1:54 AM > To: users@camel.apache.org > Subject: Re: Camel Spr

Re: Camel Spring Boot unable to load routes from a jar file

2023-02-09 Thread Claus Ibsen
mel/*.yaml > > If I specify the spring boot property to be a single file (route1.yaml), > then the route is loaded fine. But specifying it as "*.yaml" doesn't work. > > Appreciate any pointers on how to resolve this issue. > > Thanks, > Harnish Patel > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Milo Component throws " Skipping validation for certificate"

2023-02-07 Thread Claus Ibsen
ilo project > > Thanks, > Karthik > > > > On Thu, 2 Feb, 2023, 3:30 pm Claus Ibsen, wrote: > > > Hi > > > > Not so much we can help, try upgrading to 3.20.1. > > I dont know so much about Eclipse Milo. You can also try to reach out to > > that team.

Re: Easier Content-based dynamic routing

2023-02-06 Thread Claus Ibsen
; .unmarshal().csv() > .split(body()).toD("jms:queue:csv.record[2]"); > > -Yash > > On Mon, 6 Feb 2023 at 20:41, Claus Ibsen wrote: > > > Hi > > > > Yes, look at toD which is a dynamic "to". > > > > > > On Mon, Feb 6,

Re: Easier Content-based dynamic routing

2023-02-06 Thread Claus Ibsen
ch line, read the third field and use it as the name > of the queue to which the first and second field are written. > E.g. > from("file://myfile.txt").to("jmsqueue:"+Line[2]) > > Is something like this possible with Camel? > > -Yash > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Components in 4.0

2023-02-06 Thread Claus Ibsen
ponent has been renamed or has an alternative (say ActiveMQ > --> SJMS, RabbitMQ --> AMQP) then it would be nice if they are listed in a > table and this is mentioned in a separate column with a link to the > alternative component. > > This will make upgrading easier f

Re: Milo Component throws " Skipping validation for certificate"

2023-02-02 Thread Claus Ibsen
wrote: > Hello , > > 3.18.2 > > > Thanks , > Karthik > > > On Wed, 1 Feb, 2023, 9:01 pm Claus Ibsen, wrote: > > > Hi > > > > What version of Camel do you use? > > > > On Wed, Feb 1, 2023 at 12:12 PM KARTHIK PRABHU N < > > kar

Re: CamelBlueprintTestSupport / strange OSGi context

2023-02-01 Thread Claus Ibsen
ll, Liquibase fails, and all the > application code too. > > Could someone explain why the OSGi context of the test fails > retrieving bundles, while it seems to work for all the rest ? > > Can we do something in the test setting to enable the expected behavior ? > > Thanks in advan

Re: Camel-JBang - File -> Split -> File

2023-02-01 Thread Claus Ibsen
y.java:274) > ~[camel-base-3.19.0.jar:3.19.0] > at > org.apache.camel.support.MessageSupport.getMandatoryBody(MessageSupport.java:123) > ~[camel-support-3.19.0.jar:3.19.0] > ... 22 more > > I am using camel 3.19.0. > > Is there a better way of doing this? > > ચિરાગ/चिराग/Chirag > -- > Sent from My Gmail Account > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Milo Component throws " Skipping validation for certificate"

2023-02-01 Thread Claus Ibsen
his issue, I tried > to go through the milo stack and client library, but I somehow lost in > between understanding the logic. > > Could please let us know at which scenario this issue encountered. > > > Thank you for the support, > > N. KP > -- Claus Ibsen -

Re: ProducerTemplate (or something similar) support in Camel JBang?

2023-01-31 Thread Claus Ibsen
o this manually or via JMS client tools. This is of course a great way to do that to use the "real thing". But sometimes you also want to be quick and if Camel can help, then send via Camel. You are welcome to create a JIRA. -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: EventNotifier filters

2023-01-31 Thread Claus Ibsen
yCollector); > > > Add event notifiers for each route (or a group route) like the above code. > Or is there a smarter / better way? And are there performance requirements > to take into account when using this in production? > > BTW I couldn't find a guide about the usage of e

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

2023-01-30 Thread Claus Ibsen
files, and in some of these > cases, they use a multicast. > The multicast seems to be the cause of the repeated events. > > I've tried setting the multicast to use the same unit of work, as I > suppose that the same UoW ualo uses the same exchange, but it doesn't > change event

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

2023-01-30 Thread Claus Ibsen
terpillar.testing.SpyEventNotifier - Spy > counts completed exchange : 5 [ID=29A6D5065A7A1B6-0002 / > route=diff_bbbmmm002-f002] > > Is it a bug, or what is the real expected behavior of these events ? > Does it come from the seda component ? > > Thanks for your help. > > Regards. > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Jira Source Kamelet / Jira component & 3.20.1: Could not find artifact com.atlassian.sal:sal-api:jar:4.4.2 in central (https://repo1.maven.org/maven2)/

2023-01-29 Thread Claus Ibsen
ories. > > I wonder, given there are hundreds of components, is the > Jira/Atlassian a special case or are there some other component & > repositories that will have the similar issues? > > Thanks again and have a nice weekend. > > Best regards, > Mikael >

Re: Jira Source Kamelet / Jira component & 3.20.1: Could not find artifact com.atlassian.sal:sal-api:jar:4.4.2 in central (https://repo1.maven.org/maven2)/

2023-01-28 Thread Claus Ibsen
n.net/jira > jql: project=CamelTest > steps: > - to: > uri: >- > > http://https://webhook.site/73458678-284f-4c01-a8b8-d3c09a7dfaaaa > > And here's one way to run it: > > jbang run "-Dcamel.jbang.version=3.20.1" --fresh camel@apache/camel > run example.yaml > > Best regards, > Mikael > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: BUG - RouteDefinition doesnt have routeId when using REST DSL

2023-01-27 Thread Claus Ibsen
big change for REST DSL happened somewhere between versions 3.15.0 > and 3.18.0. You can inspect that in RestDefinition class. > > So currently, the problem explained in my first email exists. > > Kind Regards, > Nikola Glidzic > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: BUG - RouteDefinition doesnt have routeId when using REST DSL

2023-01-26 Thread Claus Ibsen
ts call it "reading and building RouteDefinitions phase". > > Anyway the problem exists when you try to test routes and use AdviceWith. > I think this is a bug and fix is necessary since AdviceWith currently > doesn't work for all routes. > > What you think about this? Shou

Re: [VOTE] Release Apache Camel Kamelets 3.20.1.1

2023-01-26 Thread Claus Ibsen
.org/repos/asf?p=camel-kamelets.git;a=shortlog;h=refs/tags/v3.20.1.1 > > Please cast your vote. > > [ ] +1 Release camel-kamelets 3.20.1.1 > [ ] -1 Veto the release (provide specific comments) > > The vote is open for at least 72 hours. > > Here's my +1. > > Thanks, >

Re: [VOTE] Release Apache Camel K 1.11.1

2023-01-26 Thread Claus Ibsen
he binary as Apache Camel K 1.11.1 > [ ] -1 Veto the release (provide specific comments) > > 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: [VOTE] Release Apache Camel K 1.10.4 and Camel Kamelets 0.9.4

2023-01-26 Thread Claus Ibsen
ository.apache.org/content/repositories/orgapachecamel-1519 > --olm=false > > Please test this release candidate and cast your vote. > > [ ] +1 Release the binary as Apache Camel K 1.10.4 and > Apache Camel Kamelets 0.9.4 > [ ] -1 Veto the release (provide specific comments) &

Re: connectionsPerRoute has no impact on Connection when using http component

2023-01-26 Thread Claus Ibsen
t; have missed out anything? > > > > > > > On Fri, Jan 20, 2023 at 4:03 PM Claus Ibsen wrote: > > > Hi > > > > It looks like setDefaultMaxPerRoute is invoked later that changes this > > value. > > Also you should not use query parameter as the h

Re: Empty stream for gzipped response

2023-01-20 Thread Claus Ibsen
method just sets pos = mark, but it is > > already 0 (stream is empty). > > > > чт, 19 янв. 2023 г. в 15:57, Claus Ibsen : > > > > > > Hi > > > > > > Okay can you try with adding reset to stream cache such as and give > that a > >

Re: connectionsPerRoute has no impact on Connection when using http component

2023-01-20 Thread Claus Ibsen
w > InternalConnectionFactory(this.configData, connFactory), 2, 20, > timeToLive, timeUnit); > > > Shouldnt this be overridden with the connectionsPerRoute value? is > there any way to configure thie connections Per route configuration? > > any help would be appreciated. &

Re: Empty stream for gzipped response

2023-01-19 Thread Claus Ibsen
InputStream) { InputStream is = (InputStream) body; if (LOG.isDebugEnabled()) { LOG.debug("Streaming GZIP response in chunked mode with buffer size {}", response.getBufferSize()); } On Wed, Jan 18, 2023 at 10:22 AM Claus Ibsen wrote: > > > On Tue, Jan

Re: Empty stream for gzipped response

2023-01-18 Thread Claus Ibsen
> message.getBody() (not empty) > > Thanks for reporting this. You are welcome to create a JIRA so we can work on a fix. I think we need to check for StreamCache in that part of the code. > вт, 17 янв. 2023 г. в 16:59, Claus Ibsen : > > > > > Hi > > > >

Re: Empty stream for gzipped response

2023-01-17 Thread Claus Ibsen
ne for plain non-gzipped response in doWriteDirectResponse > method. > I have tested this change with ServletStreamingGzipChunkedTest > successfully. > Is this an issue and could be fixed in the next Camel release? > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Upgrading from 2.24.2 to 3.14.7 - xtokenize performance

2023-01-16 Thread Claus Ibsen
-- [hroughputLogger] DELTA > : Received: 31511 new messages, with total > 437329 so far. Last group took: 991 millis which is: 31,797.175 > messages per second. average: 31,394.76 > 2022-12-29 11:35:35.181 INFO 11444 --- [hroughputLogger] DELTA > : Received: 30706 new messages, with total > 468035 so far. Last group took: 1005 millis which is: 30,553.234 > messages per second. average: 31,338.132 > 2022-12-29 11:35:36.179 INFO 11444 --- [hroughputLogger] DELTA > : Received: 4183 new messages, with total > 472218 so far. Last group took: 998 millis which is: 4,191.383 > messages per second. average: 29,637.733 > 2022-12-29 11:35:37.179 INFO 11444 --- [hroughputLogger] DELTA > : Received: 0 new messages, with total > 472218 so far. Last group took: 1000 millis which is: 0 messages per > second. average: 27,887.439 > 2022-12-29 11:35:38.174 INFO 11444 --- [hroughputLogger] DELTA > : Received: 0 new messages, with total > 472218 so far. Last group took: 995 millis which is: 0 messages per > second. average: 26,339.692 > 2022-12-29 11:35:39.173 INFO 11444 --- [hroughputLogger] DELTA > : Received: 0 new messages, with total > 472218 so far. Last group took: 999 millis which is: 0 messages per > second. average: 24,949.437 > 2022-12-29 11:35:39.973 INFO 11444 --- [ionShutdownHook] > o.a.c.impl.engine.AbstractCamelContext : Apache Camel 3.20.0 > (camel-1) is shutting down (timeout:45s) > 2022-12-29 11:35:39.978 INFO 11444 --- [ionShutdownHook] > o.a.c.impl.engine.AbstractCamelContext : Routes stopped (stopped:1) > 2022-12-29 11:35:39.979 INFO 11444 --- [ionShutdownHook] > o.a.c.impl.engine.AbstractCamelContext : Stopped route1 > (file://C:/dev/temp) > 2022-12-29 11:35:39.980 INFO 11444 --- [ionShutdownHook] > o.a.c.impl.engine.AbstractCamelContext : Apache Camel 3.20.0 > (camel-1) shutdown in 7ms (uptime:20s) > > Process finished with exit code 130 > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Objects not propagated to Camel Kafka 3.18.4

2023-01-16 Thread Claus Ibsen
I created a JIRA to not forget https://issues.apache.org/jira/browse/CAMEL-18938 On Fri, Jan 6, 2023 at 10:06 AM Claus Ibsen wrote: > You can also use string uri instead of endpoint dsl, then you can refer to > the via kafka:?additionalProperties=#myMapBeanId > > So we may need

Re: How to transfer messages, each at a specific time?

2023-01-13 Thread Claus Ibsen
ears to the J2EE days. > Regards, > Yash > > On Fri, 13 Jan 2023 at 11:37, Claus Ibsen wrote: > > > Hi > > > > ActiveMQ has scheduled message delivery, take a look at that. > > > > > > > > On Fri, Jan 13, 2023 at 5:34 AM Yash Ganthe wrote: &

Re: How to transfer messages, each at a specific time?

2023-01-12 Thread Claus Ibsen
d to > an MQ. The timestamps are not uniformly spread. Is this possible with > Apache Camel? Which components need to be used to achieve this? > > Regards, > Yash > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: How to get docker stats ?

2023-01-12 Thread Claus Ibsen
(elihusma...@gmail.com) > kirjoitti: > > > > > > Yes, you are correct. I had the consumer/producer backwards in my > email. > > > > > > I'll look into writing up a PR. > > > > > > Thanks, > > > Mark > > > > > &g

[Follow/Help] - Apache Camel v4 work in progress

2023-01-12 Thread Claus Ibsen
or follow what goes on. -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: How to get docker stats ?

2023-01-11 Thread Claus Ibsen
know the container ID at build time, how > can I inject the container ID in a "from" line to follow the producer-only > requirement to get Docker container stats. > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: elegant error handling with temporary replyTo ?

2023-01-10 Thread Claus Ibsen
Hi A ticket to tweak the noisy logging https://issues.apache.org/jira/browse/CAMEL-18875 To handle the exception you can configure an exception listener on the jms component On Fri, Jan 6, 2023 at 12:39 PM Claus Ibsen wrote: > You can send a PR to tweak the log to not output the stacktr

Re: Questions regarding Graceful shutdown

2023-01-10 Thread Claus Ibsen
ng camel using spring but not Spring Boot. Problem is I can > > see > > > the instance of DefaultShutdownStrategy via JMX console but when I > stop > > > the application it is not getting called, instead I can see the below > in > > > logs. > > > >

Re: Questions regarding Graceful shutdown

2023-01-10 Thread Claus Ibsen
2:43:49,424 DEBUG > org.apache.camel.main.DefaultMainShutdownStrategy:75 - Received hangup > signal, stopping the main instance.* > > > > On Tue, 10 Jan 2023 at 13:53, Claus Ibsen wrote: > > > How do you run Camel? Spring Boot or some other way. > > > > Als

Re: [VOTE] Release Apache Camel Kamelets 3.20.1

2023-01-10 Thread Claus Ibsen
[ ] +1 Release camel-kamelets 3.20.1 > [ ] -1 Veto the release (provide specific comments) > > 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: Questions regarding Graceful shutdown

2023-01-10 Thread Claus Ibsen
light > messages (in camel VM queues) before shutting down the VM. > > -- > Regards > Gaurav > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel 3.X / Custom event notifier : expected events are not recieved

2023-01-09 Thread Claus Ibsen
that I had not > already seen in my tests is linked to the selected ones ? > > Thanks for your help. > > Regards. > > Le lun. 9 janv. 2023 à 18:57, Claus Ibsen a écrit > : > > > > Its optimized in core for these to be paired > > > > On Mon, Jan 9, 2

Re: Camel 3.X / Custom event notifier : expected events are not recieved

2023-01-09 Thread Claus Ibsen
Sending should be linked... > > Any ideas ? FYI I've tested it with 3.20.0 and 3.20.1, and both fail... > > For now I can ignore ExchangeSending events, but I'd prefer to > understand how it works... > > Thanks for your help. > > Regards. > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: elegant error handling with temporary replyTo ?

2023-01-06 Thread Claus Ibsen
eak the logger. I was hoping to not have the stack trace > get logged, but a more user-friendly log generated. > > On Fri, Jan 6, 2023 at 12:56 AM Claus Ibsen wrote: > > > Hi > > > > Do you want that WARN to not be logged - or the logging to NOT include > the >

Re: Objects not propagated to Camel Kafka 3.18.4

2023-01-06 Thread Claus Ibsen
You can also use string uri instead of endpoint dsl, then you can refer to the via kafka:?additionalProperties=#myMapBeanId So we may need for endpoint dsl to include a fluent builder for Map that is a string value to use for bean reference lookup On Fri, Jan 6, 2023 at 9:31 AM Claus Ibsen

Re: Objects not propagated to Camel Kafka 3.18.4

2023-01-06 Thread Claus Ibsen
headerFilterStrategy("#customHeaderFilterStrategy") // verified, works > > Any ideas? > Okay so we should make this possible for additional properties as well. You are welcome to create a JIRA. > > čt 5. 1. 2023 v 18:22 odesílatel Claus Ibsen > napsal: > >

Re: elegant error handling with temporary replyTo ?

2023-01-05 Thread Claus Ibsen
. The error is: > > Exception inside the DMLC for Temporary ReplyTo Queue for destination , > refreshing ReplyTo destination > > How can I go about handling this error in the temporary response > processing? Any help would be appreciated. > > Thanks, > Mark > --

Re: Objects not propagated to Camel Kafka 3.18.4

2023-01-05 Thread Claus Ibsen
ial as part of Properties works with > org.apache.kafka.clients.consumer.KafkaConsumer. > > čt 5. 1. 2023 v 17:59 odesílatel Claus Ibsen > napsal: > > > > Whats the real world use-case for additional properties as Object or Map. > > What would kafka understand a

Re: Objects not propagated to Camel Kafka 3.18.4

2023-01-05 Thread Claus Ibsen
HashMap@123456 > > I can see those String values being added to the Kafka Endpoint URI: > > kafka://additionalProperties.testStringKey1=xxx=xxx=xxx.. > > Is it a bug in Camel or did I understand the documentation wrong? I > can prepare a test case later > > Best regards, > > Martin > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel JBang OpenAPI to REST DSL generator issue with enums: Unsupported field: allowableValues

2022-12-30 Thread Claus Ibsen
Hi Okay I have fixed this for 3.20.1 onwards allowableValues: - available - pending - sold On Thu, Dec 29, 2022 at 8:50 PM Claus Ibsen wrote: > > > On Thu, Dec 29, 2022 at 8:46 PM Mikael Koskinen > wrote: > >> Hey,

Re: Camel JBang OpenAPI to REST DSL generator issue with enums: Unsupported field: allowableValues

2022-12-29 Thread Claus Ibsen
//infra.apache.org/jira-guidelines.html#who > Best regards, > Mikael > > to 29. jouluk. 2022 klo 21.12 Claus Ibsen (claus.ib...@gmail.com) > kirjoitti: > > > > Hi > > > > Yeah it smells like a yaml-dsl bug, can you create a JIRA ticket > > > > On

Re: Camel JBang OpenAPI to REST DSL generator issue with enums: Unsupported field: allowableValues

2022-12-29 Thread Claus Ibsen
d On Thu, Dec 29, 2022 at 8:11 PM Claus Ibsen wrote: > Hi > > Yeah it smells like a yaml-dsl bug, can you create a JIRA ticket > > On Thu, Dec 29, 2022 at 10:24 AM Mikael Koskinen > wrote: > >> Hey, >> >> Just a quick update: Here's a minimal gist which

Re: Camel JBang OpenAPI to REST DSL generator issue with enums: Unsupported field: allowableValues

2022-12-29 Thread Claus Ibsen
e: string > > enum: > > - available > > - pending > > - sold > > default: available > > > > I also tried generating XML DSL and it gives the following error when > running: > > > >

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-28 Thread Claus Ibsen
at kind of DSL you use (YAML, XML, Java, Groovy) whether we in the future would be able to known eacty which parts of the file were changed and can then calculate which routes. However that can be a bit overkill for a feature like this for development purposes. > Thanks again! > > ti 27. jo

Re: Camel errorHandler doesn't log before or after sending message to the dead letter channel

2022-12-28 Thread Claus Ibsen
te allows you to use Camel DSL and you can do a lot more. But its often overkill, and you also should keep the route small and simple as you want to ensure the message gets routed to the DLQ. > Thanks again, > Burcu > > -Original Message- > From: Claus Ibse

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-27 Thread Claus Ibsen
Hi I have just fixed that to be !route so the WARN is only logged when no custom id has been set. On Mon, Dec 26, 2022 at 4:08 PM Claus Ibsen wrote: > Hi > > Ah yeah it should be NOT custom id assigned. > You are welcome to send a PR > > BTW is there a reason you turn off

Re: Camel errorHandler doesn't log before or after sending message to the dead letter channel

2022-12-27 Thread Claus Ibsen
nge.LOG_EIP_NAME, " com.mypackage > "); > > but I am not sure how to set message because is not parsed in > errorHandler. We need to find a way to set log message. > > Do you have any other suggestion? > > Best regards, > Burcu > > -Original Message

Re: Camel 3.X / DataFormat BeanIO

2022-12-27 Thread Claus Ibsen
help out the project and make v3 a GA release and active maintained so it can come back into Camel. Yes I think a great flat file/csv/kvp project is very usable but it's sadly hard to do in open source as nobody sponsors such projects. On Tue, Dec 27, 2022 at 12:26 PM Claus Ibsen wrote: >

Re: Camel 3.X / DataFormat BeanIO

2022-12-27 Thread Claus Ibsen
ojects use fixed > > > length files that are still used by many companies legacy systems, and > > > rely on beanio. > > > > > > In my opinion, a stable component that has no recent change is not > > > "dead", just "mature". > > >

Re: Camel 3.X / DataFormat BeanIO

2022-12-27 Thread Claus Ibsen
many file formats > (xml, csv, etc.), but for fixed length, BeanIO is really the only one > that can handle complex structured files... > > What can we do :( ??? > > Thanks for any idea that can save our migration plans. > > Regards. > -- Claus Ibsen --

Re: Camel errorHandler doesn't log before or after sending message to the dead letter channel

2022-12-27 Thread Claus Ibsen
maximumRedeliveries="1" > redeliveryDelay="1" > retryAttemptedLogLevel="WARN" > retriesExhaustedLogLevel="ERROR"/> > loggingLevel="ERROR" message="Pushing to backout queue"/> > > > > > > > > > > > > > Try to change log configuration and loggingLevel to DEBUG but nothing > changed. > > > > > > > > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel JAXB DataFormat / Change between 2.X and 3.X

2022-12-26 Thread Claus Ibsen
ve to add a "custom" element to reference the > DataFormat, like : > > > > Please, could you confirm this change, and that this last syntax is > the best one ? > > Thanks. > > Regards. > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Claus Ibsen
2.504 INFO 79551 --- [ > > main]e.camel.impl.engine.AbstractCamelContext : Started firstRoute > > > > Where "firstRoute" is the "id". But the problem is that when live > > reloading happens, Camel reports that no id has been set. Even though &

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Claus Ibsen
xpression: > constant: > expression: Hello Camel from yaml timer 300 > - log: > message: ${body} > parameters: > period: '2000' > id: routeIdFromKaravan > > > ma 26. jouluk. 2022 klo 12.02 Claus Ibsen (claus.ib...@gmail.com) > kirjoitti: > > > > And i

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Claus Ibsen
And it can use camelCase too, so routeId or route-id are both possible. However routeId is recommended so you use same case as XML, Java DSL etc. On Mon, Dec 26, 2022 at 11:00 AM Claus Ibsen wrote: > Hi > > Use route-id to set id for routes > > > On Mon, Dec 26, 2022 at 10:38

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Claus Ibsen
amel.support.RouteWatcherReloadStrategy : Started firstRoute > (timer://yaml) (source: timers.yaml:4) > 2022-12-26 11:33:48.537 INFO 79845 --- [rReloadStrategy] > camel.support.RouteWatcherReloadStrategy : Started secondRoute > (timer://yaml) (source: timers.yaml:15) > 2022-12-26 11:33:48.538

Re: camel-docker operation error

2022-12-22 Thread Claus Ibsen
> documentation. > > Ah yeah, good point. We can improve this. If you want to contribute, then you can send a PR where you update the javadoc setOperation method, where you can say that events and stats are only for the consumer, and all others for the producer. > On Thu, Dec

Re: camel-docker operation error

2022-12-22 Thread Claus Ibsen
d I get the following error: > > *info is not a valid consumer operation* > > Are there any other tutorials or documentation I can look at to figure out > why the "info" operation is not valid? > > Thanks, > Mark > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: RouteConfiguration#OnCompletion when error

2022-12-22 Thread Claus Ibsen
ttps://gist.github.com/bvahdat/db518d4f4abde3ece6c5698f07f8e63d < > https://gist.github.com/bvahdat/db518d4f4abde3ece6c5698f07f8e63d> > > > > Am I right? > > > > — > > Babak > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: [VOTE] Release Apache Camel Kamelets 3.20.0

2022-12-21 Thread Claus Ibsen
[ ] +1 Release camel-kamelets 3.20.0 > [ ] -1 Veto the release (provide specific comments) > > 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: need help

2022-12-19 Thread Claus Ibsen
ache/camel/EndpointConfiguration.java#L25 Just write the component like any other standard component, you can look at one of the existing components that is is somewhat similar to your component as inspiration. > > *Thanks & Regards,* > *Kartheek.Veebhudi* > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

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

2022-12-16 Thread Claus Ibsen
Hi Yeah this seems to be improved via CAMEL-18764 When I debug I can see the templates are loaded first despite being 2nd class, and that only last, routes are created from the template (via templatedRoute) On Fri, Dec 16, 2022 at 10:16 AM Claus Ibsen wrote: > Hi > > I tried th

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

2022-12-16 Thread Claus Ibsen
mplates.class) class* after* the RouteBuilder > (MyTemplateBuilder.class) and fails with: Cannot find RouteTemplate with id > myTemplate > > Are there any better approaches to avoid this Spring Component Scan > ordering? > > BR > Michael > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

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

2022-12-16 Thread Claus Ibsen
* the RouteBuilder > (MyTemplateBuilder.class) and fails with: Cannot find RouteTemplate with id > myTemplate > > Are there any better approaches to avoid this Spring Component Scan > ordering? > > BR > Michael > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: metadata properties

2022-12-13 Thread Claus Ibsen
ap is separated 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

Re: metadata properties

2022-12-13 Thread Claus Ibsen
properties. I also try not to > set it through the DSL, but with the API. > > Is there a way to do this? (or have similar result) > > Raymond > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Pausable Consumer

2022-12-13 Thread Claus Ibsen
ute that checks to see if an API responds to a ping. This seems to be > working fine however when the service is resumed (successful ping response > in "canContinue()"), any messages polled are not processed and lost. Any > help would be greatly appreciated! > > Cheers! > >

Re: BUG - missing configuration placeholder possibility for id in REST DSL

2022-12-12 Thread Claus Ibsen
eholder for id will > not be loaded and my route id will remain as "{{endpoint.id}}". > > I think mistake and fix solution for this stands in class > RouteDefinitionHelper, in method forceAssignIds(): > > If you check the provided image, I think that line 154 for resolving REST >

Re: Camel JBang http-sink issue when exporting to Quarkus runtime: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

2022-12-03 Thread Claus Ibsen
* > > > > > org.apache.camel.kamelets > camel-kamelets > 0.9.3 > > > > > io.quarkus > quarkus-junit5 > test >

Re: Camel JBang http-sink issue when exporting to Quarkus runtime: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

2022-12-01 Thread Claus Ibsen
Hi Oh it also looks like the CI job did not complete last day, so wait for this build to succeed https://ci-builds.apache.org/job/Camel/job/Camel%20Daily%20Snapshot%20Deploy/job/main/154/ On Fri, Dec 2, 2022 at 7:51 AM Claus Ibsen wrote: > Hi > > You can try to delete from your loca

Re: Camel JBang http-sink issue when exporting to Quarkus runtime: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

2022-12-01 Thread Claus Ibsen
t included in the newly > generated pom.xml: > > camel-quarkus-kamelet > camel-kamelets-catalog > > I'm not sure what's the difference between camel-kamelets and > camel-kamelets-catalog. > > ke 30. marrask. 2022 klo 20.21 Mikael Koskinen (mijap...@gmail.com) > kirjoitti:

Re: YAML DSL/Karavan: HTTPS request to server which has self-signed certificate/invalid certificate

2022-12-01 Thread Claus Ibsen
uld be a life saver instead of having to mess > with keys etc. > > Is there a "pure YAML DSL" way of making a https request to a server > presenting a self-signed certificate? > > Thanks in advance for any guidance. > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel JBang http-sink issue when exporting to Quarkus runtime: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

2022-11-30 Thread Claus Ibsen
again on windows On Wed, Nov 30, 2022 at 1:55 PM Claus Ibsen wrote: > Hi > > Yeah I think its a windows bug in camel-jbang, we had to download > camel-quarkus-catalog in a special way with the Shrinkwrap project. > However now we use standard Maven so we can likely downloader this in

Re: Camel JBang http-sink issue when exporting to Quarkus runtime: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

2022-11-30 Thread Claus Ibsen
gt; ke 30. marrask. 2022 klo 11.25 Mikael Koskinen (mijap...@gmail.com) > kirjoitti: > > > > Hi, > > > > Yep, using Windows. I’ll try the Spring boot export & running things > with Mac later today and report back with my findings. > > > > On Wednesda

Re: Camel JBang http-sink issue when exporting to Quarkus runtime: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

2022-11-29 Thread Claus Ibsen
red the same issue. > > Manually modifying the exported pom.xml got things working. I updated > the gist with logs and also with the changes I did to pom.xml to make > things work. > > ti 29. marrask. 2022 klo 8.21 Claus Ibsen (claus.ib...@gmail.com) > kirjoitti: > > >

Re: Migration from 2.x to 3.x

2022-11-29 Thread Claus Ibsen
own > bundle, each bundle with its own configuration property file > (duplicating entries), and as many features as bundles, multiplying > dev-ops and production work ? > > Thanks in advance for your advice and help. > > Regards. > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel JBang http-sink issue when exporting to Quarkus runtime: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

2022-11-28 Thread Claus Ibsen
, 2022 at 7:10 AM Claus Ibsen wrote: > Hi > > Yeah it suspect quarkus http extension does not bring in servlet api JAR > which is needed by camel-http. > https://github.com/apache/camel/blob/main/components/camel-http/pom.xml#L55 > > You can when doing expor

Re: Camel JBang http-sink issue when exporting to Quarkus runtime: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

2022-11-28 Thread Claus Ibsen
ble from the same gist: > https://gist.github.com/mikoskinen/71ce1d1ba5b5d7b690a4ec12af20e8ec > > If I export to Camel Main it works OK. > > Am I missing something? Any advice is appreciated. > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Templates mix xml and java builder

2022-11-27 Thread Claus Ibsen
I created a ticket https://issues.apache.org/jira/browse/CAMEL-18764 On Sun, Nov 27, 2022 at 1:49 PM Claus Ibsen wrote: > Hi > > Okay I can also reproduce this, so the problem is that the java routes are > initialized before the xml. > This new templatedRoute from a RouteBuilder

Re: Templates mix xml and java builder

2022-11-27 Thread Claus Ibsen
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. > > -- > *Fra:* Claus Ibsen > *Sendt:* Saturday, November 26, 2022 1:40:10 PM > *Til:* users@camel.a

Re: Templates mix xml and java builder

2022-11-26 Thread Claus Ibsen
ch of security, error or virus that may result from the > trans­mission of this message. > > -- > *Fra:* Claus Ibsen > *Sendt:* 26. november 2022 12:52 > *Til:* users@camel.apache.org > *Emne:* Re: Templates mix xml and java builder > > CAUTION: External e

Re: Templates mix xml and java builder

2022-11-26 Thread Claus Ibsen
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 ma

Re: Templates mix xml and java builder

2022-11-25 Thread Claus Ibsen
il. 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: DefaultErrorHandler not logging to specific log file

2022-11-25 Thread Claus Ibsen
mitglieder (Members of the Board): Peter Schneck, Axelle Maze > Aufsichtsratsmitglieder (Supervisory Board Members): Rainer Koppitz > (Vorsitzender des Aufsichtsrats / Chairman of the Supervisory Board), Prof. > Dr. Isabell Welpe, Ricardo Malta > Bankverbindungen (Bank Acc

Re: Streamcaching and spooling

2022-11-24 Thread Claus Ibsen
Babak. Users that work with large streams needs to configure for such use-cases. You may also want to configure which temporary directory to use for spooling, and what byte limit to overflow etc. > > > On 24 Nov 2022, at 14:59, Claus Ibsen wrote: > > > > Hi > >

Re: Streamcaching and spooling

2022-11-24 Thread Claus Ibsen
the default of spoolEnabled also to > true. > > What do you think? > > BR > Michael > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel and Kafka manual commit : java.util.ConcurrentModificationException

2022-11-23 Thread Claus Ibsen
; > > > > > > .throttle(maximumRequestCount).timePeriodMillis(timePeriodMillis).asyncDelayed(true) > > > > > > > >>.process(apiConsumerProcessorLogger) > > > > > > > >>.to(this.url) > > > > > > > >>.process(kafkaOffsetProcessor); > > > > > > > >>// @formatter:on > > > > > > > >>} > > > > > > > >> > > > > > > > >>private String getKafkaEndpoint() { > > > > > > > >>String endpoint = > > > > > > > >> > > > > > > > > > > > > > > > > "kafka:{{topic}}?allowManualCommit=true=false=" > > > > > > + > > > > > > > >> kafkaBrokers; > > > > > > > >> > > > > > > > >>if (securityEnabled()) { > > > > > > > >>endpoint += "=SASL_SSL" + > > > > > > > >> "=PLAIN" > > > > > > > >>+ > > > > > > > >> > > > > > > > > > > > > "=org.apache.kafka.common.security.plain.PlainLoginModule > > > > > > > >> required username=\"" > > > > > > > >>+ username + "\" password=\"" + password > + > > > > "\";" > > > > > + > > > > > > > >> "=" + sslTrustStoreLocation > > > > > > > >>+ "=" + > > > > > > sslTruststorePassword; > > > > > > > >>} > > > > > > > >> > > > > > > > >>return endpoint; > > > > > > > >>} > > > > > > > >> > > > > > > > >> The problem is that we systematically get this error when a > > > > message > > > > > is > > > > > > > >> consumed by a route : > > > > > > > >> > > > > > > > >> Trace: java.util.ConcurrentModificationException: > > KafkaConsumer > > > is > > > > > not > > > > > > > >> safe for multi-threaded access > > > > > > > >>at > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.kafka.clients.consumer.KafkaConsumer.acquire(KafkaConsumer.java:1824) > > > > > > > >>at > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.kafka.clients.consumer.KafkaConsumer.acquireAndEnsureOpen(KafkaConsumer.java:1808) > > > > > > > >>at > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.kafka.clients.consumer.KafkaConsumer.commitSync(KafkaConsumer.java:1255) > > > > > > > >>at > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.camel.component.kafka.DefaultKafkaManualCommit.commitOffset(DefaultKafkaManualCommit.java:60) > > > > > > > >>at > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.camel.component.kafka.DefaultKafkaManualCommit.commitSync(DefaultKafkaManualCommit.java:51) > > > > > > > >> > > > > > > > >> > > > > > > > >> My understanding is that the instance of KafkaConsumer is > > reused > > > > in > > > > > > > >> multiple routes and therefore it generates the error, but it > > > could > > > > > be > > > > > > > also > > > > > > > >> related to using SEDA endpoint as stated here ( > > > > > > > >> https://issues.apache.org/jira/browse/CAMEL-12722), which > we > > > > don't > > > > > > > >> explicitly do. > > > > > > > >> > > > > > > > >> We tried injecting a KafkaComponent local bean in the route > : > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > .templateBean("myKafkaConfiguration").typeClass("org.apache.camel.component.kafka.KafkaConfiguration").property("topic", > > > > > > > >> "{{" + Constantes.TOPIC > +"}}").properties(kafkaConfiguration) > > > > > > > >>.end() > > > > > > > >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > .templateBean("myKafka").typeClass("org.apache.camel.component.kafka.KafkaComponent").property("configuration", > > > > > > > >> "#{{myKafkaConfiguration}}") > > > > > > > >>.end() > > > > > > > >>.from("#{{myKafka}}") > > > > > > > >> > > > > > > > >> But it ends up with another error because you cannot > consume a > > > > Bean > > > > > > > >> endpoint ( > > > > > > > https://camel.apache.org/components/3.18.x/bean-component.html > ) > > > > > > > >> > > > > > > > >> How to use a different KafkaConsumer for every created > route ? > > > Or, > > > > > if > > > > > > > the > > > > > > > >> issue is SEDA related, how to make this route a direct > route? > > > > > > > >> > > > > > > > >> Thank you for your help > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > Otavio R. Piske > > > > > > > > http://orpiske.net > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Otavio R. Piske > > > > > > http://orpiske.net > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Otavio R. Piske > > > > http://orpiske.net > > > > > > > > > > > > > -- > > Otavio R. Piske > > http://orpiske.net > > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: File Component with variable FileName (set from properties placeholder or similar)

2022-11-21 Thread Claus Ibsen
y advice on the topic, thank you very much in advance! > > Best regards, > -- > Jaime Penagos > > Ludwig-Maximilians-Universität > Universitätsbibliothek > Abteilung Informationstechnologie > > Geschwister-Scholl-Platz 1, 80539 München > E-Mail: jaime.pena...@ub.uni

Re: Converting simple expression to predicate

2022-11-13 Thread Claus Ibsen
dicate(simpleExpressionString) to use when we do not > have a reference to the CamelContext? I am using it for JSON > deserialization, where I don't have the context. > > Thanks, > Steve > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Offset in OffsetRepositoy doesn't get increase after manual commit

2022-11-09 Thread Claus Ibsen
> of the individual sender only, unless expressly stated to be those of > Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any > of its related entities including ANZ Bank New Zealand Limited (together > "ANZ"). ANZ does not accept liability

Re: Splitter and Aggregater onCompletion

2022-11-08 Thread Claus Ibsen
egy had sub interfaces for all of that, but now in v3 with default methods on interfaces its merged into a single interface. > -----Original Message- > From: Claus Ibsen > Sent: Tuesday, 8 November 2022 11:54 > To: users@camel.apache.org > Subject: Re: Splitter and Aggregater onCompletion

Re: Splitter and Aggregater onCompletion

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

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