Re: Camel HTTP Component is not allowing underscores in the hostname

2020-02-11 Thread Claus Ibsen
gt; > > > > > Pflichtangaben anzeigen<http://www.deutschebahn.com/pflichtangaben/20200205> > > N?here Informationen zur Datenverarbeitung im DB-Konzern finden Sie hier: > http://www.deutschebahn.com/de/konzern/datenschutz -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Hazelcast Component question

2020-02-11 Thread Claus Ibsen
6412) > > > -Original Message- > From: Claus Ibsen > Sent: Saturday, February 8, 2020 2:26 AM > To: users@camel.apache.org > Subject: Re: Hazelcast Component question > > On Fri, Feb 7, 2020 at 10:25 PM Gershaw, Geoffrey A. > wrote: > > > > Thank you

Re: Exception in Apcahe camel

2020-02-11 Thread Claus Ibsen
at > org.apache.camel.processor.SharedCamelInternalProcessor$1.process(SharedCamelInternalProcessor.java:90) > at > org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:78) > at > org.apache.camel.processor.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:87) > at > org.apache.camel.impl.engine.DefaultProducerCache.send(DefaultProducerCache.java:174) > at > org.apache.camel.impl.engine.DefaultProducerTemplate.send(DefaultProducerTemplate.java:176) > at > org.apache.camel.impl.engine.DefaultProducerTemplate.send(DefaultProducerTemplate.java:172) > at > org.apache.camel.impl.engine.DefaultProducerTemplate.send(DefaultProducerTemplate.java:153) > at > org.apache.camel.impl.engine.DefaultProducerTemplate.sendBodyAndHeader(DefaultProducerTemplate.java:217) -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: NullPointerException in SNMP Trap Producer Component

2020-02-07 Thread Claus Ibsen
Camel Version: 2.24.2 > > · Spring Boot: 2.1.7 > > Any help is greatly appreciated! > > > > Best, Stefan -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Hazelcast Component question

2020-02-07 Thread Claus Ibsen
m/legal/en/disclaimer_email_ib.html > > == > > = > > > > > > > === > Please access the attached hyperlink for an im

Re: CXF endpoint with Camel CDI

2020-02-07 Thread Claus Ibsen
, 3.0.1 and the latest snapshots. > > Is it possible to define CXF endpoints using CDI beans? > Is it possible to make Camel-CDI and Camel-Spring use the same CamelContext? > Is it possible to retrieve the CamelContext from Camel-Spring, so I can use > this in my CDI beans? > >

Re: activemq and the retain-flag

2020-02-07 Thread Claus Ibsen
onnectionFactory) fact.getConnectionFactory(); > a.setUseRetroactiveConsumer(true); > } > } > } > } > > public static void main(String... args) throws Exception { > SendMQTTTest main = new SendMQTTTest(); > main.configure(); > Thread.sleep(1000); > } > } -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: HTTP session handling sample on Context level

2020-01-29 Thread Claus Ibsen
te calls to avoid a 401. > > > > Could you point out to a sample in Java DSL how this could be achieved? > > > > Sorry, for my very limited knowledge on this, but trying to learn > > something new! > > > > Many thanks in advance for the feedback, much appreciated! > > > > Regards, > > Tom > > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: SEDA consumer and parallelism

2020-01-29 Thread Claus Ibsen
onsumer or > both URIs? > > Best regards, > Alex soto > > > > > > On Jan 29, 2020, at 11:13 AM, Claus Ibsen wrote: > > > > The delay makes it asynchronous, set synchronous=true on the seda endpoint > > > > On Wed, Jan 29, 2020 at 4:52 PM A

Re: SEDA consumer and parallelism

2020-01-29 Thread Claus Ibsen
> > > 1000 > > > > From logs, I can see messages being processed in parallel by this route. Any > idea? > > (Camel version is 3.0.1) > > Best regards, > Alex soto > > > > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel 3.0.1 standalone main cdi fat jar not working

2020-01-29 Thread Claus Ibsen
using latest weld-se-shaded, deltaspike-cdictrl-weld and > maven-shade-plugin. > > Any hints why it is not working in camel-3? I've attached sample project > > Thanks! -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: java.lang.NoClassDefFoundError: groovy/lang/Script

2020-01-29 Thread Claus Ibsen
;>>> at > >>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:262) > >>>>at > >>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:272) > >>>>at > >>>> org.apache.camel.language.groovy.GroovyExpression.instantiateScript(GroovyExpression.java:73) > >>>>… > >>>> > >>>> > >>>> I am running Camel in Karaf OSGi environment with camel-groovy feature > >>>> installed. In old Karaf 2.X, I had to install features camel-script, > >>>> and camel-script-groovy, but they are no longer available. > >>>> > >>>> > >>>> Best regards, > >>>> Alex soto > >>>> > >>>> > >>>> > >>>> > >>>> > >>> > >>> -- > >>> Jean-Baptiste Onofré > >>> jbono...@apache.org <mailto:jbono...@apache.org> > >>> http://blog.nanthrax.net > >>> Talend - http://www.talend.com > >> > > > > > > -- > Jean-Baptiste Onofré > jbono...@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Property placeholder causes an error

