RE: Camel Http vs Camel Http4 - Content Type Header

2017-04-05 Thread souciance
Hi, I can take a look later during the day and get back to you. Den 6 apr. 2017 7:44 fm skrev "Goyal, Arpit [via Camel]" < ml-node+s465427n5797051...@n5.nabble.com>: > Hi souciance, > > Below is the complete test case I have written to debug this problem. You > can import and fix the 'package' an

RE: Camel Http vs Camel Http4 - Content Type Header

2017-04-05 Thread Goyal, Arpit
Hi souciance, Below is the complete test case I have written to debug this problem. You can import and fix the 'package' and 'logger' to remove errors. 'createRouteBuilder' method at the end has the two routes using camel-http and camel-http4. The URLs are constants. I am using the SAP Cloud

RE: Performance issue in Camel SFTP component

2017-04-05 Thread Ayush Dixit
Should I raise a JIRA for that? -Original Message- From: Ayush Dixit Sent: Wednesday, April 5, 2017 1:22 PM To: users@camel.apache.org Subject: RE: Performance issue in Camel SFTP component Hi Claus, Already tried that , See below endpoint configuration . No luck :( to("sftp://10.100.

Re: JAXB Marshalling from email route

2017-04-05 Thread souciance
No problem, hope it solves it! On Thu, Apr 6, 2017 at 12:35 AM, Gary [via Camel] < ml-node+s465427n5797035...@n5.nabble.com> wrote: > :) I think you're on to something - was thinking the same thing. I will > try tomorrow morning and let you know... I greatly appreciate your help, it > helps somet

Re: JAXB Marshalling from email route

2017-04-05 Thread Gary
:) I think you're on to something - was thinking the same thing. I will try tomorrow morning and let you know... I greatly appreciate your help, it helps sometimes having others look over. c u tomorrow, and thank you!!! - Gary Lee Mills -- View this message in context: http://camel.465427

Re: JAXB Marshalling from email route

2017-04-05 Thread Gary
interesting... the XML doc extracted from email as attachment... ��<^@?^@x^@m^@l^@ ^@v^@e^@r^@s^@i^@o^@n^@=^@"^@1^@.^@0^@"^@ ^@e^@n^@c^@o^@d^@i^@n^@g^@=^@"^@u^@t^@f^@-^@1^@6^@"^@?^@>^@^M^@ ^@<^@T^@r^@a^@n^@s^@f^@e^@r^@D^@a^@t^@a^@H^@e^@a^@d^@e^@r^@ ^@x^@m^@l^@n^@s^@:^@i^@=^@"^@h^@t^@t^@p^@:^@/^@/^@

Re: JAXB Marshalling from email route

