Re: Saga EIP // copying data from the point of failure into compensation flow

2020-09-10 Thread Alex Dettinger
e any > way I can get exchange object which failed inside the saga scope? > > Cheers > Reji > > On Tue, Sep 8, 2020 at 4:38 PM Alex Dettinger > wrote: > > > Hi Reji, > > > > I've never tested but it remind me about option: > > >

Re: Saga EIP // copying data from the point of failure into compensation flow

2020-09-08 Thread Alex Dettinger
Hi Reji, I've never tested but it remind me about option: https://camel.apache.org/components/latest/eips/saga-eip.html#_using_custom_identifiers_and_options hth, Alex On Tue, Sep 8, 2020 at 9:48 PM Reji Mathews wrote: > Hello community > > I was wondering if there is a way to retain the exc

Re: How to configure shutdown timeout

2020-08-18 Thread Alex Dettinger
Hi Alex, It seems the timeout is tuned after the context creation. One may achieve the desired result with either: @Override protected void doPostSetup() throws Exception { context.getShutdownStrategy().setTimeout(60); } OR MAYBE @Override protected int getShutdowntimeout() { return 60; } h

Re: [HEADS UP] - Java 8 to be dropped

2020-06-26 Thread Alex Dettinger
Thanks for sharing Claus :) Is the support ending at june 2021 ? Or maybe I miss something ? On Fri, Jun 26, 2020 at 10:23 AM Claus Ibsen wrote: > Hi > > Just a heads up that from Camel 3.5 onwards we will drop Java 8 support. > > So this means that minimum Java version is now Java 11. > We are

Re: How to properly handle Camel files endpoint in jUnit test

2020-06-24 Thread Alex Dettinger
Hi Jessy, In such a case, I would rather do something inspired from one of the camel file test: https://github.com/apache/camel/tree/master/core/camel-core/src/test/java/org/apache/camel/component/file hth, Alex On Wed, Jun 24, 2020 at 3:00 PM Jessy Chenavas wrote: > Hello, > > I found on yo

Re: Unable to XPath, as bean or as split with complex XML

2020-06-18 Thread Alex Dettinger
Hi Mikael, I've noticed that the incoming xml file is involving 2 xml namespaces while the query looks not. Precising namespaces in the xpath query may help to move further, something like: https://github.com/apache/camel/blob/master/core/camel-core/src/test/java/org/apache/camel/builder/xml/XPa

Re: simple language bodyOneLine throws error

2020-06-16 Thread Alex Dettinger
Hi Shiva, bodyOneLine was introduced since camel 3 onward, https://issues.apache.org/jira/browse/CAMEL-13674. Maybe it's time to get a ride at camel 3 https://camel.apache.org/manual/latest/camel-3-migration-guide.html ;) Alex On Tue, Jun 16, 2020 at 9:57 AM Gv, Shivakumar wrote: > Hi team,

Re: GsonDataFormat "useList" option?

2020-06-02 Thread Alex Dettinger
Hi Jeremy, It reminds me something, could you please try something like below: https://github.com/apache/camel-quarkus/blob/master/integration-tests/dataformats-json/src/main/java/org/apache/camel/quarkus/component/dataformats/json/JsonDataformatsRoute.java#L58..L61 hth, Alex On Tue, Jun 2, 20

Re: Problem with Spring Boot Camel application

2020-04-02 Thread Alex Dettinger
s, resulting > in the conflict. > > Thanks, > Joe > > -Original Message- > From: Alex Dettinger > Sent: Thursday, April 2, 2020 3:51 AM > To: users@camel.apache.org > Subject: Re: Problem with Spring Boot Camel application > > Hi Joe, > > Maybe

Re: Problem with Spring Boot Camel application

2020-04-02 Thread Alex Dettinger
Hi Joe, Maybe versions alignment, If I'm right mvn dependency:tree would show non aligned version while you should have something like camel 3.1.0 / spring 5.2.3.RELEASE / spring boot 2.2.4.RELEASE. Checking other examples may help in this regard, they should be available here https://github.c

Re: Testing Route in camel-quarkus