2020-01-28 Thread Claus Ibsen
> bridgePropertyPlaceholder is already instanciated as null and cannot be > removed. > > With the Sping DSL in Camel 2.x it worked. Any hints are really appreciated. > > Best > - Gerald -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: org.apache.camel.NoSuchLanguageException: No language could be found for: simple

2020-01-25 Thread Claus Ibsen
; Why would this happen? Isn’t the Simple language part of the core anymore? > FYI: I am running as part of an OSGi environment (Karaf) > > Best regards, > Alex soto > > > > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Simple condition doesn't always work with the 'contains' operator (Camel 3.0.0)

2020-01-16 Thread Claus Ibsen
ExchangeList'. Nevertheless this doesn't work, the log message 'inner > condition' ist not shown. > > The change to > > ${body.class().toString()} contains 'GroupedExchangeList' > > did the trick. When do I need to perform an explicit type conversion? > > Best > - G

Re: Camel 3.0.0 unzip data

2020-01-15 Thread Claus Ibsen
deflater-dataformat.html > > are examples contained based on Java DSL. I'm struggling with the right > syntax for unzip inside a Blueprint DSL route. > > Could anybody point me to the right direction? > > Thanks in advance > - Gerald -- Claus Ibsen - http://d

Re: Using negative acknowledge in RabbitMQ component

2020-01-15 Thread Claus Ibsen
nd greetings, > Marko -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: ProducerTemplate.request() not returning complete Exchange.

2020-01-15 Thread Claus Ibsen
public void process(Exchange exchange) throws Exception {* > > * Map payload = new HashMap Object>();* > > * exchange.setOut(exchange.getIn());* > > * ArrayList> body = > (ArrayList>) exchange.getIn().getBody();* > > * payload.put("whoami", "I am " + > getContext().resolvePropertyPlaceholders("{{whoami}}") );* > > * body.add(payload);* > > * exchange.getOut().setBody(body);* > > * exchange.getOut().setHeader("RequestType", "complete");* > > * exchange.getOut().setHeader("SQLErrorMessage", "Success");* > > * }* > > > > * })* > > * .onException(SQLException.class)* > > * .setHeader("MESSAGE_INFO", constant("Sql Connection > Error"))* > > * .setHeader("ROUTE_STOP", constant(Boolean.TRUE))* > > * .log(LoggingLevel.ERROR, "${exception.stackTrace}")* > > * .maximumRedeliveries("0")* > > * .redeliveryDelay("0")* > > * .id("_onExceptionConnectionTest")* > > * .handled(false)* > > * ;* > > > > > > > > > > Regards- > > Marci Wilken > > Operations Architect > > Office of Information Services > > OHA/DHS/CAF-CW/OR-KIDS > > 503.378.2405 > > [image: Description: Description: Description: > cid:image001.png@01CCF13E.2FACEC70][image: OHAsiglogo] > > CONFIDENTIALITY NOTICE > > *This email may contain information that is privileged, confidential, or > otherwise exempt from disclosure under applicable law. If you are not the > addressee or it appears from the context or otherwise that you have > received this email in error, please advise me immediately by reply email, > keep the contents confidential, and immediately delete the message and any > attachments from your system. * > > > > > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: [EXTERNAL] Re: query timeout not working in JDBC or SQL component

2020-01-14 Thread Claus Ibsen
gt; for sql: I tried passing timeout value a sql:quey?template.queryTimeout=1 > > Thanks, > Shiva > > -Original Message- > From: Claus Ibsen > Sent: Tuesday, January 14, 2020 8:49 PM > To: users@camel.apache.org > Subject: [EXTERNAL] Re: query timeout not working in JDBC

Re: query timeout not working in JDBC or SQL component

2020-01-14 Thread Claus Ibsen
> Lowe's from any claims, losses or damages that may arise from the transmittal > of documents or including non-confidential information in the body of an > email transmittal. Thank you. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: camel restart context

2020-01-14 Thread Claus Ibsen
do context.stop() and then context.start() inside quartz > processing; the context stop but doesnt start again... > Also, when I remotely invoke the JMX camel restart, it works. > Is this a normal behaviour? > > Thanks. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Act

Re: Messages with byte[] bodies are sent as "large messages" to Artemis via camel-jms and cause ConsumerTemplate exception

2020-01-13 Thread Claus Ibsen
merTemplate for that Camel > version. > > Basically, I have two questions: > 1) Why does Artemis treat small byte array messages sent via Camel as large > messages? > 2) Does Camel ConsumerTemplate support streamed large messages? > > Best regards, > Florian -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Need both camel-kafka-starter & camel-kafka in Spring Boot app?

