How to propagates exceptions back to the caller in DeadLetterChannel Error Handler like in DefaultErrorHandler?

2023-10-26 Thread Mikhail Lukyanov
I'm using Apache Camel version 3.14.9. And I need to propagate exceptions back to the caller in DeadLetterChannel Error Handler like in DefaultErrorHandler. For new exceptions that may be thrown during sending the message to the dead letter endpoint, I can set deadLetterHandleNewException

Download swagger specification by https prefix in REST Swagger component

2020-11-23 Thread Mikhail Lukyanov
Hello everyone. I tried to download swagger specification by https prefix in REST Swagger component, but when I ran the route I got the error Failed to create Producer for endpoint: rest-swagger:// >

Route id in threadNamePattern

2020-10-30 Thread Mikhail Lukyanov
Hello everyone. Is it possible to specify routeId in threadNamePattern? I found how https://camel.apache.org/manual/latest/threading-model.html specify ContextId (camelId) I tried this threadNamePattern="Camel (#camelId#) routeId (${routeId}) thread ##counter# - #longName#" But get error

Re: Attach several files to an email

2020-09-20 Thread Mikhail Lukyanov
; вс, 20 сент. 2020 г. в 15:27, Mikhail Lukyanov : > Hello everyone. > > I use Camel version 2.25.1 > > I found how to attach one file to an email > https://stackoverflow.com/questions/11035278/how-to-send-file-as-mail-attachment-via-camel-spring-dsl > . > > But

Attach several files to an email

2020-09-20 Thread Mikhail Lukyanov
Hello everyone. I use Camel version 2.25.1 I found how to attach one file to an email https://stackoverflow.com/questions/11035278/how-to-send-file-as-mail-attachment-via-camel-spring-dsl . But how to attach several files to an email at once?

Continue statement analog in loop EIP. How breakes one iteration and continue

2020-09-18 Thread Mikhail Lukyanov
Hello everyone. How in loop EIP breaks one iteration (in the loop), if a specified condition occurs, and continues with the next iteration? -- *With best regards, Lukyanov Mikhail* *Tel: **+7-909-69-71-547*

Re: ExchangePattern in JMS component

2020-09-10 Thread Mikhail Lukyanov
gt; > > > On Wed, Sep 9, 2020 at 3:35 PM Mikhail Lukyanov > wrote: > > > > It turns out the exchangePatter for JMS and ActiveMQ components also > needs > > to be fixed to *common* type? > > > > > > > > > > > > ср, 9 сент. 2020 г. в

Re: ExchangePattern in JMS component

2020-09-09 Thread Mikhail Lukyanov
appropriate value. > On the producer it can be used for InOnly or InOut message pattern for > components that support both style. (such as JMS) > > replyTo was wrong in JMS - fixing that to be a common option. > > On Wed, Sep 9, 2020 at 2:17 PM Mikhail Lukyanov > wrote: >

Re: ExchangePattern in JMS component

2020-09-09 Thread Mikhail Lukyanov
The same situation with replyTo In Table in is only consumer parameter [image: image.png] But in examples this parameter is used in producer [image: image.png] ср, 9 сент. 2020 г. в 14:32, Mikhail Lukyanov : > Hello everyone. > > Why in docs https://camel.apache.org/components/l

ExchangePattern in JMS component

2020-09-09 Thread Mikhail Lukyanov
Hello everyone. Why in docs https://camel.apache.org/components/latest/jms-component.html path paraments exchangePattern specified only by the consumer [image: image.png] although in the same place it is indicated in the example by the producer [image: image.png] Is this parameter a consumer-only

Re: No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script

2020-08-28 Thread Mikhail Lukyanov
created a issue https://issues.apache.org/jira/browse/CAMEL-15480 пт, 28 авг. 2020 г. в 19:07, Andrea Cosentino : > Probably is outdated. Please open an issue so we won't forget. Thanks > > Il ven 28 ago 2020, 18:06 Mikhail Lukyanov ha > scritto: > > > > > There is th

Re: No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script

2020-08-28 Thread Mikhail Lukyanov
ago 2020, 17:58 Mikhail Lukyanov ha > scritto: > > > Hello, everyone. > > > > I'm using Camel version 2.25.1. > > > > I get an error when I want to get the property as indicated here > > > > > https://camel.apache.org/components/latest/l