2020-03-25 Thread Alex Dettinger
.properties is picked up, but stored in > target/log/ directory. > > In summary, log configuration in > src/test/resources/application.properties is ignored and working dir > is apparently target > > Am Mi., 25. März 2020 um 09:19 Uhr schrieb Alex Dettinger [via Camel] > :

Re: Testing Route in camel-quarkus

2020-03-25 Thread Alex Dettinger
Hi Dennis, Interesting idea, this may work in jvm mode and would need to be excluded when executing @NativeImageTest. You may also be able to inject a ProducerTemplate in the test to feed the route directly. Alex On Wed, Mar 25, 2020 at 7:55 AM Dennis Holunder wrote: > I could create a quark

Re: Camel version 3.0.2

2020-03-13 Thread Alex Dettinger
Hi remco, If I recall correctly, it's recommended to upgrade to camel 3.1.0 anyway as camel 3.0.x will be short lived. Hope this helps, Alex On Fri, Mar 13, 2020 at 3:16 PM Remco Schoen wrote: > Hi, > > As there are a lot of breaking changes for my projects in version 3.1.0, I > was wonderin

Re: Stopping a Route when no more messages meet JMS selector

2020-02-24 Thread Alex Dettinger
Not sure about the exact implementation, but I would investigate the camel code around MainSupport.durationIdle. On Sun, Feb 23, 2020 at 11:22 PM nomit babraa wrote: > Hi > > I was wondering if there is any way to do the following: > > - A route starts up. > - It consumes certain messages from a

Re: ProducerTemplate.request() not returning complete Exchange

2020-02-20 Thread Alex Dettinger
ECONDS, > mock); > >log.info("->> testProcessingRun Complete <<-"); >} > > > > > > +1 for getMessage() :) > > > > On Mon, Feb 17, 2020 at 11:18 AM Giovanni Condello < > > giovanni.conde...@cod

Re: ProducerTemplate.request() not returning complete Exchange

2020-02-17 Thread Alex Dettinger
f > assuming getIn() is always the right place to look for data coming out of a > component > > Giovanni > > -Messaggio originale- > Da: Alex Dettinger > Inviato: lunedì 17 febbraio 2020 11:04 > A: users@camel.apache.org > Oggetto: Re: ProducerTemplate.request()

Re: ProducerTemplate.request() not returning complete Exchange

