a question on servlet component

2013-10-25 Thread 朱 巍
hi,camel riders Very sorry to interrupt you. My name is Zhu Wei, i'm from China. I am new to camel, now when i using camel servlet component i meet a problem, it trapped me for several days, i see you are very eager to help people, so i write this email hope to get some help from you. the case

Re: a question on servlet component

2013-10-25 Thread gquintana
If you want your browser to display the response as a web page, then you should set Content Type header with text/html value. Gérald -- View this message in context: http://camel.465427.n5.nabble.com/a-question-on-servlet-component-tp5742164p5742168.html Sent from the Camel - Users mailing lis

Get all data from local sftp server -> encrypt -> transfer encrypted files to the remote sftp server

2013-10-25 Thread dmitrijs.balcers
Hello! I have to accomplish such task: 1. Receive every file from appropriate directory in local sftp server; 2. Encrypt each file using custom encryption tool; 3. Send the encrypted file to the local sftp server into appropriate directory; 4. Send the encrypted file to the remote (customer) sftp s

Re: camel-cxf and activemq example

2013-10-25 Thread Claus Ibsen
You can also find some examples in the jboss fuse distribution under examples directory. As well some examples here http://www.jboss.org/products/fuse/fusebyexample.html The rider auto example is a good example https://github.com/FuseByExample/rider-auto-osgi And as Christian said you can find s

Re: Polling for file updates over http/s?

2013-10-25 Thread Claus Ibsen
Hi Yeah sounds like you can create a route starting from a timer / quartz to trigger when to run, and then call a http endpoint, and then process the response / stores the response as a file etc. On Thu, Oct 24, 2013 at 12:29 PM, James Green wrote: > I'm having to write a java daemon that polls

Re: Issue with camel-http4 HttpProducer

2013-10-25 Thread Claus Ibsen
Hi Yeah we could improve on that with an option so you can force not sending any body. Feel free to log a JIRA On Mon, Sep 30, 2013 at 2:02 PM, sbo13 wrote: > Hi, > > I'm having a problem with the HttpProducer of camel-http4 (version 2.12) > > In the createMethod() function, line 365, the prod

Re: Route HANGS processing XML with external DOCTYPE declaration

2013-10-25 Thread Claus Ibsen
Hi I logged a ticket about this to not forget https://issues.apache.org/jira/browse/CAMEL-6897 Seems useful especially if you want to make sure the server dont try to load external resources such as a DTD file. On Wed, Sep 18, 2013 at 4:06 PM, Claus Ibsen wrote: > Hi Dale > > Sounds like a good

Re: Performance Degradation due to Reverse DNS Lookups

2013-10-25 Thread Claus Ibsen
Hi I logged a ticket to not forget about this https://issues.apache.org/jira/browse/CAMEL-6898 On Tue, Jun 25, 2013 at 11:19 AM, Claus Ibsen wrote: > On Tue, Jun 18, 2013 at 3:39 PM, rouble wrote: >> We already do something similar: >> >> SSLContext ctx = SSLContext.getInstance

Re: CamelSpringTestSupport registry\bean modification