2020-01-11 Thread Claus Ibsen
a:{{kafka.topic.in}}?brokers={{kafka.brokers}}").log("got: > ${body}"); > > Thanks. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: sFTP with multiple consumers and idempotent routes: file exceptions

2020-01-09 Thread Claus Ibsen
y setup? > > I've also tried adding the idempotent repository to the input URI, like this: > sftp://@:/?password==changed==true== > mask>=true=$simple{file:name}=#messageIdRepository > > ... but am getting the same kind of errors. > > Thanks for any assistance, > > Mark -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Life time of Exchange Properties while splitting a (JSON) message

2020-01-09 Thread Claus Ibsen
'm always getting the same body as before the split > loop. > > Do I something wrong here? > > Best > - Gerald > > > Claus Ibsen hat am 9. Januar 2020 um 13:15 > > geschrieben: > > > > > > Hi > > > > You can use claim check EIP or use a c

Re: Life time of Exchange Properties while splitting a (JSON) message

2020-01-09 Thread Claus Ibsen
onsumer[*] > ... > name="consumerComponents">${in.body} > > > > > As I made the experience the lifetime of an exchange property is limited to > inside the split boundaries. > > Is there an other way (except a custom aggregation strategy) to define

Re: Deadletter and Aggregation again

2020-01-07 Thread Claus Ibsen
; > Is there a way to prevent or control the transation, when original input > (file) is deleted/moved? > > > -Ursprüngliche Nachricht- > Von: Claus Ibsen > Gesendet: Montag, 6. Januar 2020 19:50 > An: users@camel.apache.org > Betreff: Re: Deadletter and Aggregation agai

Re: adding namespace to route for xpath in java DSL

2020-01-06 Thread Claus Ibsen
he spring DSL > ``` > http://camel.apache.org/schema/spring; >customId="true" xmlns:com="http://test.com/test; > > > ``` > is that possible to do it on java DSL ? > > Thanks and Regards, > Chio Chuan -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Deadletter and Aggregation again

2020-01-06 Thread Claus Ibsen
lready deleted /moved into recovery. > Why? > How can I prevent this? > > Why is it not easy possible to store the original input into a dead letter > dir or queue regardless how many nested splits and aggregations in case > somewhere an exception is thrown? > Jus

Re: Spring DSL vs. Blueprint XML inside Camel 3.0.0

2020-01-06 Thread Claus Ibsen
just fine to have it as is. And non Karaf users can use Spring XML. > Best > - Gerald > > > Claus Ibsen hat am 6. Januar 2020 um 10:38 > > geschrieben: > > > > > > Hi > > > > Spring XML is not available anymore in Camel 3. And on 2.x its > >

Re: Spring DSL vs. Blueprint XML inside Camel 3.0.0

2020-01-06 Thread Claus Ibsen
Karaf 4.2.7. > > What is the recommended XML DSL? Spring DSL or Blueprint XML? > > When we want to leverage Spring XML, ho to enable the hot deployment inside > Karaf? > > Many thanks in advance for comments and hints. > > Best > - Gerald -- Claus Ibsen -

Re: Camel 3.0.0 marshal component doesn't allow ref attribute

2020-01-06 Thread Claus Ibsen
lueprint-3.0.0.xsd > doesn't work as "dataFormats" isn't allowed. > > This .. > > > class="org.apache.camel.spi.DataFormat.JsonDataFormat"> > > > > requires (osgi.wiring.package=org.apache.camel.spi

Re: Camel 3.0.0 marshal component doesn't allow ref attribute

2020-01-06 Thread Claus Ibsen
Hi Btw you can do this in 2.x also, and the ref attribute was also deprecated on 2.x https://github.com/apache/camel/blob/camel-2.x/camel-core/src/main/java/org/apache/camel/model/MarshalDefinition.java#L135 On Mon, Jan 6, 2020 at 10:04 AM Claus Ibsen wrote: > > Hi > > Use to refer

Re: Camel 3.0.0 marshal component doesn't allow ref attribute

2020-01-06 Thread Claus Ibsen
tribute works. What I'm > doing wrong here? > > Many tx in advance for any hints. > > Best > - Gerald -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Runtime error after upgrading to camel 3.0 - stepwise construction of camel RouteDefinition

2020-01-03 Thread Claus Ibsen
at > org.springframework.boot.SpringApplication.run(SpringApplication.java:1202) > at com.huawei.camel.Application.main(Application.java:45) > Caused by: java.lang.NullPointerException > at > org.apache.camel.model.ProcessorDefinitionHelper.resolvePropertyPlaceholders(ProcessorDefinitionHelper.java:805) > at > org.apache.camel.model.RouteDefinitionHelper.initRouteInput(RouteDefinitionHelper.java:458) > ... 30 more -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: No component found with scheme: custom component bean name

2020-01-02 Thread Claus Ibsen
aultRouteContext.java:122) > ~[camel-core-2.24.1.jar:2.24.1] > at > org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:75) > ~[camel-core-2.24.1.jar:2.24.1] > at > org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:98) > ~[camel-core-2.24.1.jar:2.24.1] > at > org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1332) > ~[camel-core-2.24.1.jar:2.24.1] > at > org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:212) > ~[camel-core-2.24.1.jar:2.24.1] > ... 26 common frames omitted -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: ActiveMQ endpoint in Camel 3.0.0 reports an "java.lang.IllegalArgumentException: wrong number of arguments"

