Re: marshal() with MarshalProcessor

2013-02-22 Thread khong07
Hi, @hekonsek: It's just about how to use correctly MarshalProcessor of Camel instead of using marshal() in route builder. Not really a problem :) But thank you for your help. @Willem.Jiang What does you mean "the start of MarshalProcessor"? @all: thank you for your helps, I'll did an unit test

Get last file folder in header

2013-02-22 Thread Mark Lawson
Hi, I'm getting some temperature readings from a 1-wire system and putting them out on an mqtt broker with Camel 2.10.3. The readings appear in the file system as /mnt/1wire/study/temperature etc and I'm using this route: It works fine but I wanted to be able to choose different mqtt sub-topics

post a message to a specific destination in a cluster

2013-02-22 Thread beavex.sagar
We have a requirement where we receive a message to "Q:a" with JMSReplyTo destination and camel route (R1) need to forward the message to "Q:b" and we get a response back to "Topic:c" and camel route (R2) needs to respond back to the same JMS Destination we received in the message in R1 .. We

Re: Large file processing with Apache Camel

2013-02-22 Thread Hadrian Zbarcea
Cristisor, Take a look at the demo I mentioned. Run it (as easy as `mvn install`), look at the logs to see the tread allocation. That should answer your #1. For #2, best is to try both and measure. For #3, take a look at the recipient list pattern [1]. I hope this helps, Hadrian [1] http://

Re: Large file processing with Apache Camel

2013-02-22 Thread cristisor
Thank you everybody for your help. After reading and trying, I found how to implement splitter and aggregators and I managed to achieve my scope. Here is the new status: 1. read 500 lines from the file and send them in an exchange to the next service unit, to a certain endpoint according to the fi

Re: Apache camel throwing linkage error

2013-02-22 Thread ronly2008
Hi Claus, Thanks for your response, I was using that initially and realised that could cause some issues as I am using embedded jetty version 7.6, hence I build the source on my local machine. However, I have managed to fix the issue after looking around at different bits of exceptions. It tur

Re: Camel route - ActiveMQ from http to Https

2013-02-22 Thread milanmilas
Final solution: GenerateCertificate (must use localhost or server name, depending how you define URL in Caml, names must match) keytool -genkey -alias localhost -keyalg RSA -keystore server.ks keytool -export -alias localhost -keystore server.ks -file server_cert keytool -import -alias -keystore l

Re: Large file processing with Apache Camel

2013-02-22 Thread Hadrian Zbarcea
Last year at ApacheCon, I showed a demo [1] related to processing a file in parallel in multiple threads (in 'splits' - term borrowed from hdfs - of a configurable size). I used a relatively small csv file for my demo, not xml, but it works exactly the same with xml. Take a look at it, I believ

Re: Apache camel throwing linkage error

2013-02-22 Thread Claus Ibsen
Hi Have you tried using the Jetty version that Camel 2.10.3 uses out of the box? On Thu, Feb 21, 2013 at 4:30 PM, ronly2008 wrote: > 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 t

Re: Large file processing with Apache Camel

2013-02-22 Thread Claus Ibsen
On Fri, Feb 22, 2013 at 5:35 PM, Claus Ibsen wrote: > Hi > > Have you seen the splitter with group N lines together section at > http://camel.apache.org/splitter.html > Ah yeah you use an older Camel release. You can implement a custom expression that does what this functionality in Camel 2.10 of

Re: Large file processing with Apache Camel

2013-02-22 Thread Claus Ibsen
Hi Have you seen the splitter with group N lines together section at http://camel.apache.org/splitter.html On Thu, Feb 21, 2013 at 10:10 PM, cristisor wrote: > 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 uni

Re: Make xslt component not to validate dtd's (or use local copy)

2013-02-22 Thread Claus Ibsen
On Wed, Feb 20, 2013 at 7:27 AM, Dirk Reske wrote: > Hi, > > no, the uriResolver is used to resolve the xslt file only. > I've found a way, using a processor, that creates a XMLReader using the > CatalogResolver and puts a SAXSource using this xmlReader into the exchange. > > @Override > public v

Re: Error when using Camel write to Websphere MQ

2013-02-22 Thread Claus Ibsen
Hi Did you find a solution to this? >From your exception it sounds like you have mixed versions of IBM WebSphere JARs on the classpath. On Tue, Feb 19, 2013 at 8:22 PM, sguruprasanna wrote: > I am new to Camel, as a proof of concept, I am trying to read from a > Websphere MQ queue and write to

