Re: How to set client or clientFactory in the FhirConfiguration object?

2019-06-25 Thread John Poth
Sure you can check [1] for and example, thanks! [1] https://github.com/apache/camel/blob/b9a3117f19dd19abd2ea8b789c42c3e86fe4c488/components/camel-fhir/camel-fhir-component/src/test/java/org/apache/camel/component/fhir/FhirCustomClientConfigurationIT.java#L63 On Tue, Jun 25, 2019 at 7:42 AM Claus

RE: Intermittent RejectedExecutionException

2019-06-25 Thread Valdis Andersons
Hi Claus, Is there a way to handle the RejectedExecutionException when using a DynamicRouter? I'm not quite ready yet to refactor my router to static endpoints. Here is the setup I have for it: public void configure() throws Exception { from(inputEndpoint) .pro

ClassNotFoundException cxfrs + cxfws.

2019-06-25 Thread Magyar Zoltán
Hi, the scenario is a simple cxfrs endpoint from that passing message to a cxf ws.env: WildFly-Camel 4.9.0 the error message:java.lang.ClassNotFoundException: hu.fornax.olir3.dms.producer.UTPasswordCallback CxfEndpoint with password callback: @Named("dmsProducerEndpoint") @Produces p

Re: How to unmarshal when you don't know what you're unmarshalling?

2019-06-25 Thread Michael Davis
Can you get the sender to specify which type of file it is using a particular topic or message header or something? Michael Davis On 2019-06-21, 5:29 PM, "Ron Cecchini" wrote: Hey, all. I have a route that's sitting on a port and it can receive 1 of 2 different XML messages.

Re: ClassNotFoundException cxfrs + cxfws.

2019-06-25 Thread Zoltán Balogh
Hi, the scenario is a simple cxfrs endpoint from that passing message to a cxf ws. env: WildFly-Camel 4.9.0 the error message: java.lang.ClassNotFoundException: hu.fornax.olir3.dms.producer.UTPasswordCallback CxfEndpoint with password callback: @Named("dmsProducerEndpoint") @Produces

RE: Help with camel and kafka consumer/producer.