2020-01-02 Thread Claus Ibsen
r > > Failed to resolve endpoint: activemq://queue:IN due to: > java.lang.IllegalArgumentException: wrong number of arguments > > With Camel 2.24.2 it works. > > This link https://issues.apache.org/jira/browse/CAMEL-13145 describes it as > fixed. Do I still miss something? > > Any hints are highly appreciated. > > Thanks in advance > - Gerald -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Is there a way to kill pending transactions in Apache Camel?

2019-12-30 Thread Claus Ibsen
> > > > > > * >uri="ftp://192.168.194.69/logs/?username=namepassword=password > <ftp://192.168.194.69/logs/?username=namepassword=password>"> > FTP id="161d46cd-bc84-4510-8adc-0adbcd2cc092" uri="

Re: Is there a way to kill pending transactions in Apache Camel?

2019-12-30 Thread Claus Ibsen
he route or after the timeout > > > -- > *С наилучшими пожеланиями, Лукьянов Михаил* > *Моб: **+7-909-69-71-547* -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: building Camel in IntelliJ

2019-12-20 Thread Claus Ibsen
ccessorImpl.invoke > > > > (NativeMethodAccessorImpl.java:62) > > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke > > > > (DelegatingMethodAccessorImpl.java:43) > > > > at java.lang.reflect.Method.invoke (Method.java:498) > > > > at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced > > > > (Launcher.java:289) > > > > at org.codehaus.plexus.classworlds.launcher.Launcher.launch > > > > (Launcher.java:229) > > > > at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode > > > > (Launcher.java:415) > > > > at org.codehaus.plexus.classworlds.launcher.Launcher.main > > > > (Launcher.java:356) > > > > > > > > It looks like the Maven IDEA plugin is no longer maintained. > > > > > > > > I’m sure there must be other IntelliJ users building Camel. How are you > > > > handling this? > > > > > > > > Best regards, > > > > > > > > Robin > > > > > > > > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: building Camel in IntelliJ

2019-12-19 Thread Claus Ibsen
ava:62) > >> at sun.reflect.DelegatingMethodAccessorImpl.invoke > >> (DelegatingMethodAccessorImpl.java:43) > >> at java.lang.reflect.Method.invoke (Method.java:498) > >> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced > >> (Launcher.java:2

Re: Using rest endpoints as producer and consumer

2019-12-18 Thread Claus Ibsen
e same route? > > > > Regards, > > > > Vikas Jaiswal > > Lead Consultant > > *T:* +91 9371626126 |Saksoft Ltd > > > > > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: How to display log messages when using camel-cdi insde payara micro

2019-12-16 Thread Claus Ibsen
mpl.Jdk14Logger > #org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger > > > Thanks. > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Aggregation and unitOfWork

2019-12-15 Thread Claus Ibsen
te works. > But when an exception is thrown after aggregation the infos are gone. > I noticed that the exchange at the end, before .to(EP_AGGREGATION) is > different from the exchange the > ThomasAggregationStrategy:: aggregate() sees. I see unitOfWork is gone. > > errorHandler(deadLetterChannel("direct:deadletter").useOriginalMessage()); > from("direct:deadletter") > // save original message > > > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Communicating a value between a route and the RouteBuilder class

2019-12-12 Thread Claus Ibsen
had to. I’m > sort of “obsessed” with refactoring every bit of logic and whatnot into this > sleek, stripped down (one RouteBuilder) pipeline I’ve created. > > I think a “helper ” or “utility” bean of sorts might end up being a good idea > though... > > Thanks again. > > >

Re: Communicating a value between a route and the RouteBuilder class

2019-12-12 Thread Claus Ibsen
fsetCache.get())) > .toD("{{url.base}}/${header.offset}") > // process the response and get the new offset from the header into the > class variable > .setHeader("offset", simple("${in.header.NEXT_OFFSET}")) > .process(exchange -> > offsetCache.set(exchange.getIn().getHeader("offset").toString())) -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: reactive streaming with camel and vertx