2020-02-17 Thread Alex Dettinger
Hi Marci, I would say that from("jms:Sahara")... has MEP InOUt so In message with header "foo", and OUT message with header "bar". So assertThat(“return should be bar”,reply.get*Out/Message*().getHeader(“test”),equalTo(“bar”) should be ok. Alex On Mon,

Re: ProducerTemplate.request() not returning complete Exchange

2020-02-17 Thread Alex Dettinger
Hi Marci, I would say that from("jms:Sahara")... has MEP InOUt so In message with header "foo", and OUT mess On Fri, Feb 14, 2020 at 11:43 PM Marci wrote: > > I understand that the new Processor(){} is for the message being sent to > the consumers (from(route)) and this is working fine. > Wh

Re: Re: Re: Bindy plus Unicode

2020-01-27 Thread Alex Dettinger
emes, that need features, > the old logic in the JDK > doesn't support. The lib is very common (e.g. LibreOffice uses it) and > AFAIK the de-facto standard > for working with elaborate Unicode. > > -- Mik > > > Gesendet: Freitag, 24. Januar 2020 um 19:15 Uhr >

Re: Re: Bindy plus Unicode

2020-01-24 Thread Alex Dettinger
ded? Only Camel 3.x or will it be backported to 2.2? > > -- Mik > > ------ > Gesendet: Freitag, 24. Januar 2020 um 11:43 Uhr > Von: "Alex Dettinger" > An: users@camel.apache.org > Betreff: Re: Bindy plus Unicode > Hi Michael, > > I was just looking at this

Re: Bindy plus Unicode

2020-01-24 Thread Alex Dettinger
Hi Michael, I was just looking at this component for another purpose and it looks to me that fixed length tokenzation occurs here: https://github.com/apache/camel/blob/master/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyFixedLengthFactory.java#L212..L216 So, I

Re: Salesforce PushTopic subscription replayId not working as expected

2020-01-23 Thread Alex Dettinger
Hi Rick, My understanding is that there is an issue accessing the replayId in camel, and not an issue with the -2 durability that is actually served. From the code, I think the replayId should be set here in 2.22.x: https://github.com/apache/camel/blob/camel-2.22.x/components/camel-salesforce

Re: Parsing JSON within the Camel Velocity component template?

2020-01-06 Thread Alex Dettinger
Hi Gerald, The example below shows how to use a pojo from a velocity context: https://github.com/apache/camel/blob/master/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocityBodyAsDomainObjectTest.java So, chances are that you just need to set the body to a po

Re: Springboot Camel Javamailer Mock Testing

2019-12-12 Thread Alex Dettinger
Hi Louis, Maybe port 25 is kinda not accessible to the process. In any case, asking the org.jvnet.mock-javamail community may be a better option. Alex On Thu, Dec 12, 2019 at 1:22 PM Louis Becker wrote: > Hi > > I am trying to set up a mock test for when I am sending email to achieve > 100%

Re: own endpoint exmaple?

2019-09-19 Thread Alex Dettinger
will need to fix this. By the way, you can start > scaffolding your component through maven archetype, > https://camel.apache.org/manual/latest/camel-maven-archetypes.html, as I > recall, it will also add the necessary files to enable camel auto discovery > out of the box > >

Re: own endpoint exmaple?

2019-09-16 Thread Alex Dettinger
> > 2. Stupid question: how and where to do this? > > -Ursprüngliche Nachricht- > Von: Alex Dettinger > Gesendet: Montag, 16. September 2019 12:52 > An: users@camel.apache.org > Betreff: Re: own endpoint exmaple? > > Hi Thomas, > >

Re: own endpoint exmaple?

2019-09-16 Thread Alex Dettinger
Hi Thomas, This link might be of interest: https://camel.apache.org/manual/latest/writing-components.html In your case, I wonder if you missed to create the thomas component first. hth, Alex On Mon, Sep 16, 2019 at 12:44 PM wrote: > Hi, > > can some point me to a working example where a

Re: [ANNOUNCEMENT] Brand new Apache Camel website

2019-08-20 Thread Alex Dettinger
Awesome. It looks so fresh and nice :) Kudos to all Cameleers that made this possible. Alex On Tue, Aug 20, 2019 at 3:39 PM Michael Joyner wrote: > Wow, it looks great > > On Tue, Aug 20, 2019 at 6:03 AM Zoran Regvart wrote: > > > Hi Cameleers! > > I'm delighted to announce that the new Ap

Re: Read header value in Camel xpath

2019-06-26 Thread Alex Dettinger
If I get it correctly, you may be interested in the "in:header" xpath function: https://github.com/apache/camel/blob/master/components/camel-xpath/src/main/docs/xpath-language.adoc https://github.com/apache/camel/blob/camel-2.24.x/camel-core/src/test/java/org/apache/camel/language/XPathFunctionTest

Re: How to ensure ordering in camel context polling weblogic jms queue

2019-06-14 Thread Alex Dettinger
Hi Jeffrey, I've never faced this exact situation. But I wonder if a resequencer could help: https://github.com/apache/camel/blob/master/core/camel-core/src/main/docs/eips/resequence-eip.adoc I don't know if it plays well with transaction but it looks like it could be tested quickly. My 2c, Ale

Re: How to receive data from a seda queue in netty4 component decoder

2019-06-09 Thread Alex Dettinger
Just a try but I wonder if the "decoder" plays well with "textline=true". So, perharps removing that could help. More info in the doc there: https://github.com/apache/camel/blob/master/components/camel-netty4/src/main/docs/netty4-component.adoc My 2 cents, Alex On Sun, Jun 9, 2019 at 6:54 AM canu

Re: camel-ftp: meaning of option "UseUserKnownHostsFile" in combination with "knownHostsUri"

