Re: how to check header name and body in the output

2013-03-14 Thread Willem jiang
template.sendBodyAndHeader just send a InOnly exchange to endpoint. If you want to get the response, you need to use the method start with request. if you want to check header you may need to use this method, and setup the in message header and body in the processor. Exchange request(String endpo

Re: Problem encrypting data using PGP data format

2013-03-14 Thread Willem jiang
Hi, Did you try to test your PGP data format setting with a simple route like this? -- 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: Question on Splitter Parallel Processing

2013-03-14 Thread Willem jiang
I'm not sure why do you want to implement this kind of feature, may be you can do it by implement a custom ExcutorService and set the ExcutorService to the Splitter. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: h

Re: (Camel 2.2) Exception handling problem in case of parallel splitter with custom AggregationStrategy

2013-03-14 Thread Willem jiang
Hi, You are using a very old version of Camel which we don't plan to support. I just checked the source code in the trunk, I think current camel splitter has a better solution of stopOnException. Did you try to use the latest released Camel 2.10.4 to see if the error is still there? -- Will

Re: Post Request forwarded from Camel does not contain HTTP Body

2013-03-14 Thread Willem jiang
What's you HTTP request look like? I just checked the code, if you are sending a HTTP POST with Form, the message body could be empty. BTW, which version of Camel are you using? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.

Re: Post Request forwarded from Camel does not contain HTTP Body

2013-03-14 Thread Willem jiang
what's the dynamicRouter slip look like? stream caching should work, can you show us how do you setup it? -- 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.co

Re: Post Request forwarded from Camel does not contain HTTP Body

2013-03-14 Thread ramrubio
Found answer to my question in documentation. Missed it. servlet component may only read stream once. Tried using streamcaching but that did not work. Do not know why. Instead copied body to string and reset it in request and that worked. Here is code in case someone runs into same issue. th

Re: CAMEL and WebDAV ?

2013-03-14 Thread moxximus
Was this camel-sardine component ever completed? If not, could you pass my contact info on to the community member who was developing the component? I need this component for a project I'm developing at work. I've spoken to my boss and he is optimistic about the company permitting me to release th

AW: Files cannot be moved on FTP

2013-03-14 Thread Lutter, Robin
Hi Claus and Filippo, Christian Schäfer had already filled a bug for this issue https://issues.apache.org/jira/browse/CAMEL-6056 I attached a patch at it. Regards Robin -Ursprüngliche Nachricht- Von: Claus Ibsen [mailto:claus.ib...@gmail.com] Gesendet: Mittwoch, 13. März 2013 08:11 An:

The exchange in.body object doesn't include the respond when cxf-rs (restfull) endpoint is called

2013-03-14 Thread salemi
I am having trouble with one use case in camel. In this use case we receive a JMS message from ActiveMq (MEP is InOnly) and in the route I extract some information and use the details to call the restFull Api. The call to retrieveSourceId is successful but the respond doesn’t get saved off in

Re: Consuming from an FTP windows

2013-03-14 Thread barrel
The test used in the following thread: http://camel.465427.n5.nabble.com/Polling-in-subfolder-with-sftp-fail-camel-2-10-4-td5728836.html is performed on a windows machine, using freeftpd What does the console output say when you try to connect? Are you sure that you are polling the right folder fo

(Camel 2.2) Exception handling problem in case of parallel splitter with custom AggregationStrategy

2013-03-14 Thread khar
Hello All! I'm using Camel 2.2 and I'm trying to split incoming message, then process them parallelly (with my own thread pool), then aggregate them with my custom AggregationStrategy. Everything works fine except of error handling - I don't need any of those splitted messages if any of them throw

Question on Splitter Parallel Processing

2013-03-14 Thread Edwin
Hi Folks, I have a route using a Splitter with parallel processing enabled. The exchange contains List someObjectList and the size of someObjectList is five. SomeObject contains a property - *id* If the first two elements of the list contain the same id, is it possible to process these on the sam

Problem encrypting data using PGP data format

2013-03-14 Thread GarethHughes
I have a route thus: The route throws a very generic org.apache.camel.CamelExecutionException and a stack trace which doesn't really suggest what the error might be (see below). It found the keyring file OK because if I specify that incorrectly can'

how to check header name and body in the output

2013-03-14 Thread sridurga
Hi, I am using the below code.. but i am not able to check the headername and body message.. Can you let me know how to check it out ? template.sendBodyAndHeader("activemq:MyQueue", "world!", "CustomerRating", "Gold"); -- View this message in context: http://camel.465427.n5.nabb

Consuming from an FTP windows

2013-03-14 Thread akcameluser
Hi I have camel osgi bundle running on a serviceMix (linux box). It has an endpoint to consume from a windows ftp server and it doesn't seem to work. See how the endpoint looks like below - I have tried different combinations but it doesn't seem to work. The zip file I am after to consume is loc

Re: Consume the same file

2013-03-14 Thread Alberto Brosich
On Wed, 2013-03-13 at 17:31 +0100, Claus Ibsen wrote: > On Wed, Mar 13, 2013 at 3:54 PM, Alberto Brosich > wrote: > > > > Hi, > > > > I have to consume with the FTP component always the same file but only when > > its size changes. > > I read this in the documentation: > > > > Camel 2.11: To use a

Re: Testing an http component

2013-03-14 Thread Willem jiang
The LocalTestServer is the httpclient-4.x test support class. You need add the httpclient-4.x-tests.jar in your class path. -- 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://wil

Re: Polling in subfolder with sftp fail (camel 2.10.4)

2013-03-14 Thread barrel
Also the polling option works. -- View this message in context: http://camel.465427.n5.nabble.com/Polling-in-subfolder-with-sftp-fail-camel-2-10-4-tp5728836p5729179.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Polling in subfolder with sftp fail (camel 2.10.4)

2013-03-14 Thread barrel
I have written a simple test-case that tries the same (using the same URI structure as in the first post), this test functions without problems Barry -- View this message in context: http://camel.465427.n5.nabble.com/Polling-in-subfolder-with-sftp-fail-camel-2-10-4-tp5728836p5729178.html Sen

Re: Failed to resolve endpoint: smtp://krishna.arad...@cognizant.com due to: No component found with scheme: smtp

2013-03-14 Thread Willem jiang
Hi, You need to check your class path as Claus suggested. -- 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

Re: Testing an http component

2013-03-14 Thread vss123
Hi, Can u provide little more guidance on how to write test without jetty. I see http4 unit test use LocalTestServer. But that's not bundled with camel-http4 jar I guess. Am I missing something? Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/Testing-an-http-compone

Unexpected behavior of LoggingErrorHandler in Camel

2013-03-14 Thread dancerjohn
So, I have a camel context that has a DeadLetterChannel with no redeliveries at the context level. Within the context I have a route: from("direct:input") .routeId("enrichHeader") .setHeader("myHeader").constant("someValue) .to("direct:output"); I have a unit test in which I interc

Quartz exception with camel

2013-03-14 Thread uzairkamal
Exception in thread "main" java.lang.InstantiationError: org.quartz.JobDetail at org.apache.camel.routepolicy.quartz.ScheduledRoutePolicy.createJobDetail(ScheduledRoutePolicy.java:143) at org.apache.camel.routepolicy.quartz.ScheduledRoutePolicy.scheduleRoute(ScheduledRoutePolicy.jav

Quartz and jdbc

2013-03-14 Thread uzairkamal
Hello Camel Community, I am new to Apache camel, this might be a very basic issue, but i am unable to figure it out. I am having some problem while making calls from jdc component to database while having schedular on. I am getting an exception like as follow INFO: Job execution threads wi

Re: base class for context component?

2013-03-14 Thread Taariq Levack
Sven did you see the test[1] that the snippet is from? I still wonder if this is what you need, but if you're sure then try to adapt that test to your application. The test creates the JNDIRegistry but usually this comes from somewhere else in the app, and as the docs say you can use JNDI, Spring

Re: Failed to resolve endpoint: smtp://krishna.arad...@cognizant.com due to: No component found with scheme: smtp

2013-03-14 Thread Claus Ibsen
On Thu, Mar 14, 2013 at 8:22 AM, Krishna.aradhya wrote: >Hello folks, > >I am running the below code but its giving the error like > "Failed to resolve endpoint: smtp://krishna.arad...@cognizant.com due to: No > component found with scheme: smtp". So, Please suggest me how to a

Re: how to check header name and body in the output

2013-03-14 Thread Claus Ibsen
On Thu, Mar 14, 2013 at 8:31 AM, sridurga wrote: > Hi, > > I am using the below code.. can you let me know how to see the > headername and body message what i had put in the queue? > > template.sendBodyAndHeader("activemq:MyQueue", >"world!", >"CustomerRating", "Gold"); > > You can u

Re: Database Cache in Camel

2013-03-14 Thread Claus Ibsen
On Wed, Mar 13, 2013 at 10:26 PM, wrote: > Anyone got ideas around setting up the Ehcache based on hibernate? > You should ask on Hibernate forum or some related forum for that. Or maybe check out stackoverflow etc. > -Original Message- > From: Kanagavel, Ganesh Kumar: CRES (NYK) > Sen

how to check header name and body in the output

2013-03-14 Thread sridurga
Hi, I am using the below code.. can you let me know how to see the headername and body message what i had put in the queue? template.sendBodyAndHeader("activemq:MyQueue", "world!", "CustomerRating", "Gold"); -- View this message in context: http://camel.465427.n5.nabble.com/how-t

Re: from server to oracle

2013-03-14 Thread Claus Ibsen
Hi When you send to the JMS queue then you may want to send that either as - InOnly (aka fire and forget) - InOut (request reply over JMS) See the following EIPs about that http://camel.apache.org/event-message.html http://camel.apache.org/request-reply.html So if you want fire and forget then