Re: OutHeaders and ProducerTemplate

2014-01-21 Thread Claus Ibsen
Yes in the receive methods that return an Exchange you have access to the out message where you can get the body/headers etc. The receiveBody methods are for returning only the body. On Tue, Jan 21, 2014 at 12:22 AM, Knut-Håvard Aksnes khaks...@gmail.com wrote: Is it possible using receive

Re: Load testing for Camel appliation

2014-01-21 Thread Pontus Ullgren
Hi, To add to Jans answer. JMeter can also handle JMS http://jmeter.apache.org/usermanual/build-jms-topic-test-plan.html An alternative to JMeter if your message channel is a SOAP or REST endpoint is to use soapUI (with loadUI). http://www.soapui.org/ It also has support for JMS though I never

Re: Camel main class in osgi bundle

2014-01-21 Thread Christian Schneider
I am sorry but I have not understood your example. Coming back to your rules: 1. Blueprint requires the presence of all the objects (beans) in the public OSGi part. You can create blueprint beans with a class from a private package. Why should that not work? 2. These objects can create

LevelDB Repository and sync flag

2014-01-21 Thread Stephan Burkard
Hi Camel users I am testing LevelDB as repository for the aggregator component. After reading the docs about the sync flag, I am unsure if I need to set it or not. Let's say my Java process with the Camel aggregator dies (not gracefully). What happens to the aggregation? A current aggregation in

Re: Headers set from custom component are lost on exception

2014-01-21 Thread Claus Ibsen
Hi Yeah that is intended as when an exception occurs the exchange does not include any partial changes/updates that may have happened. Camel does a defensive copy of the information from the message in its error handler. On Mon, Jan 20, 2014 at 12:41 PM, Lorenzo Bolzani l.bolz...@gmail.com

Re: Blueprint route not shutdown when using OSGi service processor

2014-01-21 Thread Dominik Amon
Hi Claus, I created https://issues.apache.org/jira/browse/CAMEL-7144 Kind regards Dominik -- View this message in context: http://camel.465427.n5.nabble.com/Blueprint-route-not-shutdown-when-using-OSGi-service-processor-tp5746114p5746273.html Sent from the Camel - Users mailing list archive

LevelDB and Route-Tests

2014-01-21 Thread Stephan Burkard
Hi Camel users I ran into another problem with the LevelDB aggregator persistence. The error I get is Error opening LevelDB with file [path to persistentFileName]. The cause of it is LOCK: already held by process. This happens when I run multiple route tests using CamelSpringTestSupport. The

Re: Super basic questions

2014-01-21 Thread mister blinky
Thanks for your response. I think i got it. Let me state it to confirm, then I have a follow up question. So the /.to(endpoint-type:URL-of-endpoint-API)/ establishes a contract with Camel that a) the /endpoint-type/ defines the message format among other things required by the endpoint; and b)

Re: Problem with exception handler (onException) on Camel 2.12.X routes.

2014-01-21 Thread jguerra
Hi I've just tested the route following two scenarios and I as far I can see, the handler works but only when the transacted/ instruction is removed from the route. I wrote down a test bean testBean which it throws an exception and I tested that the route below works and the exceptions are

Reply received for unknown correlationID [xxxx]

2014-01-21 Thread amshf
There is a middleware in between of two other software components. In the middleware I'm routing Apache ActiveMQ messages by Apache Camel. this is how it works: 1) 1stComponent uses middleware to send message to the 3rdComponent 2) 3rdComponent replies the message and sends it back to the

Avoiding duplicate messages

2014-01-21 Thread shindito
Hi guys, consider the following route: from(srcEndpoint). to(destEndpoint1). to(destEndpoint2) I have a Java program which does the following: - create a Camel exchange, add an onComplition action to remove the exchange from the cache on success, store the exchange in a cache, and then send it

Re: Avoiding duplicate messages

2014-01-21 Thread Richard Kettelerij
Your use case it slightly different then the standard use case but perhaps the Idempotent Consumer will suit your needs? http://camel.apache.org/idempotent-consumer.html On Tue, Jan 21, 2014 at 2:12 PM, shindito atanas.shin...@gmail.com wrote: Hi guys, consider the following route:

Re: OutHeaders and ProducerTemplate

2014-01-21 Thread Knut-Håvard Aksnes
Thank you a lot: I was for some reason only searching for the calls using the default endpoint as I tend to use @EndpointInject with the uri option in tests. -- View this message in context: http://camel.465427.n5.nabble.com/OutHeaders-and-ProducerTemplate-tp5746262p5746282.html Sent from the