2019-06-06 Thread Alex Dettinger
Hi Peter, When CAMEL-8202 has been fixed, the isUseUserKnownHostsFile might have been added to preserve the default behaviour across the camel 2.x line. But then, the default value should have been false and you would not have been impacted. At the end of the day, setting this option to false

Re: Null Argument treated as no parameter during method selection

2019-06-02 Thread Alex Dettinger
Hi Ankit, I think you have spotted a very specific case. You could help by checking whether this issue is present in the last camel version. If it is not fixed there, then building a minimal camel test reproducing the issue would be the way to go :) Cheers, Alex On Thu, May 30, 2019 at 9:55 AM

Re: Strategy for deleting/moving files

2019-05-18 Thread Alex Dettinger
In this case, chances are that adding .to("file:kind-of-failed-directory") at some point in the dead letter channel logic helps. useOriginalMessage() may be of interest too. Alex On Sat, May 18, 2019 at 10:14 AM Jonathan Cook wrote: > Thanks for the replies > > The moveFailed does do what I wan

Re: Strategy for deleting/moving files

2019-05-17 Thread Alex Dettinger
Hi Jonathan, Depending on the situation, you could try to use .to("file:kind-of-failed-directory") in the dead letter channel. But, it sounds to me that you should not use a dlc and look first at the moveFailed option of the file-component*:* * https://github.com/apache/camel/blob/master/com

Re: Netty4 Little Endian encoding

2019-04-27 Thread Alex Dettinger
Hi Yogesh, From the documentation, it looks that the encoding is used only when the textline codec is activated. https://github.com/apache/camel/blob/master/components/camel-netty4/src/main/docs/netty4-component.adoc So it's worth trying something like: hth, Alex On Fri, Apr 26, 2019 at

Re: using jsonpath for choice

2019-03-27 Thread Alex Dettinger
Hi Rajith, Not sure we are in the same context but I think it's worth trying this expression: $[?(@.approved == true)]. hth, Alex On Tue, Mar 26, 2019 at 9:41 PM Rajith Muditha Attapattu wrote: > Thanks for the response Larry. > The camel version is 2.20.1 > And I do have the camel-jsonpath

Re: File polling issue for filename with multiple dots

2018-11-15 Thread Alex Dettinger
Hi Guillaume, Welcome on camel 2.22.x :) I've reported issue https://issues.apache.org/jira/browse/CAMEL-12940 and provided a fix. You should be able to check the fix against 2.23.0-SNAPSHOT tomorrow, or wait for the release of CAMEL-2.22.3. Enjoy, Alex On Thu, Nov 15, 2018 at 3:17 PM DEIMAT G

Re: camel-cxfrs : Urls getting interchanged when CamelDestinationOverrideUrl is used

2018-10-31 Thread Alex Dettinger
Hi Sowjanya, It reminds me CAMEL-12252 . Do you hit the same issue with the last camel version ? If yes, could you please provide a test reproducing the bug ? Links that could be related: https://github.com/apa

Re: [HEADS UP] Camel K is here!

2018-10-19 Thread Alex Dettinger
Whaoo, I've had a look at introducing-camel-k from Nicolas and that's awesome. Well done guys ! On Thu, Oct 18, 2018 at 4:25 AM Willem Jiang wrote: > Yeah, it's great to see we can use Camel more easily with K8S. > It's awesome that

Re: Apache Camel JAXB unmarshalling returns null properties after upgrade from Camel from 2.20.4 to 2.21.2 or 2.22.1

2018-10-10 Thread Alex Dettinger
Hi Lars, You're right, this behavior changed in jaxb-impl 2.3.0. You may workaround by force downgrading the version in your pom file: com.sun.xml.bind jaxb-impl 2.2.11 Or changing your class definition with something as below: @XmlRoot

Re: Using same queue multiple times in a circuit

2018-09-23 Thread Alex Dettinger
Hi Damien, from("jms:queue:queue1") reads messages once at a time. Using from("jms:queue:q1?concurrentConsumers=2") may help but imply consequences in terms of resources, thread safety, readability... In such a situation, I would avoid reusing q1 if possible. For instance, you may be able to

Re: UDP: Netty4 vs. Mina2

