Re: Using camel-servlet with Multipart - unable to fetch the file

2013-05-08 Thread Willem jiang
camel-jetty is using org.eclipse.jetty.servlets.MultiPartFilter to handle this multipart message. You may consider to configure the filter in your web.xml. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://wille

Re: Using camel-servlet with Multipart - unable to fetch the file

2013-05-08 Thread crmanoj
Thank you for replying! I have tried removing them but no difference. Am I using the component correctly? Is there any other way to get the form fields and data separetely? I have tried camel-jetty component and it separates the form fields and data, Is there anything similar to that in camel-servl

Re: Using camel-servlet with Multipart - unable to fetch the file

2013-05-08 Thread Willem jiang
Hi I suggest you remove the streamCaching() and to("log:servlet") from your route. Current streamCaching doesn't support to caching the Servlet request input stream. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog:

Re: when an exception happens, I want to shut down the routes..

2013-05-08 Thread Willem jiang
Hi You can use ErrorHandler[1] with some codes here[2] [1]http://camel.apache.org/error-handler.html [2]http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Bl

Using camel-servlet with Multipart - unable to fetch the file

2013-05-08 Thread crmanoj
Hi, I am trying to upload a file to the server from client using multipart/form-data. The server endpoint is a camel-servlet endpoint. I am able to get the httprequestbody from the call using (in.headers), to parse the form data and uploaded file data i'm using commons-fileupload( streaming api

when an exception happens, I want to shut down the routes..

2013-05-08 Thread Gvvenkat
If an exception occurs while processing, I would like to invoke the process of shutting down the routes in the context. Can you please tell me, if this can be achieved in camel. If so, an example will be great help for me. Thanks gvvenkat -- View this message in context: http://camel.465427.n

Re: Issues with camel context

2013-05-08 Thread Christian Müller
Which version do you use? Which component do you use? Which OS/runtime do you use? How looks your route? ... Sent from a mobile device Am 08.05.2013 05:57 schrieb "Goel1, Vipin" : > Hi, > > Sometime we get the following errors in logs while calling one web > service sometimes we get the error

Issue with using onException()

2013-05-08 Thread shyenuganti
Hi All, Here is my route. The goal I am trying to achieve is to send a STATUS (0=success, 1= failure) back to the caller. It works for a successful execution. I am returning a 0 from the onCompletion(). When the route fails at the ".unmarshal(beanIO)" step I need to stop processing the route an

Re: From bind to bind

2013-05-08 Thread Jean Francois LE BESCONT
My job works fine with a route which used a dozerMapper get from getBean of spring context. I have try with a simple convertbody : from("file://C:/Temp/camel/rep1/?noop=true") .split().tokenize("\n") .streaming() .unmarshal() .bindy(BindyType.Csv, Ticket.class) .convertBodyTo(TicketOUT.class)

Re: Camel 2.11: FTP Cannot change directory to: ". Code: 550

2013-05-08 Thread Bengt Rodehav
Looks like the same bug I found for sftp: https://issues.apache.org/jira/browse/CAMEL-6309 /Bengt 2013/5/8 Lutter, Robin > Hi, > > > > After changing from an old 2.10.5-SNAPSHOT to Camel 2.11.0 > (-20130315.195808-8) following error appears: > > > > TRACE org.apache.camel.component.file.remot

RE: From bind to bind

2013-05-08 Thread jeff
Oh ! Great ! Thanks -- View this message in context: http://camel.465427.n5.nabble.com/From-bind-to-bind-tp5732109p5732195.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using % sign in spring route sql select fails

2013-05-08 Thread Claus Ibsen
Hi Use %25 as shown at: http://en.wikipedia.org/wiki/URL_encode On Wed, May 8, 2013 at 4:51 PM, nprajeshgowda wrote: > Hi Claus Ibsen , > > we are using Camel version 2.9 in our first version of our product. In the > latest version of our product we are using Camel 2.10 and the problem is > not

Re: Using % sign in spring route sql select fails