Bug in LevelDB aggregator? NPE when completionSize 1

2014-01-21 Thread Stephan Burkard
Hi By accident I noticed that when I configure a LevelDB aggregator persistence with completionSize = 1 (yes I know, this is kind of an aggregator that does not aggregate), I get the stacktrace below on every message. As soon as I set a completionSize 1, everything runs fine. I guess this is a

Re: Bug in LevelDB aggregator? NPE when completionSize 1

2014-01-21 Thread Claus Ibsen
Hi Yeah you are welcome to raise a JIRA. And as we love contributions, a bug fix is appreciated. On Tue, Jan 21, 2014 at 4:25 PM, Stephan Burkard sburk...@gmail.com wrote: Hi By accident I noticed that when I configure a LevelDB aggregator persistence with completionSize = 1 (yes I know,

Re: Dead letter handling in an embedded Camel client.

2014-01-21 Thread Paul Gale
After further reading it appears that as Camel's default message acknowledgement mode is 'auto' I would have to switch to 'transacted acknowledge mode' (use transacted/ on the route). Therefore am I correct in assuming that to in order to avoid 'losing' messages that I would have to implement XA

Re: Super basic questions

2014-01-21 Thread boday
the camel-hdfs producer will throw an error if the send operation fails...internally it just uses a standard HdfsOutputStream...so any step in the route following this send would only be triggered upon successful send operation, and you can use standard Camel onException/doCatch routing exception

soTimeout ignored by camel http component

2014-01-21 Thread toomanyedwards
Hi all, We are trying to set the timeout for http client connections. The http component docs (http://camel.apache.org/http.html) indicate that we should be able to set this as a URI param (eg. - http://foo.com?httpClient.soTimeout=5000), BUT this doesn't work if setting the URI via the

Re: soTimeout ignored by camel http component

2014-01-21 Thread Claus Ibsen
Hi Its working as designed. The httpClient.xxx are options specific to the http client you want to use for the endpoint when its created. The Exchange.HTTP_URI is only for the uri to call the remote http server. And not to configure httpClient itself by camel etc. On Tue, Jan 21, 2014 at

Re: Unit Testing Question

2014-01-21 Thread Castyn
For the fixtures in the example, does that need to be embedded into a Routebuilder? I'm still trying to setup this simple example but unsure how the fixture here is actually invoked. Currently all of my routes are actually created in the spring DSL as well. Any elaboration on this would be

Re: soTimeout ignored by camel http component

2014-01-21 Thread Claus Ibsen
Yeah that would be the idea. On Tue, Jan 21, 2014 at 5:50 PM, toomanyedwards toomanyedwa...@gmail.com wrote: Does that mean we can configure an endpoint in our route something like http://dummyUri?httpClient.soTimeout=5000; and then before we use that endpoint specify a URI using the

Re: soTimeout ignored by camel http component

2014-01-21 Thread toomanyedwards
Does that mean we can configure an endpoint in our route something like http://dummyUri?httpClient.soTimeout=5000; and then before we use that endpoint specify a URI using the Exhange.HTTP_URI header (e.g. - http://myservice.com) and in the example my route would use http://myservice.com but would

Questions about cxfrs

2014-01-21 Thread David
I think this is more of a Camel question than a CXF question, but let me know if that's not the case (would it have been bad form to cross-post this to cxf-user?). I have questions regarding use of Jackson with CXF, as well as how to get CXFRS not to wrap the root value of a JSON payload. I am

Re: soTimeout ignored by camel http component

2014-01-21 Thread toomanyedwards
Great! Could the timeout then be different if I have several http endpoints in a single route (e.g - http://myservicefoo?httpClient.soTimeout=500; and http://myservicebar?httpClient.soTimeout=2500;) or is the timeout global for a route? That is, do all http endpoints in a route use a single

problem trying to propagate exceptions from within enrich() and recipientList()

2014-01-21 Thread Elvio Caruana (ecaruana)
Hi, I'm trying to manage exceptions in my Java DSL routes (and sub-routes) by setting errorHandler(noErrorHandler()) so that exceptions can propagate to parent routes with their custom error handler. However, this doesn't seem to work whenever exceptions are thrown within routes being called

Re: soTimeout ignored by camel http component

2014-01-21 Thread Claus Ibsen
Yeah define different foo/bar/zoo endpoints if you want different timeouts. On Tue, Jan 21, 2014 at 6:09 PM, toomanyedwards toomanyedwa...@gmail.com wrote: Great! Could the timeout then be different if I have several http endpoints in a single route (e.g -

Re: Questions about cxfrs

2014-01-21 Thread Sergey Beryozkin
Hi Please see comments below, On 21/01/14 17:01, David wrote: I think this is more of a Camel question than a CXF question, but let me know if that's not the case (would it have been bad form to cross-post this to cxf-user?). I have questions regarding use of Jackson with CXF, as well as how to

Re: soTimeout ignored by camel http component

2014-01-21 Thread toomanyedwards
Great! Thank you for the clarification. Makes sense. IMHO, it'd be great if this functionality was documented more explicitly in the http component doc. Seems like I wasn't the only one surprised by the way it works based on the current docs. Also, it'd be helpful if the docs were more

Log after choice in java DSL

2014-01-21 Thread Christopher Arnold
I working on a test that sets up a CXF REST endpoint and then routes the request to various beans depending on the operation. I'm trying to include a log entry after the choice statement that sends the request to the beans to log what the response looks like. Source code: @Override

Re: soTimeout ignored by camel http component

2014-01-21 Thread Claus Ibsen
People are very welcome to contribute such as help improve the docs. http://camel.apache.org/contributing.html On Tue, Jan 21, 2014 at 6:30 PM, toomanyedwards toomanyedwa...@gmail.com wrote: Great! Thank you for the clarification. Makes sense. IMHO, it'd be great if this functionality was

Re: Camel main class in osgi bundle

2014-01-21 Thread alexey-s
Consider an example. Example project in the attachment file. For reasons of clarity, the project no services and no Apache Camel. Build project: Note the last warning. Remove method getB. Build project. Last warning not exists. myapp.tar.gz

Re: Avoiding duplicate messages

2014-01-21 Thread Atanas Shindov
Hi Richard, thanks for your prompt reply. It looks like the Idempotent Consumer might help, especially if in it's File/JDBC based implementations the message ids are durably persisted (it seems quite logical to be so), so that they are available after a JVM restart for example. However, the

Re: soTimeout ignored by camel http component

2014-01-21 Thread toomanyedwards
Good point! I'll look into it. Thanks again! -- View this message in context: http://camel.465427.n5.nabble.com/soTimeout-ignored-by-camel-http-component-tp5746289p5746303.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Avoiding duplicate messages

2014-01-21 Thread Richard Kettelerij
Hi Atanas, However, the usage of this EIP requires modification of the original route (insertion of an idempotentConsumer instruction before every destination endpoint) and I would prefer to use an alternative approach (if it's possible). Why would modifying the route (e.g. inserting

Re: Log after choice in java DSL

2014-01-21 Thread Richard Kettelerij
Try replacing endChoice() with end(). On Tue, Jan 21, 2014 at 6:55 PM, Christopher Arnold carn...@ptc.com wrote: I working on a test that sets up a CXF REST endpoint and then routes the request to various beans depending on the operation. I'm trying to include a log entry after the choice

Re: Questions about cxfrs

2014-01-21 Thread David
Comments in-line. On Tue, Jan 21, 2014 at 12:34 PM, Sergey Beryozkin sberyoz...@gmail.comwrote: Hi Please see comments below, On 21/01/14 17:01, David wrote: I think this is more of a Camel question than a CXF question, but let me know if that's not the case (would it have been bad form

Re: Log after choice in java DSL

2014-01-21 Thread Christopher Arnold
That did the trick. Thanks! -Chris On 01/21/2014 03:10 PM, Richard Kettelerij wrote: Try replacing endChoice() with end(). On Tue, Jan 21, 2014 at 6:55 PM, Christopher Arnold carn...@ptc.com wrote: I working on a test that sets up a CXF REST endpoint and then routes the request to various

[bindy csv] ignoring fields in csv unmarshalling with bindy

2014-01-21 Thread Jason Dwyer
HI, i'm new to camel and have spent a bit of time checking out several options for processing CSV data. so far bindy looks like a pretty good deal, but for one shortcoming - the csv i have to process is both long ( millions of records ) and wide ( hundreds of columns) while i've found the

Re: Questions about cxfrs

2014-01-21 Thread Willem Jiang
On January 22, 2014 at 5:14:40 AM, David (wakarima...@gmail.com) wrote: When my route attempts to invoke Service2, the URI is set to: http://localhost:8080/service2/service2path/service1/service1path, where service1/service1path is configured in my.Service1. I'm also not sure why I'm

Re: Apache Camel v2.12 | CXF Component | Basic Authentication | Web Service

2014-01-21 Thread Willem Jiang
Hi, If you set the cxfEndpoint property in a processor, it’s a setting of runtime. As the CxfProducer is created during the camel context start the route, the cxfEndpoint’s property is not updated. My suggestion is you set the cxfEndpoint property in the route builder configure method instead

Re: Looking to determine where Camel can help us

2014-01-21 Thread Willem Jiang
Hi, You can have a look at the camel cxf examples[1] which can address some of your concern. BTW, CXF support the SOAP and REST at the same time. [1]http://camel.apache.org/cxf-example.html -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog:

Re: Questions about cxfrs

2014-01-21 Thread David
On Tue, Jan 21, 2014 at 8:16 PM, Willem Jiang willem.ji...@gmail.comwrote: On January 22, 2014 at 5:14:40 AM, David (wakarima...@gmail.com) wrote: When my route attempts to invoke Service2, the URI is set to: http://localhost:8080/service2/service2path/service1/service1path, where

Re (KMM111055313V64287L0KM) :ppNA

2014-01-21 Thread service
It appears you're contacting us with an email address that is not registered on your PayPal account. We cannot send any account information to an unregistered email address. You need to contact us from an email address that is registered and confirmed on your PayPal account. If you do not have

Re (KMM111055336V64319L0KM) :ppNA

2014-01-21 Thread service
Dear , It appears you're contacting us with an email address that is not registered on your PayPal account. We cannot send any account information to an unregistered email address. You need to contact us from an email address that is registered and confirmed on your PayPal account. If you do

Re (KMM111055376V64348L0KM) :ppNA

2014-01-21 Thread service
Dear , It appears you're contacting us with an email address that is not registered on your PayPal account. We cannot send any account information to an unregistered email address. You need to contact us from an email address that is registered and confirmed on your PayPal account. If you do

Re (KMM111055435V64382L0KM) :ppNA

2014-01-21 Thread service
Dear , It appears you're contacting us with an email address that is not registered on your PayPal account. We cannot send any account information to an unregistered email address. You need to contact us from an email address that is registered and confirmed on your PayPal account. If you do

Re (KMM111055465V64425L0KM) :ppNA

2014-01-21 Thread service
Dear , It appears you're contacting us with an email address that is not registered on your PayPal account. We cannot send any account information to an unregistered email address. You need to contact us from an email address that is registered and confirmed on your PayPal account. If you do

Re (KMM111055512V64454L0KM) :ppNA

2014-01-21 Thread service
Dear , It appears you're contacting us with an email address that is not registered on your PayPal account. We cannot send any account information to an unregistered email address. You need to contact us from an email address that is registered and confirmed on your PayPal account. If you do

Apache Camel and Jboss FUSE IDE

2014-01-21 Thread gadido30
Hi All, I read in some blog that I can use FUSE IDE to write spring xml in Apache Camel, I will be glad to use FUSE IDE , but I don't understand how to install all together, ActiveMQ + Apache Camel + FUSE IDE Is there good guide (step by step) how to install and use all together? Best

RE: Apache Camel and Jboss FUSE IDE

2014-01-21 Thread Ravindra.Godbole
Once you install Fuse IDE, you can create Camel specific projects and also create Camel Context xml. -Original Message- From: gadido30 [mailto:gadid...@gmail.com] Sent: Wednesday, January 22, 2014 11:36 AM To: users@camel.apache.org Subject: Apache Camel and Jboss FUSE IDE Hi All, I

RE: Apache Camel and Jboss FUSE IDE

2014-01-21 Thread gadido30
Thank You, Ok , Then what should I load in AcriveMQ and Camel? How do I use what I save in Fuse IDE with ActiveMQ and Camel? Gadi -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-and-Jboss-FUSE-IDE-tp5746328p5746330.html Sent from the Camel - Users mailing list

Re: Apache Camel and Jboss FUSE IDE

2014-01-21 Thread Sanjay Bhattacharya
In FUSE IDE, you create a Camel project using the maven archetypes. The archetypes are like templates that set the basic project for you. They create a standard Maven project. So if you choose camel-archetype-activemq, it will setup all the requisite jars (for Camel and ActiveMQ) using Maven