Re: Proxying WSDL for CXF endpoint via camel

2012-10-25 Thread Willem jiang
Hi, Which version of camel are you using? I just did some test against the camel trunk ( camel-2.11-SNAPSHOT). I cannot reproduce the error. BTW, you should be able to get the message header CamelHttpQuery with value of wsdl. Hope you can find workaround with this message header. -- Willem

FTP Issue

2012-10-25 Thread widecr0W
Hi, Im new to Camel and am trying to get the hang of it. Made some routes to store data of xml files in database and some other basic stuff like sending mails. Now I was trying to get the FTP running to poll the ftp for new xml files to include in my routes. It just doesn't want to work. I

Endpoint and Producer isSingleton behavior in the OSGi

2012-10-25 Thread Zhemzhitsky Sergey
Hello camel gurus, I just need some clarification about how DefaultEndpoint, DefaultProducer behave depends on whether their isSingleton method returns true or false. My understanding is the follosing: 1. If DefaultEndpoint.isSingleton() returns true the same instance of the endpoint

Re: Endpoint and Producer isSingleton behavior in the OSGi

2012-10-25 Thread Claus Ibsen
On Thu, Oct 25, 2012 at 10:18 AM, Zhemzhitsky Sergey sergey_zhemzhit...@sberbank-cib.ru wrote: Hello camel gurus, I just need some clarification about how DefaultEndpoint, DefaultProducer behave depends on whether their isSingleton method returns true or false. My understanding is the

RE: Endpoint and Producer isSingleton behavior in the OSGi

2012-10-25 Thread Zhemzhitsky Sergey
Hello Claus, Thanks a lot for clarification! Best Regards, Sergey -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Thursday, October 25, 2012 12:49 PM To: users@camel.apache.org Subject: Re: Endpoint and Producer isSingleton behavior in the OSGi On Thu, Oct

Issue during concurrent inOut Queue Call

2012-10-25 Thread uemit2705
Hi there, i have an issue in my tomcat application while calling an inout queue concurrently. There are 5 consumers listening concurrently to a queue in an outer route, and in this route we placed a further concurrent (8 Consumer) inout FileUpload queue where further processing takes place.

Re: Issue during concurrent inOut Queue Call

2012-10-25 Thread Willem jiang
It could be helpful if you can show us your camel route definition. -- 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: How a dynamic created route can provide the original exchange it was initiated from with informations

2012-10-25 Thread Hilde
Hello! after I got some advice from my colleague I have solved it by assign the exception in the dynamic route to a class attribute with type Map. Finally after the route was finished I check this attribute and if necessary assign it to the original exchange. Cheers Hilde -- View this

Re: FTP Issue

2012-10-25 Thread Claus Ibsen
Hi Maybe you need to enable passive mode passiveMode=true On Thu, Oct 25, 2012 at 9:55 AM, widecr0W widec...@gmail.com wrote: Hi, Im new to Camel and am trying to get the hang of it. Made some routes to store data of xml files in database and some other basic stuff like sending mails.

Re: FTP Issue

2012-10-25 Thread widecr0W
I tried this before.. just tested it again and now the ftp server log is: 2012-10-25 14:04:38 - (not logged in) ! New user connected from 10.32.67.28, sending welcome message... 2012-10-25 14:04:38 - (not logged in) USER camel 2012-10-25 14:04:38 - (not logged in) 331 User name received, need

Re: FTP Issue

2012-10-25 Thread Claus Ibsen
And just to be sure there is any files for the user to download? If you login using a ftp client do you see any files? Also you may configure the separator option according to if the FTP server is Windows or Unix based. http://camel.apache.org/ftp2 On Thu, Oct 25, 2012 at 2:06 PM, widecr0W

Re: FTP Issue

2012-10-25 Thread widecr0W
Files are there. I added the separator option and now it seems it's polling the ftp. But I get a socketexception while trying to get a file. I'm glad I get some output now. Suggestions are welcome but now I know it's trying to get the files! Thank you :) -- View this message in context:

Re: FTP Issue

