Re: One way request - Camel-CXF

2013-02-21 Thread Gnanaguru S
Thats Great. The flow works. I could see the queue message count increasing for every new request from soap UI. But I couldn't see the response as the message content in the ActiveMQ web console. Also I could see the response in the Soap UI response window itself. Do I need to do any transfo

Concise global error handling

2013-02-21 Thread piotr
Hello Gents, I would like to pick your brains about a way to globally handle errors in our routs builders. I'm pretty new to Camel so please bear with me and my silly questions ;) The goal: I would like to set up a concise error handling for the SOAPFaults and our own exceptions that we throw fr

Re: Parsing XML Performance

2013-02-21 Thread Łukasz Dywicki
Avoid usage of DOM or big object trees. With all XML-Java binding marshallers it's gonna be more or less same. If you want do this fast, try to limit number of conversions. The best you can do is to use stream from beginning. Consider splitting file as described on Claus blog [1]. Also you may u

Re: Parsing XML Performance

2013-02-21 Thread Henryk Konsek
> Avoid usage of DOM or big object trees. Good point. I assumed that the entire XML needs to be parsed (this is often the case). But yeah, definitely favor streaming over deserializing entire XML. -- Henryk Konsek http://henryk-konsek.blogspot.com

Re: Camel Message Mapping to XML

2013-02-21 Thread Christian Müller
Use a custom TypeConverter. Sent from a mobile device Am 21.02.2013 02:52 schrieb "Joe San" : > Thanks for the reply! > > To describe my case more precisely, in my Processor, I get the JAXB object: > > MyObj obj = exchange.getIn().getBody(MyObj.class) > > obj has fields getOne, getTwo, getThree a

Re: marshal() with MarshalProcessor

2013-02-21 Thread Henryk Konsek
Hi, > So, i must marshal before sending to seda:next, that why i want using a > ProducerTemplate.sendCallBack and call a MarshalProcessor inside Processor. I'm felling a bit lost here. :) Would you explain us on higher level of abstraction what exactly do you want to achieve? I could propose some

Re: Parsing XML Performance

2013-02-21 Thread Raul Kripalani
Aalto XML [1] is a non-blocking async StAX XML parser which many claim is ultra-fast and/or the fastest around. I haven't taken it for spin yet, but it's worth a try. [1] http://wiki.fasterxml.com/AaltoHome *Raúl Kripalani* Apache Camel Committer Enterprise Architect, Program Manager, Open Source

Camel route - ActiveMQ from http to Https

2013-02-21 Thread milanmilas
I have changed my ActiveMq.xml file in Fuse ESB: http://localhost:8277?trace=true"/> https://localhost:8289?trace=true"/> My camel route configuration is: https://localhost:8289"/> I have generated the certificate using: Preparing certificates 1. Producer keytool -genkey

Re: Parsing XML Performance

2013-02-21 Thread Henryk Konsek
> I haven't taken it for spin yet, but > it's worth a try. Also James added VTD XML component to Camel Extra, if extra-fast XPath query is fair enough for you. [1] http://camel.apache.org/vtd-xml -- Henryk Konsek http://henryk-konsek.blogspot.com

Re: marshal() with MarshalProcessor

2013-02-21 Thread Willem jiang
Did you have chance to call the start of MarshalProcessor? I don't see any thing wrong from your route. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/

Re: One way request - Camel-CXF

2013-02-21 Thread Willem jiang
If you want to send the response back to queue, you need to put it into the in message body instead of out message. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.

RE: One way request - Camel-CXF

2013-02-21 Thread Gnanaguru S
Hi Willem, I am not able to trace whats happening. I am sending a soap request to the CXF endpoint and I could able to see the response data successfully written to the queue. But why the SOAP UI is showing the response again ? Is this flow one way ? Am confused ? I am expecting no response in

Re: One way request - Camel-CXF

2013-02-21 Thread Gnanaguru S
Hi Willem, I am not able to trace whats happening. I am sending a soap request to the CXF endpoint and I could able to see the response data successfully written to the queue. But why the SOAP UI is showing the response again ? Is this flow one way ? Am confused ? I am expecting no response in

Re: Questions about spring-ws component

2013-02-21 Thread NCSWolfpak
Hi Willem, Thanks for responding. All of my camel routes are started when spring starts up since I point the camel context to the package containing my annotated component that extends the SpringRouteBuilder. I also see that the route exists in the camel MBean. For the Spring-WS setup, I did fo

addComponant problem over blueprint

2013-02-21 Thread sekaijin
Hi I'm running karaf 2.2.2 camel 2.8.1 I add a JMS component in the configure method of my road builder then if I set a route with. that works. if I set a route with that does not work. I tried to but I have the same problem. I wonder if there is not a bug in version 2.8.1 because the cla

Apache camel throwing linkage error

2013-02-21 Thread ronly2008
I have included apache camel inside my application to forward requests matching a string pattern. When I try to deploy the packaged web application inside the jetty application server (version 7.6.1.v20120215), the application crashes out throwing Linkage error. I tried to compile the camel so

How to drop messages using throttle ?