2019-12-10 Thread Claus Ibsen
creating an embedded clustered EventBus > | | > int > | > > > > On Tuesday, December 10, 2019, 05:32:28 PM EST, Bing Lu > wrote: > > hi, there seems to be two way using reactive streaming with camel with vertx > 1. using vertx camel bri

Re: Undertow server starts twice - camel 2.23.0

2019-12-09 Thread Claus Ibsen
t > ${camel.version} > > > > > > > > > com.github.mongobee > mongobee > ${mongobee.version} > > > > > > org.springframework.boot > spring-boot-starter-security > > > > > > org.springframework.boot > spring-boot-starter-test > test > > > org.apache.camel > camel-test-spring > test > > > > > org.apache.httpcomponents > httpcore > > > org.springframework > spring-web > > > commons-codec > commons-codec > > > > > Maybe anybody can help me to fix this issue > > Thx and kind regards > > Tobias -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Which Bean binding rule does Camel use for this Bean ?

2019-12-07 Thread Claus Ibsen
an make out what method > to invoke. How does it do that ?* > > Which of the bean binding( > https://camel.apache.org/manual/latest/bean-binding.html#BeanBinding-Choosingthemethodtoinvoke) > r*ules does Camel use in this case ?* > > > -- > Regards, > Sreyan -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel-3 multiple consumers error with class hierarchy

2019-12-06 Thread Claus Ibsen
: > > Ok. It was without custom main BTW. I just modified official camel-cdi > example and added a parent class. > > Am Fr., 6. Dez. 2019 um 10:39 Uhr schrieb Claus Ibsen-2 [via Camel] > : > > > > Hi > > > > Its likely fixed by that other bug, and you have it

Re: Camel-3 multiple consumers error with class hierarchy

2019-12-06 Thread Claus Ibsen
abstract void addChildRoutes(); > } > > public class MyRoute extends AbstractRoute { > @Override > void addChildRoutes() { > from("timer://foo?fixedRate=true=5s").log("running ${body}"); > } > } > > is it a bug or not supported in camel-3 anymore? -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel-3 shutdown triggered right after start

2019-12-06 Thread Claus Ibsen
eah I think we had something similar with camel-quarkus too. I created a ticket https://issues.apache.org/jira/browse/CAMEL-14265 > Am Do., 5. Dez. 2019 um 18:43 Uhr schrieb Claus Ibsen-2 [via Camel] > : > > > > Hi > > > > I wonder if its because the routes are discov

Re: Camel 2.x To Camel 3.0 Migration

2019-12-05 Thread Claus Ibsen
ss using URLRewrite and what component URL I should use? > > Will it be same as below ? > http4://localhost:9181/api?bridgeEndpoint=true=false& > *urlRewrite*=#*ncsurlrewrite* > > -- > Thanks, > > Bhavesh -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel-3 shutdown triggered right after start

2019-12-05 Thread Claus Ibsen
] INFO DefaultCamelContext > > - Route: route1 started and consuming from: > > timer://foo?fixedRate=true=5s > > 2019-12-05 15:12:27,086 [main ] INFO DefaultRoutesCollector > > - Loading additional Camel XML routes from: > > class

Re: Camel-3 shutdown triggered right after start

2019-12-05 Thread Claus Ibsen
Also you can try with try { main.run } catch (Throwable e) { e.printSt... to catch any kind of error and log/print it On Thu, Dec 5, 2019 at 2:57 PM Claus Ibsen wrote: > > Hi > > The attached .zip file works for me. If I run it from IDEA then it > keeps running. > > H

Re: Camel-3 shutdown triggered right after start

2019-12-05 Thread Claus Ibsen
{ > > org.apache.camel.cdi.Main camel = new org.apache.camel.cdi.Main(); > > camel.run(args); > > } > > } > > > > Am Do., 5. Dez. 2019 um 13:15 Uhr schrieb Claus Ibsen-2 [via Camel] > > <[hidden email]>: > > > > &g

Re: Camel-3 shutdown triggered right after start

2019-12-05 Thread Claus Ibsen
egy Starting to > graceful shutdown 1 routes (timeout 300 seconds) > > I tried to create a small reproducer project, but it is working fine. > Is there a way to find out what is triggering the shutdown? > > Dan -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Bidirectional netty component

2019-12-05 Thread Claus Ibsen
nc-mode-usin > but it only work if you can receive something before you can reply. > > How can I send data, using the same Channel as the route ? > > Thank you for your help ! > > Best regards, > Ludwig > > stackoverflow: > https://stackoverflow.com/questions/591

Re: OpenHub framework - Apache Camel, but improved ...

2019-12-05 Thread Claus Ibsen
d for enterprise”. Is it ok for you? > > Thank you, > PETR > > PS: Merry christmas and happy new year !!! > > > On 2 Dec 2017, at 19:03, Claus Ibsen wrote: > > > > Hi Petr > > > > Yes this is very good. Thanks for reacting on our concerns. Lets >