2019-06-25 Thread Hart, James W.
I am using camel 2.24.0, and kafka 1.0, so the config value(group.initial.rebalance.delay.ms ) does exist in that version according to the kafka documentation, but it's not in the camel documentation that I see. I searched the latest camel code and didn't find the value(group.initial.rebalance

Re: Help with camel and kafka consumer/producer.

2019-06-25 Thread Claus Ibsen
On Tue, Jun 25, 2019 at 4:20 PM Hart, James W. wrote: > > I am using camel 2.24.0, and kafka 1.0, so the config > value(group.initial.rebalance.delay.ms ) does exist in that version according > to the kafka documentation, but it's not in the camel documentation that I > see. I searched the lat

splitResults option shows unknown in google-sheets-stream component

2019-06-25 Thread Bikash Kaushik
Hi, I'm using google-sheets-stream component to read google sheet and it is working fine, but I want to split the body into rows and columns, there is an option called "splitResults" given in camel doc, but when I'm using that option it throws "unknown parameters" error. *Anybody have any idea ab

Re: splitResults option shows unknown in google-sheets-stream component

2019-06-25 Thread Christoph Deppisch
Hi, I think we have to make sure that your project is using Camel 2.24.x and no other version like 2.23.x is there in the line of dependencies. Are you using Maven? If so could you please try a 'mvn dependency:tree' and make sure that there is only 2.24.x in that tree? Also it would be good to se

aws-sqs failed to set visibilityTimeout without any exception or warning

2019-06-25 Thread Qingyang Xu
Hi, We have a micro service (multiple instances and each instance has multiple consumers) on AWS that uses Camel aws-sqs to listen to a AWS sqs queue. Our camel version is 2.24.0 and the aws-sqs config is visibilityTimeout=300&extendMessageVisibility=true&maxMessagesPerPoll=5&con currentConsumers=5

Re: splitResults option shows unknown in google-sheets-stream component

2019-06-25 Thread Bikash Kaushik
Hi, Thanks for reply , *Please find gooogle-sheets-stream endpoint URI :* *Please find mvn dependency:tree output ,* [INFO] +- org.apache.camel:camel-core:jar:2.21.0.fuse-730078-redhat-1:compile [INFO] | +- com.sun.xml.bind:jaxb-core:jar:2.3.0:compile [INFO] | \- com.sun.xml.bind:jaxb-

Re: How to unmarshal when you don't know what you're unmarshalling?

2019-06-25 Thread Ron Cecchini
Unfortunately, I can't. The device I'm listening to sends a mix of "Status" and "Data" messages over the same UDP port. I've been trying to implement the strategy I alluded to, using doTry/doCatch to try unmarshalling as one message type, and then the other ... but things have gotten gnarly:

Re: How to unmarshal when you don't know what you're unmarshalling?

2019-06-25 Thread Michael Lück
Hi, probably it's best to "marshal" to a generic XML Document, for example org.w3c.dom.Document exchange.getIn().getBody(Document.class) Or try to run an XPath expression on the body and decide to which class you need to unmarshal the body. Sorry, don't have an example at hand yet. Regards,

Re: splitResults option shows unknown in google-sheets-stream component

2019-06-25 Thread Claus Ibsen
Hi Okay you are using Camel 2.21, so you should look at the docs for that version. Also you are using Red Hat Fuse, and they also have docs for the components that matches the Camel version they ship in their product. On Tue, Jun 25, 2019 at 5:30 PM Bikash Kaushik wrote: > > Hi, > > Thanks for

RE: How to unmarshal when you don't know what you're unmarshalling?

2019-06-25 Thread Hart, James W.
You can unmarshal well formed xml without the type and then use an xpath and choice to decide what to do with the different XMLs. This might mean some extra steps, but it should work. The error handling method could be a little messy. Another lower level way would be to inspect what's in the

Re: splitResults option shows unknown in google-sheets-stream component

2019-06-25 Thread Christoph Deppisch
try to use 2.21.0.fuse-740028 or a later version. This should work as it has the google-sheets component with splitResults support. On Tue, Jun 25, 2019 at 6:39 PM Claus Ibsen wrote: > Hi > > Okay you are using Camel 2.21, so you should look at the docs for that > version. > > Also you are using

RE: How to unmarshal when you don't know what you're unmarshalling?

2019-06-25 Thread Ron Cecchini
Sweet Baby Jesus, I got it, guys! Thank you so much. I hadn't used xpath() before, so I started reading and playing with it. The messages I have to parse are pretty simple, with unique root tags: "StatusMessage" or "DataMessage". So I tried the following and started having success with it:

Re: splitResults option shows unknown in google-sheets-stream component

2019-06-25 Thread Bikash Kaushik
Hi, Please find updated mvn dependency tree, as suggested by you to update version, still I'm not getting *splitResults * option in google spreadsheet. [INFO] +- org.apache.camel:camel-core:jar:2.23.2.fuse-740002:compile [INFO] | +- com.sun.xml.bind:jaxb-core:jar:2.3.0:compile [INFO] | \- com.s

Re: splitResults option shows unknown in google-sheets-stream component

2019-06-25 Thread Claus Ibsen
Hi Again make sure to align and use the same Camel version. You have mixed. And use the Fuse Camel version as suggested by Christoph. [INFO] | \- org.apache.camel:camel-core-osgi:jar:2.21.0.fuse-740025:compile [INFO] +- org.apache.camel:camel-google-sheets:jar:2.24.1:compile And you can ask Red

Re: How to unmarshal when you don't know what you're unmarshalling?

2019-06-25 Thread Claus Ibsen
Hi For null body, see this FAQ http://camel.apache.org/why-is-my-message-body-empty.html On Tue, Jun 25, 2019 at 10:24 PM Ron Cecchini wrote: > > > Sweet Baby Jesus, I got it, guys! Thank you so much. > > I hadn't used xpath() before, so I started reading and playing with it. > > The messages I

Option to know all files consumed from ActiveMQ

2019-06-25 Thread Bikash Kaushik
Hi, I have a zip file, after splitting zip to a local path, I have to transfer each extracted file to FTP in sequential order. If during dropping file to FTP, there is connectivity issue, then I have to retry 3 times, if after 3 retrials also, file not processed to FTP then move to another path be

Read header value in Camel xpath

2019-06-25 Thread Bikash Kaushik
Hi, I want to know , how to pass header value in Camel xpath , *//*[local-name()='EmployeeDataResult']/text() I have to pass header value in between xapth. Regards, Bikash Kaushik