2013-02-21 Thread lleclerc
Hi, I am trying to limit the amount of message to 2 per second and drop all others. (I don't want to delay, only dropping them, the most recent is the needed one, but not too many) from("seda:a").throttle(2).timePeriodMillis(1000).to("seda:b") .process(new Processor() {...System.out.println("OUT

Re: How to drop messages using throttle ?

2013-02-21 Thread Raul Kripalani
Perhaps you're looking for the Sampling Throttler: http://camel.apache.org/sampling.html. Regards, *Raúl Kripalani* Apache Camel Committer Enterprise Architect, Program Manager, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog

Alerting on non-events

2013-02-21 Thread Walzer, Thomas
Hi, is there a (recommended) way to track non-events, e.g. I expect 1 message per day on a specific route and would like to trigger an alert/notification when this assertion is false. One could track the statistics via JMX - but is there something simpler? Regards, Thomas.

Large file processing with Apache Camel

2013-02-21 Thread cristisor
Hello everybody, I'm using Apache Fuse ESB with Apache Camel 2.4.0 (I think) to process some large files. Until now a service unit deployed in servicemix would read the file line by line, create and send an exchange containing that line to another service unit that would analyze the line and trans

Re: Large file processing with Apache Camel

2013-02-21 Thread Willem jiang
I just want to ask some question about your performance enhancement. First, what made you think that reading multiple lines of XML will improve the performance? I just read about the route you showed, you just send the exchange into a queue after reading a line of the file. I don't think reading

Re: URL overwriting - SOAP vs restful

2013-02-21 Thread jdev.hari
Thanks a lot William. It worked ! Regards, Hari On Mon, Feb 18, 2013 at 8:54 PM, William Tam [via Camel] < ml-node+s465427n5727761...@n5.nabble.com> wrote: > I believe you can set the CamelDestinationOverrideUrl header to > override the target service URL. It works for both SOAP (camel-cxf) >

Re: Large file processing with Apache Camel

2013-02-21 Thread cristisor
Many thanks for your reply. When I read from the file I read simple lines, not XML. It takes more than one hour to read, process and insert into the db 20.000 lines so I took out the service unit that does the db operations and I was left with 26 minutes for reading from the file line by line, con

Re: Large file processing with Apache Camel

2013-02-21 Thread Maruan Sahyoun
Hi if you suspects it's file io what about testing reading and splitting the file only wo further processing. Should tell you if the time is taken reading and splitting the file or in XML processing at stage 1 and stage 2. If it's io where is the file located. Is it a local file, network share

jackson2

2013-02-21 Thread mmoores
I see camel module POMs with jackson2 but i don't see any any public support for the newer com.fasterxml based marshalling. Anyone working on this? -- View this message in context: http://camel.465427.n5.nabble.com/jackson2-tp5727987.html Sent from the Camel - Users mailing list archive at Nab

Re: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/config/applicationContext.xml]; nested exception is java.lang.NullPointerException

2013-02-21 Thread CamelNewbieUser
Hi Claus, I am also facing similar issue with JDK 7 / Tomcat 7 on Windows / Linux environment with Spring 3.0 jars. When same war is deployed again or tried to start the application, it fails again but eventually it will work in 2-3 tries. I am being asked so many questions that same war deploye

Re: Large file processing with Apache Camel

2013-02-21 Thread Willem jiang
Hi, You can take a look at the VM component[1] or NMR component[2] to leverage the multiple thread to deal the XML processing. [1]http://camel.apache.org/vm.html [2]http://camel.apache.org/nmr.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com

Re: Large file processing with Apache Camel

2013-02-21 Thread Maruan Sahyoun
well - let's assume for a moment that reading in the file is not an issue then you could aggregate to a larger message and send that across. Why you get an OOME when creating the xml can't be seen from the information provided. if you want to keep a number of lines together you can use .split(

Re: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/config/applicationContext.xml]; nested exception is java.lang.NullPointerException

2013-02-21 Thread Willem jiang
Hi Did you use the latest version of JDK7? We got this kind of issue with the earlier version of JDK7 before. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogsp

SFTP: File operation failed: 550 \: No such file or directory

2013-02-21 Thread gerryscat
If I login to my sftp site with WinSCP I see the folder /tmp; but when I try to push a file to the folder using (something like) from("test-jms:queue:test.queue").to("sftp://myusern...@mysite.com/tmp?password=private&binary=true&separator=UNIX&stepwise=true";); It fails saying the folder backslas

Re: Help regarding reading multiple response

2013-02-21 Thread Willem jiang
Current camel-jms component doesn't support to get two responses at the same time. I think you need to do the Correlation yourself, if you use ConsumerTemplate[1] to receive the response in the replay queue. [1]http://camel.apache.org/polling-consumer.html -- Willem Jiang Red Hat, Inc. Fus

Re: Large file processing with Apache Camel

2013-02-21 Thread Maruan Sahyoun
could you elaborate a little bit on the xml mapper? how do you get from data lines to xml? E.g. instead of generating strings for concatenation you could create StAX or SAX events and stream to your output. Why do you need to append the xml as strings? could you append to a file, write to a str

Setting body attributes

2013-02-21 Thread sabretooth
Hi there, I am new to camel, I wanted to know about setting body attributes using apache Camel in spring DSL Like if in my body there is a attribute for Admin Id i represent it as ${body.adminId} . What if i have to set a constant value to it (like ADM01 or TEC02 etc.) How can i do this using o