2012-10-25 Thread Claus Ibsen
On Thu, Oct 25, 2012 at 3:24 PM, widecr0W widec...@gmail.com wrote: Camel 2.10.1 on a Windows machine. It wasn't exactly a socketexception. The exception I'm getting now is: 6206 [Camel (camel-1) thread #0 - ftp://10.32.67.28:21] WARN

Truncate a bean property string in the body in Spring?

2012-10-25 Thread dunnlow
using camel 2.9 and spring 3.1: I have a bean in the message body and one of the properties is a string. I want to truncate the value of that property (basically make sure it isn't longer than 100 characters). I know I could put a method on the bean to do this, but is there an reasonably easy

RE: Camel CXF HTTPS

2012-10-25 Thread rxm0203
Hi Stephan, Your suggestion of Create or edit a file KARAF.HOME/etc/org.apache.cxf.osgi.cfg with the content org.apache.cxf.servlet.context=/somthingelse worked. We already have /somethingelse defined in URL. This is the reason for removing /cxf path from URL. I appreciate your help. Thanks,

Re: Trigger start/stop/resume/suspend of a camel route using queue, db

2012-10-25 Thread rajasekar
Hi , Can you provide me some sample of camel context which uses suspend and resume route . I have requirement to suspend a route ( in a camel-context.xml ) when n number errors occurred calling a http endpoint and stop consuming messages from jms queue for x time and resume this route to start

FTP download of bigger files gives me OOM

2012-10-25 Thread Achim Nierbeck
Hi, using Camel 2.10.2 I have a ftp endpoint that downloads a couple of files from a remote FTP server. There are different files located on this server, some of them are about 700 MB size. Now every time I start the route for downloading it gives me a OOM when trying to download this file. The

Re: FTP download of bigger files gives me OOM

2012-10-25 Thread Claus Ibsen
Hi A bit odd as the output stream passed in to the ftp client is a FileOutputStream. I suggest if you can check the commons-net code and see what it does. There was a bug though if you afterwards route to a file endpoint. Then Camel was optimized to try first to rename the file from

Re: FTP download of bigger files gives me OOM

2012-10-25 Thread Claus Ibsen
Digged in the code. Somehow this returns false according to your stacktrace. So it goes for the retrieveFileToStreamInBody instead of the 1st method. Can you double check your endpoint is configured correctly. if (ObjectHelper.isNotEmpty(endpoint.getLocalWorkDirectory())) {

Re: FTP download of bigger files gives me OOM

2012-10-25 Thread Achim Nierbeck
Hmm, interesting ... need to check the reason for this later ... I kept updating my bundle containing this route, which failed, so now after your suggestion I did a clean run (should have done that earlier, shame on me :) ) and now it just consumes about 1.5 GB Heap :) wonder why it survived the

Re: Proxying WSDL for CXF endpoint via camel

2012-10-25 Thread rouble
Actually, there was a configuration issue on my side. The to endpoints url was not complete. The WSDL does get proxied fine. Can someone help with my other question, how do I dynamically set the hostname and port of the to endpoint in this cxf proxy case. My camel route looks like this:

Issue with mail forward

2012-10-25 Thread jagal
Hi, I want to forward mail from a mailbox 1 to mailbox 2. So I do this : from(imaps://mail.gandi.net?username=myusernamepassword=mypasswordconsumer.delay=6) .setHeader(to, constant(mym...@mycompany.fr)) .to(smtp://mail.gandi.net?username=myusernamepassword=mypassword) My goal is to have a

Camel Timeout on a route

2012-10-25 Thread ravi.4indra
Hi, Is there a way to specify timeout on a route. Example from(direct:route1) .to(bean:dosomething) .to(direct:commonRoute) now if the commonRoute takes more than n milliseconds i want to get a timeout exception. FYI I tried seda component I got the timeout exception after n seconds but the

Re: Camel Timeout on a route

2012-10-25 Thread Raul Kripalani
Many Camel components support specifying timeouts, e.g. JMS, CXF, Jetty, etc. What does commonRoute do? Could you post its code so we can help you further? Thanks. Sent from a mobile device On 26 Oct 2012 01:32, ravi.4indra ravi.4in...@gmail.com wrote: Hi, Is there a way to specify timeout

Urgent help needed on PGP decryption - error setting asymmetric cipher

2012-10-25 Thread Chandra Kalirasa
Hi: I am able to encrypt a file with a public key, but when I try to decrypt I am getting the following errors; Is there any additional jars needed? public static void main(String args[]) throws Exception { // create CamelContext CamelContext context = new