Re: Too many connections with Camel and RabbitMQ

2019-12-04 Thread Claus Ibsen
way that camel can reuse the same connection for its components? > > Thanks for any help. > -- > Alessandro Hoss -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Change from ApacheMQ to ArtemisMQ

2019-12-04 Thread Claus Ibsen
MQComponent > createActiveMQComponent(@Value("${spring.activemq.broker.url}") String > brokerURL) { > > JmsConfiguration jmsConfiguration = new > JmsConfiguration(createActiveMQConnectionPool(brokerURL)); > jmsConfiguration.setConcurrentConsumers(1); > >

Re: XPath in camel 3.0

2019-12-04 Thread Claus Ibsen
t;, > XPathBuilder.xpath("//version[.='PostIntegrationCheck']").booleanResult()) > .setProperty("ssinResult", XPathBuilder.xpath("/ssinResult").nodeResult()) > > Unfortunately the latter approach cannot be simplified with a static import, > because the instance methods of RouteBuilder take precedence. > > Kind regards, > Jimmy -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: file component to access doneFileName option

2019-12-03 Thread Claus Ibsen
} > } > > but for my case, skip is not hard coded value, it is dynamic variable from > ready file name, how could I pass this variable to this filter? > > On Mon, Dec 2, 2019 at 11:20 PM Claus Ibsen wrote: > > > Hi > > > > Instead of using doneFileName whic

Re: DefaultComponent

2019-12-03 Thread Claus Ibsen
annot see in dependeny tree where > flowble-camel > uses camel-core or camel-support. > > When I patch the classes DefaultComponent /-Consumer etc. it works. > > > -Ursprüngliche Nachricht- > Von: Claus Ibsen > Gesendet: Dienstag, 3. Dezember 2019 13:29 > A

Re: DefaultComponent

2019-12-03 Thread Claus Ibsen
java:553) > > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE] > > at > > org.springframework.boot.SpringApplication.refresh(SpringApplication.j > > ava:747) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] > > at > > org.springframework.boot.SpringApplication.refreshContext(SpringApplic > > ation.java:397) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] > > at > > org.springframework.boot.SpringApplication.run(SpringApplication.java: > > 315) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] > > at > > org.springframework.boot.SpringApplication.run(SpringApplication.java: > > 1226) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] > > at > > org.springframework.boot.SpringApplication.run(SpringApplication.java: > > 1215) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] > > at > > de.telekom.dms.dpp2.DppMobilWorkflowApplication.main(DppMobilWorkflowA > > pplication.java:40) > > ~[classes/:na] > > Caused by: java.lang.ClassNotFoundException: > > org.apache.camel.impl.DefaultComponent > > at > > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClas > > sLoader.java:583) > > ~[na:na] > > at > > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Cl > > assLoaders.java:178) > > ~[na:na] > > at > > java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) > > ~[na:na] > > ... 63 common frames omitted > > > > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Debugging and tracing camel-3.0.0 on OSGi

2019-12-03 Thread Claus Ibsen
40 > > > Konstantin Chernov. > > -Original Message- > From: Claus Ibsen > Sent: Monday, December 2, 2019 10:01 PM > To: users@camel.apache.org > Subject: Re: Debugging and tracing camel-3.0.0 on OSGi > > Hi > > Yeah you are welcome to create a JIRA to ad

Re: file component to access doneFileName option

2019-12-02 Thread Claus Ibsen
> }_[0-9]{5}.dat$=${file.name}.ready > > > thanks > > -- > ~~~~~ > Weiquan Yuan > Located in Ottawa, Canada -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Debugging and tracing camel-3.0.0 on OSGi

2019-12-02 Thread Claus Ibsen
ng > java? The way I did it looks like a very dirty hack for me. > Maybe there should be an option like "trace=true" (say, "debug=true") on > camelContext? > > > Konstantin Chernov. > > -Original Message- > From: Claus Ibsen > Sent: Mon

Re: Debugging and tracing camel-3.0.0 on OSGi

2019-12-02 Thread Claus Ibsen
I logged a ticket about the missing XSDs https://issues.apache.org/jira/browse/CAMEL-14239 On Mon, Dec 2, 2019 at 3:07 PM Claus Ibsen wrote: > > Hi > > You need to turn on tracing before starting Camel in Camel 3 to have JMX > tracer. > > context.setBacklogTracing(true); &g

Re: Debugging and tracing camel-3.0.0 on OSGi

2019-12-02 Thread Claus Ibsen
nt xsd for 3.0.0 is missing from the > http://camel.apache.org/schema/blueprint/ at all. Is there any other place > where the schemas reside (besides the camel-blueprint jar)? > > Thanks in advance, > Konstantin Chernov. > > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: [ANNOUNCEMENT] Apache Camel 3.0.0 Released