2013-10-25 Thread Claus Ibsen
Hi Yeah we should make this easier. I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-6900 On Tue, May 7, 2013 at 9:01 PM, javamonkey79 wrote: > I hope there is a better solution that this, but this works for me: > > return new FileSystemXmlApplicationContext(

Re: testing: intercept route and process() *after* its completion?

2013-10-25 Thread Claus Ibsen
Hi I have logged a ticket to not forget about this. We should take the opportunity in Camel 3.0 to make the DSL better and support these use-cases. https://issues.apache.org/jira/browse/CAMEL-6901 On Thu, Jun 14, 2012 at 2:54 AM, twelve17 wrote: > Hello, > > I've been diving into Camel testing

Re: Cannot stop inputstream during ftp transfer

2013-10-25 Thread Claus Ibsen
I logged a ticket about this to not forget, as it would be nice with an option to be able to stop the download asap https://issues.apache.org/jira/browse/CAMEL-6902 On Fri, Sep 14, 2012 at 11:46 AM, jmh wrote: > Hello, > > I would like to understand why my inputstream (from File: to sftp:) is no

how to call java method using quartz2

2013-10-25 Thread ishwar
hi .actually i need to call java method on future specific time. and i am using cron pattern for creating the time but i am not getting how to call the my java method This is my simple code which invoke the method CamelContext context = new DefaultCamelContext(); context.

Re: how to call java method using quartz2

2013-10-25 Thread Claus Ibsen
Hi Read the Camel documentation about using beans http://camel.apache.org/bean-integration.html http://camel.apache.org/bean.html http://camel.apache.org/bean-binding.html On Fri, Oct 25, 2013 at 12:48 PM, ishwar wrote: > hi .actually i need to call java method on future specific time. and i a

Issue loading multiple properties files

2013-10-25 Thread erj2code
I posted this question on Stack Overflow yesterday: http://stackoverflow.com/questions/19575425/loading-multiple-properties-files-with-camel but haven't gotten any responses yet. Basically I'm trying to load another properties file in addition to the ones I have and I can't get it to work. Any i

Re: how to call java method using quartz2

2013-10-25 Thread ishwar
after reading i implemented following code. public class Schedule { public static String SayService(String msg) { System.out.println(msg); return (msg); } public static void main(String args[])throws Exception

Re: how to call java method using quartz2

2013-10-25 Thread Claus Ibsen
Tell Camel which method to invoke .to("bean:bye?method=nameOfMethod") On Fri, Oct 25, 2013 at 2:09 PM, ishwar wrote: > after reading i implemented following code. > > public class Schedule { > > > public static String SayService(String msg) { > System.out.println(msg); >

Re: camel-context only seems to work within the same file or do I use it wrong?

2013-10-25 Thread dantam74
Just to add my solution to my question. I wanted to use camel-context to be able to enable me to split the camel definition files into different modules. I finally found the vm: component and it does exactly what I wanted to do, ie direct communication between contexts without having for activemq

Re: Issue loading multiple properties files

2013-10-25 Thread alexey-s
Hi This error Spring Framework. Camel nothing to do with business. Use in OSGI blueprint: ... http://camel.apache.org/schema/blueprint";> ... Aleksey -- View this message in context: http://camel.465427.n5.nabble.com/Issue-loading-multiple-properties-files-tp5742200p5742206.html Se

SAXParseException due to invalid characters in cxf endpoint response

2013-10-25 Thread bhushand
Hello All We are facing an issue which is due to some invalid charaters in response returned by webservice. We are using Camel 2.9.2 for routing, cxf 2.6.0 to configure jaxws endpoint of our webservice. When response returned from webservice contains some invalid charaters, consumer of our

Request-Reply a second route

2013-10-25 Thread Gabriel
Hello, I have a route which proxies another route with a web-service like this (1. Route:): from("cxf:bean:TpmsWSEndpoint") .inOut("activemq:queue:tpms_sendTo_iccs?replyTo=tpms_from_iccs&jmsMessageType=Text"); The activemq:queue:tpms_sendTo_iccs queue is the beginning of an othe

Re: Issue loading multiple properties files

2013-10-25 Thread erj2code
Can you clarify what exactly I need to adjust to fix my Spring error? -- View this message in context: http://camel.465427.n5.nabble.com/Issue-loading-multiple-properties-files-tp5742200p5742213.html Sent from the Camel - Users mailing list archive at Nabble.com.

Downloading IMAP attachments fails on karaf

2013-10-25 Thread Olaf
Hello, downloading attachments (about 1Mb in size) fails if I deploy my application to karaf. If I start my application locally it uses mail-1.4.7.jar. I can see it in exception trace, because messages cannot be copied: javax.mail.MessagingException: A17 NO Error in IMAP command received by serv

Re: SAXParseException due to invalid characters in cxf endpoint response

2013-10-25 Thread bhushand
One thing to mention...we are using websphere for deployment. On our local server it is running fine, on environments it is causing error. -- View this message in context: http://camel.465427.n5.nabble.com/SAXParseException-due-to-invalid-characters-in-cxf-endpoint-response-tp5742212p5742216.ht

Re: Netty: messages not propagated back from netty producer

2013-10-25 Thread javakurious
Sorry for responding so late.. That didn't help either. noticed that when I sent an erroneous message to remote netty component, which returned right away with a failure message, it was received and displayed correctly. But when I send a correct message , and the remote server is processing the m

Re: Netty: messages not propagated back from netty producer

2013-10-25 Thread javakurious
Another observation: If I set the synchronous to true, I get empty body back.. Could netty be receiving something back before the actual response, which makes it just return right away. Vineet -- View this message in context: http://camel.465427.n5.nabble.com/Netty-messages-not-propagated-b

Re: Netty: messages not propagated back from netty producer

2013-10-25 Thread javakurious
In debug mode, it runs fine. So, it is a timing issue.. Netty producer is not waiting for the response even if I set the requestTimeout value to be 10 secs. Vineet -- View this message in context: http://camel.465427.n5.nabble.com/Netty-messages-not-propagated-back-from-netty-producer-tp57413

HTTP Basic Authentication

2013-10-25 Thread martin11
Hello, I`m trying to set BASIC Authentication on HTTP component (camel ver. 2.11.0). I know that I can use header settings like this one: .setHeader("Authorization", constant("Basic base64string")) and it works fine. But I`m looking for more elegant way to setup basic auth. Something like in CXF

Re: HTTP Basic Authentication

2013-10-25 Thread contactreji
Hi I used a interceptor approach. The java code for interceptor is as follows *package outotec.com.mes.bw.copper_recovery_perc;* *import java.io.IOException;* *import java.io.OutputStream;* *import java.net.HttpURLConnection;* *import java.util.Arrays;* *import java.util.List;* *import java.util.

Re: SAXParseException due to invalid characters in cxf endpoint response

2013-10-25 Thread bhushand
Hello, can I get some help,please. -- View this message in context: http://camel.465427.n5.nabble.com/SAXParseException-due-to-invalid-characters-in-cxf-endpoint-response-tp5742212p5742243.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Netty: messages not propagated back from netty producer

2013-10-25 Thread Claus Ibsen
Hi There was a fix about request timeout recently. See CAMEL-6730 On Fri, Oct 25, 2013 at 10:55 PM, javakurious wrote: > In debug mode, it runs fine. So, it is a timing issue.. Netty producer is not > waiting for the response even if I set the requestTimeout value to be 10 > secs. > > Vineet > >