No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script

2020-08-28 Thread Mikhail Lukyanov
Hello, everyone. I'm using Camel version 2.25.1. I get an error when I want to get the property as indicated here https://camel.apache.org/components/latest/languages/groovy-language.html#_using_properties_function through properties.resolve("test_name") (in JavaSctipt this works) [image:

How to use a value from a file with properties for a Camel component option value?

2020-07-05 Thread Mikhail Lukyanov
Hello everyone! I need to specify as the value in the Camel component option the value from the file with the properties, I thought it was done and as a property in uri https://camel.apache.org/components/latest/properties-component.html. I tried to do the following *

Re: Error in camel-http4 after update version from 2.20.2 to 2.25.1

2020-07-03 Thread Mikhail Lukyanov
. > > On Thu, May 28, 2020 at 7:36 AM Mikhail Lukyanov > wrote: > >> Hello, everyone >> >> I updated the Camel version and ran into a problem with the *http4* >> component. >> >> When I send a message using this component, I get the following error

Re: Split header with tokenize with Spring DSL

2020-06-28 Thread Mikhail Lukyanov
I found a solution, the tokenize language has an option 'headerName' (Name of header to tokenize instead of using the message body) https://camel.apache.org/components/latest/languages/tokenize-language.html. This works ** вс, 28 июн. 2020 г. в 12:29, Mikhail Lukyanov : > It says >

Split header with tokenize with Spring DSL

2020-06-28 Thread Mikhail Lukyanov
It says https://camel.apache.org/components/latest/eips/split-eip.html#_using_tokenizer_from_spring_xml_extensions that you can use the tokenizer expression in the Spring DSL to split bodies or headers using a token. How can I split header with tokenize (for example I have in the header with

Multiple CamelContext alternative in Camel 3

2020-06-10 Thread Mikhail Lukyanov
Hello everyone! In our project, centralaized ESB, we are using multiple camelcontext for different groups of task and connect them by direct-vm. In Camel 3 multiple CamelContext no longer supported. How can I repeat the currently centralized architecture in version 3, or is it specifically

Re: What is the difference between setting the header Content-Type through Exchange.CONTENT_TYPE and usually Content-Type?

2020-05-19 Thread Mikhail Lukyanov
he header > names, for example to use type safe names in Java code. > Camel will replace the Exchange.XXX with the value, eg Content-Type in > this case. > > On Tue, May 19, 2020 at 4:15 PM Mikhail Lukyanov > wrote: > > > > Hello everyone! &

What is the difference between setting the header Content-Type through Exchange.CONTENT_TYPE and usually Content-Type?

2020-05-19 Thread Mikhail Lukyanov
Hello everyone! I can set header Content-Type so * application/json* and so * application/json* What is the difference between these two approaches? What approach can be a problem? -- *With best regards, Lukyanov Mikhail* *Tel: **+7-909-69-71-547*

Re: camelContex cpu and memory usage

2020-04-28 Thread Mikhail Lukyanov
troubleshooting > etc. > > For production monitoring then its per JVM for memory and CPU. > > > On Mon, Apr 27, 2020 at 7:46 PM Mikhail Lukyanov > wrote: > > > > Is there way monitoring cpu and memory usage specific camelContext or > > route? > > > > -- > Claus Ib

camelContex cpu and memory usage

2020-04-27 Thread Mikhail Lukyanov
Is there way monitoring cpu and memory usage specific camelContext or route?

Re: rest-swagger. Request swagger spec with auth by http

2020-03-24 Thread Mikhail Lukyanov
> On Fri, Mar 20, 2020 at 9:27 AM Mikhail Lukyanov > wrote: > > > > Hello, everyone > > > > Is it possible to somehow get the swagger specification by a HTTP request > > from a resource that requires authorizatio

rest-swagger. Request swagger spec with auth by http

2020-03-20 Thread Mikhail Lukyanov
Hello, everyone Is it possible to somehow get the swagger specification by a HTTP request from a resource that requires authorization? Now when I start the route I get an error Caused by: org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: rest-swagger://

Re: camel-swagger-java Semantic error. Methods in rest service with id have the same operationId