2019-11-28 Thread Claus Ibsen
he Camel PMC, > Gregor Zurowski > > [1] https://camel.apache.org/manual/latest/camel-3-migration-guide.html > [1] http://camel.apache.org/download.html > [2] https://camel.apache.org/blog/release-3-0-0.html > [3] > https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12315691

Re: Camel 3 alternatives for ServletListener component

2019-11-22 Thread Claus Ibsen
2.x it was done by > implementing org.apache.camel.component.servletlistener.CamelContextLifecycle > which is now removed as well as far as I understand. > > If somebody can answer these questions or point me towards the correct > documentation or examples on how to do this on Camel

Re: camel-paho 2.24.0: MQTT resubscribe in PahoConsumer

2019-11-21 Thread Claus Ibsen
Device Insight GmbH, Willy-Brandt-Platz 6, D-81829 München > http://www.device-insight.com > > Sitz der Gesellschaft: München > Registergericht: Amtsgericht München HRB 149018 > Geschäftsführer: Stefan Hübner, Marten Schirge, Thomas Stammeier. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Documentation for SupervisingRouteController

2019-11-19 Thread Claus Ibsen
= > main.getCamelContexts().get(0).getRouteController().unwrap(SupervisingRouteController.class); > main.run(); -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: component options setting vs exchange 's in /out header setting

2019-11-16 Thread Claus Ibsen
To", constant("bar")) > .setHeader("receiveTimeout", new Integer("250")) > .to("activemq:queue:foo) .to(yyy) > > I hope I explain my meaning clearly enough, any suggestion or feedback is > more than welcome! -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Environment variable not accessible if camel run in Cron Job of CentOS

2019-11-13 Thread Claus Ibsen
on.d/reboot << EOF > * * * * * root /usr/bin/flock -w 1 -E 0 /tmp -c /test.sh 2>&1 | > /usr/bin/tee /dev/tty1 > EOF -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: restart stopped route automatically due to exception

2019-11-13 Thread Claus Ibsen
estarted during the maintenance window because it caught an exception > and stopped -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Stopping a JMSConsumer started in a RecipientList

2019-11-13 Thread Claus Ibsen
y other ideas, I’m happy to give them a go > > Tim > > > On 12 Nov 2019, at 19:08, Claus Ibsen wrote: > > > > Hi > > > > Try to look in JMX to see what consumer / services there are. Also if > > you use ActiveMQ it also has its mbeans where you can control

Re: Stopping a JMSConsumer started in a RecipientList

2019-11-12 Thread Claus Ibsen
are > the author's own and may not reflect the views and opinions of WANdisco, > unless the author is authorized by WANdisco to express such views or > opinions on its behalf. All email sent to or from this address is subject > to electronic storage and review by WANdisco. Although WA

Re: Camel and Swagger API *client* code

2019-11-11 Thread Claus Ibsen
the pipeline > do the JSON transforming...) Anyway, should be pretty neat, and it'll be > much less code than what they currently have. It's pretty straight forward > stuff you guys do all the time, but it'll be my biggest Camel implementation > yet, and I'm glad I'm getting to sho

Re: Camel and Swagger API *client* code

2019-11-08 Thread Claus Ibsen
ent code... But > given Camel's infinite awesomeness, I was wondering if Camel or anyone has > basically automated the process so that, say, at start up you can dynamically > grab someone's API and use that to parse data from their endpoints, etc. > > Thanks and have a great weekend eve

Re: Design Suggestions: Add camel consumer routes dynamically once the application context has already initialized