2013-05-08 Thread nprajeshgowda
Hi Claus Ibsen , we are using Camel version 2.9 in our first version of our product. In the latest version of our product we are using Camel 2.10 and the problem is not seen. But need your help in finding a patch or workaround solution to Camel 2.9. Is there any workaround by which we can allow

Re: AW: Best strategy for skipping lines in CSV files with bindy

2013-05-08 Thread Guillermo
Thanks for the reply! I will think about which of the two forms is the best for me. Regards. -- View this message in context: http://camel.465427.n5.nabble.com/Best-strategy-for-skipping-lines-in-CSV-files-with-bindy-tp5731784p5732190.html Sent from the Camel - Users mailing list archive at N

Re: How to avoid sending message headers with mail component ?

2013-05-08 Thread AlanFoster
Hi, Are there any examples of using a header filter strategy with the camel mail component? I can not see this option within the camel-mail page, not in the camel-mail MailConfiguration.java I assumed camel might be handle this filtering itself, but this I'm not sure this is true as the document

Re: file endpoint not reflecting the filename set in the header from smtp endpoint

2013-05-08 Thread Willem jiang
Can you show us your Camel 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/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/)

Camel 2.11: FTP Cannot change directory to: ". Code: 550

2013-05-08 Thread Lutter, Robin
Hi, After changing from an old 2.10.5-SNAPSHOT to Camel 2.11.0 (-20130315.195808-8) following error appears: TRACE org.apache.camel.component.file.remote.FtpOperations - listFiles() TRACE org.apache.camel.component.file.remote.FtpConsumer - Found 4 in directory: test/junit TRACE org.apach

ProducerTemplate with Redelivery Policy

2013-05-08 Thread Darwish
Hi , I have transacted route with TransactionErrorHandler and defined redelivery policy ,during route processing im calling processor which communicate with camel component X using producer template , if exception thrown from that component: Is the redelivery policy will be applied on the e

RE: file endpoint not reflecting the filename set in the header from smtp endpoint

2013-05-08 Thread Mohammad Shadab Ali
Hi Claus, I tried with the CamelFileName header, but it doesn't work. It is still taking the first attachment name, also another strange thing is that the content of the attachment which I am setting in the exchange body is also not getting changed, it is also remaining same for the all next tw

AW: Best strategy for skipping lines in CSV files with bindy

2013-05-08 Thread jhm
> Finally I have created a processor with a BufferedReader to filter the > lines of the file according to a regular expression, so I get the file > as String only with the important lines. Later, I use bindy as usual. Instead of reading the file by myself using a BufferedReader I would check the l

mail component not able to poll shared mailbox

2013-05-08 Thread Mohammad Shadab Ali
Hi, I want to poll mails from a shared mailbox. I have created a process IMAPS-->File, the process doesn't throw any exception but gives a warning message "could not poll endpoint:". My process is working fine when it is polling a simple mailbox. I searched for the information related to this o

Re: ActiveMQ Camel Mina Client Server construct

2013-05-08 Thread Jan Schröder
Can this Work? Am 08.05.2013 um 09:27 schrieb Jan Schröder : > Hello, > i hope someone can help me and my english is readable :) > i have some trouble with my Masterthesis-Project. > I will read/subscribe some ActiveMQ Topics (include filter Options like > activemq:topic.da

How to set DataField locale for Double records in camel bindy

2013-05-08 Thread Guillermo
Hi, I have defined a CsvRecord with a DataField: @DataField(pos = 1, required = true) private Double price; In the csv file this field has this format: XX,XX i.e. the decimal separator is the ',' and the grouping separator is the '.' If the VM is in ENGLISH locale/language, the records are not

Re: Best strategy for skipping lines in CSV files with bindy

2013-05-08 Thread Guillermo
Hi, Finally I have created a processor with a BufferedReader to filter the lines of the file according to a regular expression, so I get the file as String only with the important lines. Later, I use bindy as usual. Regards. Guillermo. -- View this message in context: http://camel.465427.n5.