2017-04-05 Thread souciance
Just a guess but could it be that you are converting the attachment to a string`? In the documentation it is converted to a byte[] first. On Thu, Apr 6, 2017 at 12:12 AM, Gary [via Camel] < ml-node+s465427n5797032...@n5.nabble.com> wrote: > here is my code for extracting attachments - thank you

Re: JAXB Marshalling from email route

2017-04-05 Thread Gary
here is my code for extracting attachments - thank you - I also use this with CSV files and it works ok. public class EmailProcessor implements Processor { private static final Logger LOG = Logger.getLogger(EmailProcessor.class); private SimpleDateFormat sdf = new SimpleDateF

Re: JAXB Marshalling from email route

2017-04-05 Thread souciance
How you extract the attachment from the e-mail? On Wed, Apr 5, 2017 at 11:15 PM, Gary [via Camel] < ml-node+s465427n5797029...@n5.nabble.com> wrote: > hello, I am wondering if anyone has seen this before. > a route that does JAXB unmarshalling. it works fine. it works as it > should. > however, i

JAXB Marshalling from email route

2017-04-05 Thread Gary
hello, I am wondering if anyone has seen this before. a route that does JAXB unmarshalling. it works fine. it works as it should. however, if I send the XML file as an attachment and pick the XML attachment from the email, then process it. I get the following exception: [com.ctc.wstx.exc.WstxUnex

Re: Camel Not Sending Objects in Headers to RabbitMQ

2017-04-05 Thread souciance
Hello, Looking at the Camel rabbitmq component source you can see here: https://github.com/apache/camel/blob/master/components/camel-rabbitmq/src/main/java/org/apache/camel/component/rabbitmq/RabbitMQMessageConverter.java#L161 and a bit below that only primitive types are supported. Lists or Objec

Updating hystrix configuration at runtime

2017-04-05 Thread Abhishek.Jha09
Is there a way to update hystrix configuration at runtime? I am using Java DSL to create route and referring to a hystrix configuration bean in SimpleRegistry. Nothing seems to change when I modify this bean and then do camelContext.addRouteDefinition(). -- View this message in context: http://

Camel Not Sending Objects in Headers to RabbitMQ

2017-04-05 Thread Caleb Skidmore
Hello, When I set a header as an object and route it to RabbitMQ, the header does not arrive. For instance: List testData = new ArrayList<>(); testData.add("test"); testData.add("data"); exchange.getIn().setHeader("ObjectHeader", testData); exchange.getIn().setHeader("StringHeader", testData.to

Camel not Sending Headers with Objects to RabbitMQ

2017-04-05 Thread Caleb Skidmore
Hello, When I set a header as an object and route it to RabbitMQ, the header does not arrive.  For instance: List testData = new ArrayList<>(); testData.add("test"); testData.add("data"); exchange.getIn().setHeader("ObjectHeader", testData); exchange.getIn().setHeader("StringHeader", testData.to

Re: AggregationStrategy: null body in new exchange

2017-04-05 Thread JD Innocenti
When I look into the imported packages of dozer (v5.5.1) in JBoss Fuse's web UI, I see all of my application's packages... It says "Dynamic import - imported due to DynamicImport-Package=*". So I found a fix to my issue: every time I deploy a new version of my bundle, I refresh dozer's bundle. Th

Re: How long do the camel headers live in routes?

2017-04-05 Thread Quinn Stevenson
The DSL for 1 looks OK. The DSL for option 2 should be using exchangeProperty.ROUTE_ID instead of property.ROUTE_ID if your Camel version is 2.15 or later. Can you share routes so we can see the details? > On Apr 5, 2017, at 7:21 AM, Amruta Jawlekar wrote: > > I have similar requirement. I

Re: AggregationStrategy: null body in new exchange

2017-04-05 Thread Quinn Stevenson
The easiest way to avoid this problem is to ensure you have unique package names. OSGi allows you to have an implementation of the a class in your bundle as well as import it (useful for providing default implementations). As far as net.j11i.MyClass being in the dozer-osgi bundle - which versio

Re: AggregationStrategy: null body in new exchange

2017-04-05 Thread JD Innocenti
Hi, Thanks for the reply! As I said to Quinn Stevenson, I recently had a breakthrough on this issue. It turns out that it is due to a conflict during class loading. In my aggregator, I have the following code: And this code results in newBody being null. However, if I replace this with: Thi

Re: AggregationStrategy: null body in new exchange

2017-04-05 Thread JD Innocenti
Hi, In fact, I recently had a breakthrough on this issue. It turns out that it is due to a conflict during class loading. In my aggregator, I have the following code: And this code results in newBody being null. However, if I replace this with: This results in "java.lang.ClassCastException: n

Re: How to append text to the beginning of the file using Camel

2017-04-05 Thread Amruta Jawlekar
Thank you souciance. Enrich best suits my requirement and it worked! :) -- View this message in context: http://camel.465427.n5.nabble.com/How-to-append-text-to-the-beginning-of-the-file-using-Camel-tp5796906p5797015.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How long do the camel headers live in routes?

2017-04-05 Thread Amruta Jawlekar
I have similar requirement. I am setting property in the starting route, and I need to get that property value at the end of the route and compare it with its value in order to forward to different routes. Basically, I have different routes to poll to different folder location, the middle processi

Re: AggregationStrategy: null body in new exchange

2017-04-05 Thread Claus Ibsen
Make a simple unit test with your aggregator and agg strategy and get that working outside osgi/karaf and then take it from there. On Mon, Apr 3, 2017 at 4:20 PM, JD Innocenti wrote: > Hi all, > > I'm having a problem with the AggregationStrategy I implemented for an > application. In short, th

Re: AggregationStrategy: null body in new exchange

2017-04-05 Thread Quinn Stevenson
Can you share a little more of the route? Specifically I’d like to see the portion that is supposed to be reading the file and passing it on the the aggregation strategy. > On Apr 3, 2017, at 8:20 AM, JD Innocenti wrote: > > Hi all, > > I'm having a problem with the AggregationStrategy I i

Re: Using Python script in Camel

2017-04-05 Thread Claus Ibsen
[[CDATA[ is only when using XML. Also do a simple python example, try to see some of the unit tests of camel-script for a jython example. On Tue, Apr 4, 2017 at 4:42 PM, samer wrote: > Thanks for reply! > > One thing I missed writing in my above code, is that the directory I am > loading the fi

Re: Parsing/exporting sql result

2017-04-05 Thread Claus Ibsen
There is some database examples https://github.com/apache/camel/tree/master/examples And there are also some Camel books which cover using database with Camel http://camel.apache.org/books On Tue, Apr 4, 2017 at 6:24 PM, romdj wrote: > Hello everyone, > I apologize in advance as this is basic s

Re: camel-cmis: sessionhandling not working as expected

2017-04-05 Thread Claus Ibsen
Try with newer release as I think we have fixed something in this component, I kinda recall something about this. On Wed, Apr 5, 2017 at 12:43 PM, Meyfarth, Frank wrote: > Hi everyone, > > Maybe I’m just to dumb to get it, but I believe I have found a bug in > camel-cmis. > > I use the following

Re: camel-cmis: sessionhandling not working as expected

2017-04-05 Thread Meyfarth, Frank
2.17.0.redhat-630187 -- Frank Meyfarth adesso AG T +49 231 7000-2380 Stockholmer Allee 20 F +49 231 7000-1000 44269 DortmundE meyfa...@adesso.de www.adesso.de blog.

Re: camel-cmis: sessionhandling not working as expected

2017-04-05 Thread Andrea Cosentino
What is the camel version you're currently using? --Andrea Cosentino  --Apache Camel PMC MemberApache Karaf CommitterApache Servicemix PMC MemberEmail: ancosen1985@yahoo.comTwitter: @oscerd2Github: oscerd On Wednesday, April 5, 2017 12:43 PM, "Meyfarth, Frank

camel-cmis: sessionhandling not working as expected

2017-04-05 Thread Meyfarth, Frank
Hi everyone, Maybe I’m just to dumb to get it, but I believe I have found a bug in camel-cmis. I use the following URI within a CMIS producer to send a query to the CMIS system. cmis:http://rabobank-air-dev01.test-server.ag:8080/alfresco/api/-default-/p ublic/cmis/versions/1.1/atom?username=admi

Re: WildFy-Camel-4.6.0 released

2017-04-05 Thread Anton
Well done! Congrats! On 5 April 2017 at 10:47, Thomas Diesler wrote: > Dear Folks, > > WildFly-Camel 4.6.0 provides Camel-2.18.3 integration with WildFly-10.1.0 > > This is another upgrade release for supported Camel components, which now > brings the total up to 112, with 35 components still p

WildFy-Camel-4.6.0 released

2017-04-05 Thread Thomas Diesler
Dear Folks, WildFly-Camel 4.6.0 provides Camel-2.18.3 integration with WildFly-10.1.0 This is another upgrade release for supported Camel components, which now brings the total up to 112, with 35 components still planned

RE: Performance issue in Camel SFTP component

2017-04-05 Thread Ayush Dixit
Hi Claus, Already tried that , See below endpoint configuration . No luck :( to("sftp://10.100.150.190/icoms/1?download=false&maxMessagesPerPoll=10&password=xx&tempPrefix=Q&username=sigmauser&stepwise=false";) Thanks Ayush -Original Message- From: Claus Ibsen [mailto:claus.ib...@g

Re: Sql Component StreamList Poll

2017-04-05 Thread Claus Ibsen
Put the count down logic someplace else such as in your aggregation strategy On Wed, Apr 5, 2017 at 6:50 AM, andre.gill...@icg360.com wrote: > I have a route similar to the following that uses the SQL Component: > > from("sql:" + QUERY + "?outputType=StreamList") > .autoStartup(fa

Re: Performance issue in Camel SFTP component

2017-04-05 Thread Claus Ibsen
Try with maxMessagesPerPoll to set an upper limit. On Tue, Apr 4, 2017 at 12:10 PM, Ayush Dixit wrote: > > Thanks Claus , I've tried stepwise=false in camel producer . No such luck > > Also, I have tried download=false and useList=false. Still the performance is > same. I am referring the belo

jms component: Parameter destination.consumer.exclusive does not work

2017-04-05 Thread Christian Schneider
Hi all, I am getting this exception when I try to create a consumer with a consumer.exclusive setting on the queue on camel 2.16.5 Any ideas? This used to work in older versions. I can provide an example or test if someone wants to dig into this. Caused by: org.apache.camel.ResolveEndpointFa

Parsing/exporting sql result

2017-04-05 Thread romdj
Hello everyone, I apologize in advance as this is basic stuff, but after a full day of searching my brain is begging me to write this. So my goal is very simpleStupid, I'm querying a sql server db and I want to export that data to either json or csv. So using jdbc for the query returns an ArrayLi

RE: Performance issue in Camel SFTP component

2017-04-05 Thread Ayush Dixit
Hi Souciance, Thanks for reply. Yes the behaviour is same . I have tried on other SFTP's as well. The issue which we are facing is on client environment and with the below tests we are able to reproduce this issue in local environment as well. Which proves it is not related to SFTP server. Al