2019-11-07 Thread Claus Ibsen
luate topic name* ... > .setHeader("topic_no",simple("{{env:HOSTNAME}}")) > >.pollEnrich().simple("mqtt:foo?host=tcp://0.0.0.0:1883 > =${header.topic_no}/status=ipc") > .to("log:my?showAll=true=tr

Re: Release cycle

2019-11-07 Thread Claus Ibsen
rstand how release date of came is determined in general. > Is there any guidelines or fixed timeline for next release? > > > > Thanks and Regards, > Hemang Ajmera -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Request Reply for kafka component

2019-11-03 Thread Claus Ibsen
ng > request/reply style messaging for the older version. > Just wonder if is already supported in the latest 2.24 ? > > Thanks and Regards, > Chio Chuan -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: ConcurrentModificationException when using recipientList with Strings in parallel

2019-11-03 Thread Claus Ibsen
is not threadsafe. For now i changed the returnvalue of > „getRecipients“ to a Set, but maybe someone else needs this. Shall i provide > a patch for this, and if yes, do you know a threadsafe variant of > LinkedHashMap, that provides the the circular behaviour, or should i just > synchronize the „cachePattern“ function? > > Thanks for any responses. > > Best regards, > > Christian Mohr -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Strange Constraint on dependency Spring Boot Camel

2019-11-01 Thread Claus Ibsen
the issue here with Camel and Spring Boot? > > M > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Micronaut and Apache Camel

2019-10-31 Thread Claus Ibsen
t.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail> > Virenfrei. > www.avast.com > <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail> > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> -- Claus Ib

Re: Problems connecting to OPC UA server

2019-10-18 Thread Claus Ibsen
sion 2.24.2 with Spring Boot Framework 2.1.7. > > > Thank you very much in advance for your help! > > Best regards, > Stefan Lederer > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: BridgeErrorHandler on JMS Endpoint does not work as expected

2019-10-18 Thread Claus Ibsen
; > > Best regards, > > Daniel Novak > > > Von: Claus Ibsen > Gesendet: Donnerstag, 17. Oktober 2019 17:13:26 > An: users@camel.apache.org > Betreff: Re: BridgeErrorHandler on JMS Endpoint does not work as expected > > Hi > > Ah okay, but if you

Re: BridgeErrorHandler on JMS Endpoint does not work as expected

2019-10-17 Thread Claus Ibsen
oute which I probably have to > remove with the next version. > > > So I came to the conclusion that I will configure a "poison message" > mechanism on MQ itself. > > This makes sense anyways because there might be other scenarios were an > endless loop might occur. &

Re: BridgeErrorHandler on JMS Endpoint does not work as expected

2019-10-17 Thread Claus Ibsen
> Gesendet: Donnerstag, 17. Oktober 2019 10:29:06 > An: users@camel.apache.org > Betreff: AW: BridgeErrorHandler on JMS Endpoint does not work as expected > > > Hi Raymond, > > > I think I had the same problem with the FTP-Producer and I resolved it using > an onCompletionExceptionHandler.

Re: BridgeErrorHandler on JMS Endpoint does not work as expected

2019-10-16 Thread Claus Ibsen
> Of course, I had CiA2 already opened. > > > > Do you mean 11.5 (Example that bridges the consumer with Camel’s error > > handler). There the bridgeerrorhandler is explained, but I'm not sure about > > the reasons. > > > > Op wo 16 okt. 2019 om 15:55 schreef Clau

Re: BridgeErrorHandler on JMS Endpoint does not work as expected

2019-10-16 Thread Claus Ibsen
t; > > > > > Von: ski n > > Gesendet: Mittwoch, 16. Oktober 2019 13:04:46 > > An: users@camel.apache.org > > Betreff: Re: BridgeErrorHandler on JMS Endpoint does not work as expected > > > > @Daniel instead of camel-jms yo

Re: BridgeErrorHandler on JMS Endpoint does not work as expected

2019-10-16 Thread Claus Ibsen
processed within a certain period > of time. For security reasons, DZ PRIVATBANK does not accept any instructions > that must be in writing (financial transactions, changes of address, etc.) > sent by e-mail. If a message is urgent, please contact us by telephone. > **

Re: BridgeErrorHandler on JMS Endpoint does not work as expected

2019-10-16 Thread Claus Ibsen
t; a certain period of time. For security reasons, DZ PRIVATBANK does not > > accept any instructions that must be in writing (financial transactions, > > changes of address, etc.) sent by e-mail. If a message is urgent, please > > contact us by telephone. > > ** > > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Configuring custom Kafka producer/consumer properties on Camel Kafka component/endpoint?

2019-10-13 Thread Claus Ibsen
tMojo.java#L24. > Please take a look and share your thoughts about it. > > Regards, > Omar > > On Sun, 13 Oct 2019 at 14:12, Claus Ibsen wrote: > > > Hi > > > > Yeah this has come up a few times that Kafka is adding new options, or > > more particular

Re: camel-ssh/Persistent Endpoint Connection/Request

2019-10-13 Thread Claus Ibsen
then you are very welcome to try to implement this. We love contributions https://github.com/apache/camel/blob/master/CONTRIBUTING.md > bye > David Ecker > > > > > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Configuring custom Kafka producer/consumer properties on Camel Kafka component/endpoint?

2019-10-13 Thread Claus Ibsen
may contain confidential or privileged > information. If you are not the addressee, please notify the sender and > delete this message and all attachments from your files." -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: How to set dynamic value to routeid

2019-10-08 Thread Claus Ibsen
; from("direct:test") > .routeId(simple("${body.topicName}").toString()) > > Above both didnt work -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: netty tcp consumer not reading large payload

2019-10-08 Thread Claus Ibsen
l > > wrote: > > > > > Hi, > > > I have problem reading large payload using the netty TCP component. The > > > payload is getting read in chunks, can you please guide me as to how can > > I > > > read the entire payload > > > > > > -- > > > Regards, > > > Rohan Emmanuel > > > > > > > > -- > Regards, > Rohan Emmanuel -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

<    5   6   7   8   9   10   11   12   13   14   >