Re: Move multiple files mid route...

2013-02-22 Thread Claus Ibsen
On Wed, Feb 20, 2013 at 4:24 PM, AndyBell wrote: > Hi > > Midway through my route, I need to look in a folder and move any files there > that meet a certain filename pattern into another folder. > > I'm not getting far with this - I am trying to use a consumerTemplate but > only the first file ge

Re: Fail to undeploy the camel web application in tomcat

2013-02-22 Thread Claus Ibsen
Hi Can you post the Camel route you use? Does it use the Camel file component? And do you remove the web app *during* Camel processes some messages? On Tue, Feb 19, 2013 at 10:04 PM, xpd2000 . wrote: > > Hi, > > We use the Fuse IDE now which integrates camel 2.10.0.fuse-71-047. We are > using

Re: Camel route - ActiveMQ from http to Https

2013-02-22 Thread milanmilas
I did manage to connect to my Queue using sample from ActiveMQ book using Https. As bundle is not Console application ( -Djavax.net.ssl.keyStore= ..) I need to set System properties in Blueprint: System.setProperty("javax.net.ssl.trustStore","M:/Projects/conf/mybroker.ts"); System.setPropert

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

2013-02-22 Thread Claus Ibsen
On Fri, Feb 22, 2013 at 7:36 AM, CamelNewbieUser wrote: > 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

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

2013-02-22 Thread Diether
There is a known issue in the latest version. We are using version 2.10.2 at the moment, there it works fine. From: Christian Mueller [via Camel] [mailto:ml-node+s465427n5728013...@n5.nabble.com] Sent: vrijdag 22 februari 2013 11:33 To: Wuyts Diether Subject: Re: SFTP: File operation failed: 5

Issue with using multiple transaction managers of different types on two different routes in same camel-context.xml

2013-02-22 Thread Neeraj Mahajan
I have one camel route which is listening on an Activmq consumer endpoint and calls another direct route which do some persistence work. In the first route i have injected transaction policy which is using JMS transaction manager and in the second route I have intected other transaction policy whi

camel-exec in camel blueprint: ExecBinding.* headers read?

2013-02-22 Thread MatteoRedaelli
With karaf 2.3 and camel-core:2.10.5.SNAPSHOT it seems camel-exec does not read ExecBinding.* header variables.. Caused by: [org.apache.camel.component.exec.ExecException - Unable to execute command ExecCommand [args=[], executable=executable, timeout=9223372036854775807, outFile=null, workingDir

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

2013-02-22 Thread Christian Müller
And you use which version of Camel? Sent from a mobile device Am 22.02.2013 08:23 schrieb "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:// > myuser

Re: Large file processing with Apache Camel

2013-02-22 Thread Maruan Sahyoun
ok. For the StringBuilder you might be able to avoid that. As you have a ByteArrayOutputStream already you can either get the exchange body as a byte array, an input stream an output stream … (http://camel.apache.org/type-converter.html) and write/append the bytes directly, copy the byte arrays

Re: Large file processing with Apache Camel

2013-02-22 Thread Maruan Sahyoun
ok. For the StringBuilder you might be able to avoid that. As you have a ByteArrayOutputStream already you can either get the exchange body as a byte array, an input stream an output stream … (http://camel.apache.org/type-converter.html) and write/append the bytes directly, copy the byte arrays

Re: jackson2

2013-02-22 Thread Willem jiang
Current I don't think camel support it out of box. But any contributions are welcomed :) -- 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/) (English)

Re: Setting body attributes

2013-02-22 Thread Willem jiang
You can set the message header wit the constant, but I don't think you can set the attribute of the Java object in your message body like that with Spring DSL. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://w

Re: Dynamic route : multiple From point

2013-02-22 Thread ODarwish
Reference to bellow issue im , since i mixed java DSL with spring XML and its work fine ;my route build initiate dynamic number of routes and deliver them to centralized route written in spring DSL https://issues.apache.org/jira/browse/CAMEL-5717 Please advice - Othman Darwish Pr

Re: Large file processing with Apache Camel

2013-02-22 Thread cristisor
I will try to provide the steps that are in the current version: 1. read one line from the file, set it as the outbound message's body of an exchange, and, according to the file type, send the exchange to an activemq queue 2. the exchange will arrive on another service unit that has a processor whi