2018-09-15 Thread Alex Dettinger
t;direct:udp"); > > > > from("direct:udp") > > .log("*** BEFORE write to UDP: ${body}") > > .transform().method("myBean", "foo") // XXX: this one line hack > fixed it > > > .to("netty4:udp://localhost:4?udpConnectionlessSending=true&sync=false"

Re: UDP: Netty4 vs. Mina2

2018-09-14 Thread Alex Dettinger
Hi Ron, By default, camel-netty4 includes default codecs based on java serialization. So, it could be that your payload is NOT Serializable. You would then need to configure codecs matching your case. You may find below links of interest: https://github.com/apache/camel/blob/master/components/cam

Re: Split with regex and group not working

2018-06-19 Thread Alex Dettinger
Hi Rory, If I get it well the whole regex is inserted between lines while you were expecting to insert only the matching part of the regex. In that case, you are welcome to work on a fix or open a ticket. At Apache Camel, we love contributions ;) https://github.com/apache/camel/blob/master/CO

Re: Camel and ActiveMQ ObjectMessage

2018-05-29 Thread Alex Dettinger
Hi John, I wonder if you could be interested in "messageConverter", e.g: https://github.com/apache/camel/blob/master/components/camel-jms/src/test/java/org/apache/camel/component/jms/ConsumeMessageConverterTest.java Regards, Alex On Tue, May 29, 2018 at 7:08 PM, John fansler wrote: > As of

Re: can not locate rest api

2018-05-29 Thread Alex Dettinger
Hi Ranabroto, Last time I hit a similar issue, I ended up with something like " http://localhost:8084/camel/test";. Also, if you are deploying in minishift, you would need to force address resolution, example at https://github.com/aldettinger/validator-service#how-could-i-invoke-the-validator-se

Re: Camel Splitter Group attribute injection not working

2018-05-18 Thread Alex Dettinger
Hi Gary, Yes, the first extract should work. The second one is at least missing some double quotes around the group xml attribute (should be group="{{noOfLines}}"). Alex On Fri, May 18, 2018 at 5:43 PM, Mills, Gary (GE Digital) < gary.l.mi...@ge.com> wrote: > Hello, > > can you inject a value

Re: DirectConsumerNotAvailableException: No consumers available on endpoint

2018-04-26 Thread Alex Dettinger
You may be interested in routes startupOrder or the block option

Re: Writing file content from a custom header

2018-03-30 Thread Alex Dettinger
Hi Johnathan, Writing files directly from a header is not possible afair. In such situation, you would merely set the body from the DSL, something like: setBody(simple("${in.header.FILE}")). Depending on your integration logic, you may also be interested in the new claim check eip implement

Re: Filtering files with the File2 component

2018-02-21 Thread Alex Dettinger
Hi Meissa, I've read it quickly. But, it may be that just need to include xml files and that's all: from("file:loans?include=.*xml") Regards, Alex On Wed, Feb 21, 2018 at 8:53 AM, Meissa Sakho wrote: > Hello everyone, > I need to write a route with the requirements below: > 1) The route will

Re: JMS: override Camel header type conversions?

2018-02-12 Thread Alex Dettinger
Same as Quinn, I would vote for the ISO-8601 standard. However, I would consider delaying the change to camel 3.0 or making it optional. On Mon, Feb 12, 2018 at 9:50 PM, Quinn Stevenson < qu...@pronoia-solutions.com> wrote: > If it’s going to change, I would vote for the ISO-8601 format - that’s

Re: Retrying a message from a specific point of the route

2018-02-09 Thread Alex Dettinger
hieve the goal (as mentioned in > the post you pointed). Do you see any other way to achieve this? > > Thanks in advance! > > From: Alex Dettinger > Sent: Monday, February 5, 2018 16:32 > To: users@camel.apache.org > Subject: Re: Retrying a message from a specific point of the r

Re: Retrying a message from a specific point of the route

2018-02-05 Thread Alex Dettinger
Hi, You may find this trick of interest in order to influence the redelivery. Enjoy, Alex On Mon, Feb 5, 2018 at 7:40 AM, Hemant Pekhale wrote: > Hi, > > How to retry a message fro