2020-03-13 Thread Mikhail Lukyanov
Ok, understand, i'll do it пт, 13 мар. 2020 г., 11:36 Claus Ibsen : > Hi > > Yeah that seems like a little bug/issue. You are welcome to create a > JIRA ticket and work on a fix and provide it as a github PR. > > On Fri, Mar 13, 2020 at 8:30 AM Mikhail Lukyanov > wrote: >

Re: camel-swagger-java Semantic error. Methods in rest service with id have the same operationId

2020-03-13 Thread Mikhail Lukyanov
Camel version *3.2.0* пт, 13 мар. 2020 г. в 10:30, Mikhail Lukyanov : > In camel-swagger-java, for this service > > produces="application/json"> > produces="application/json" uri="/get"> > > > >

camel-swagger-java Semantic error. Methods in rest service with id have the same operationId

2020-03-13 Thread Mikhail Lukyanov
In camel-swagger-java, for this service I get next swagger.json, which does not pass validation because Semantic error at paths./path/get2.get.operationIdOperations must have unique operationIds. { "swagger" : "2.0",

Re: SJMS2 vs JMS components for transfer messages from and to ActiveMQ Artemis

2020-03-01 Thread Mikhail Lukyanov
ports as there are > companies and consultants that has great experience with JMS brokers > and Camel and to get them tuned to very high performance. The settings > for JMV and OS and hardware can all make a big difference. > > > On Wed, Feb 26, 2020 at 1:59 PM Mikhail Lukyanov >

Re: SJMS2 vs JMS components for transfer messages from and to ActiveMQ Artemis

2020-02-26 Thread Mikhail Lukyanov
ons. > > Il giorno mer 26 feb 2020 alle ore 13:59 Mikhail Lukyanov < > lukyanov...@gmail.com> ha scritto: > > > I am trying to find the fastest way to transfer messages from one > ActiveMQ > > queue to another Artemis. And I thought that the SJMS2 component woul

SJMS2 vs JMS components for transfer messages from and to ActiveMQ Artemis

2020-02-26 Thread Mikhail Lukyanov
I am trying to find the fastest way to transfer messages from one ActiveMQ queue to another Artemis. And I thought that the SJMS2 component would be faster than traditional JMS, but routing with JMS is 2.5 times faster (20 000 vs 8000 msg/s). I use Camel version 2.20.2 and Artemis version 2.11.0.

Re: Is it possible to have several rest configurations in rest dsl, for example with http and https schemes on different ports?

2020-01-24 Thread Mikhail Lukyanov
amel but > rather in things like mongodb/ postgresql. > > Unless someone pipes up to let us know how to run multiple rest configs, I > suggest looking at a solution like mine > > Riaan > > -Original Message- > From: Mikhail Lukyanov > Sent: Friday, 24 January 20

Is it possible to have several rest configurations in rest dsl, for example with http and https schemes on different ports?

2020-01-23 Thread Mikhail Lukyanov
I hava one rest config for http scheme, but I need several configurations, for example, for https scheme to on different port. I use 2.20.2 camel-version. My config *-http://camel.apache.org/schema/spring " id="rest">* * -* * * ** * -* * -* * * *

https in jetty consumer when adding "sslContextParameters" parameters works without specifying a scheme "https"

2020-01-22 Thread Mikhail Lukyanov
extParameters;> HTTP - - - - - - And this works in rest dsl to. -http://camel.apache.org/schema/spring; id="rest"> - - - - - - - -- *With best regards, Mikhail Lukyanov* *Tel: **+7-909-69-71-547*

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

2019-12-30 Thread Mikhail Lukyanov
diagnose the threads to > see which ones there are, and if anyone stand out, related to your > route where you think something is stuck. > > > On Mon, Dec 30, 2019 at 4:43 PM Mikhail Lukyanov > wrote: > > > > Hi, Claus. > > > > I have the follow

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

2019-12-30 Thread Mikhail Lukyanov
ur use-case for the reason you want to do this? > You should often not do something like this, so want to hear more about > why. > And what Camel version and what resources are you using for transaction? > > On Sun, Dec 29, 2019 at 12:52 PM Mikhail Lukyanov > wrote: > >

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

2019-12-29 Thread Mikhail Lukyanov
Hello everyone Tell me, please, is there a way to kill pending transactions? Route freezes, after I kill transactions in InflightRepository cc.getInflightRepository().remove(exchange); But they remain pending. When I stop the route, it does not stop immediately because of a pending transaction