Is onFinally() compulsory after doCatch()?

2013-07-01 Thread Tarun Kumar
my route looks like this: from(). .toTry().process() .doCatch(Exception.class) .to().to().process() .end() My questions are: 1. is .doFinally compulsory after doCatch()? 2. In my case, how does route know whether second .to() in line 4 is inside doCatch() or after doCatch()? 3. I am using cxfrs

Re: Camel CXFRS endpoint unable to produce JSON

2013-07-01 Thread Sergey Beryozkin
This is bizarre...Can you please double check the custom code you may have and see if "application/xml" is 'hiding somewhere' ? Can you do a sanity check and confirm it is this endpoint which is being invoked after all ? Any chance you can attach a working route (test) to JIRA ? Cheers, Sergey

Re: Aggregator: completionInterval

2013-07-01 Thread Claus Ibsen
Hi You can do as shown on this link: http://camel.apache.org/using-propertyplaceholder.html At the section: Using property placeholders for any kind of attribute in the XML DSL On Mon, Jul 1, 2013 at 6:10 PM, josacu wrote: > Hello everyone, > > I'm trying to use the completion interval proper

Mocking consumer endpoints

2013-07-01 Thread Bilgin Ibryam
Hi, with CamelTestSupport I can use isMockEndpointsAndSkip method to mock existing endpoints, but for mocking the consumer endpoint I still have to use AdviceWithRouteBuilder. Is there a method in CamelTestSupport that I can override and mock the consumer endpoints? Thanks Bilgin

Aggregator: completionInterval

2013-07-01 Thread josacu
Hello everyone, I'm trying to use the completion interval property of aggregator. I am successful using it like that: ... ... But this way doesn't allow my to use dynamic values for completion interval because it only accepts a long value. In similar properties like completionTimeout it is po

Re: camel-smpp in trx mode

2013-07-01 Thread sash_...@yahoo.com
Hadrian - I am eagerly waiting for the release of the SMPP component with TRX support. And I guess , this conversational state pattern is a better solutions. I am not sure how the listener at the producer side get handle to the "processor" ? - ~Sandeep -- View this message in context: htt

Re: Camel CXFRS endpoint unable to produce JSON

2013-07-01 Thread ajaysam
application/xml always works.. even if i am saying Produces json i still get output as xml On Mon, Jul 1, 2013 at 12:01 PM, Sergey Beryozkin-3 [via Camel] < ml-node+s465427n5735049...@n5.nabble.com> wrote: > So, if you replace all of @Produces("application/json") with > @Produces("application/

Re: Camel CXFRS endpoint unable to produce JSON

2013-07-01 Thread Sergey Beryozkin
So, if you replace all of @Produces("application/json") with @Produces("application/xml") and do curl -HAccept:application/xml ... then it works ? Sergey On 01/07/13 16:40, ajaysam wrote: I am sending the request through curl - it is setting Accept header as shown below curl -HAccept:appli

Testing a route that set a CamelJmsDestinationName header

2013-07-01 Thread fordm
Hi, I have the following camel route (in blueprint): where myProcessor is a Camel Processor that set the CamelJmsDestinationName header in the message depending on some content in the message body. It's simple, and it works when I deploy it (into Fuse ESB). But I want to write a test for this r

Re: Camel CXFRS endpoint unable to produce JSON

2013-07-01 Thread ajaysam
I am sending the request through curl - it is setting Accept header as shown below curl -HAccept:application/json http://pocman2.nsp.stf.bms.com:8080/CXF_REST-0.0.1-SNAPSHOT/webservices/Hello/SilpaY Hello is the path to refer to resource class We are stuck in this project and any help will be a

Re: Jetty asynchronous processing with seda

2013-07-01 Thread Willem jiang
pollEnrich doesn't use any data of the current exchange, which means the setHeader doesn't take effect on pollEnrich. I think you should check the message body, if it is null then set the message header with the response code you want. -- Willem Jiang Red Hat, Inc. FuseSource is now part o

Re: MongoDB component found but TypeConverter is NoClassDefFoundError

2013-07-01 Thread PMulido
Camel 2.11.0 using camel-mongodb-2.11.0.jar. The odd thing is that I can do a "get" from mongodb. It's when the TypeConverters are being invoked that the error is happening. -- View this message in context: http://camel.465427.n5.nabble.com/MongoDB-component-found-but-TypeConverter-is-NoClass

Jetty asynchronous processing with seda

2013-07-01 Thread LeviStrauss
Hi, I would like to create a kind of proxy which receives the requests, sends it to a seda process and waits for the response. How can I send custom error code back? This doesn't work with camel 2.4, I always get 200 OK when file shows up in dir within 30 seconds, if not then I get 500 Server Erro

RE: camel sftp privateKeyFile - load from classpath

2013-07-01 Thread Siano, Stephan
Hi, I have created another issue that contains an extension (including patch) which makes it possible to use a Java KeyPair instead of an OpenSSH private key file: https://issues.apache.org/jira/browse/CAMEL-6502 I have also looked into the jsch HostKeyRepository thing, but that interface is a

Re: onException in camel

2013-07-01 Thread Tarun Kumar
Hi Chrisrtian, Thanks for the reply. Issue in my case was, handleException of ExceptionHandler class had IOException as method parameter. I removed this method parameter from handleException method and it worked. I was wondering if there is any way to pass parameters to handleException method bea

Exception list ?

2013-07-01 Thread valerian.merkling
Hi ! I'm trying to make my bus more robust, mostly against bad configuration / unavailable service. I use lots of http, cxf, file and mail (smtp) endpoints, but I'm not able to find any doc listings exceptions they can throw, and when. Does that kind of documentation exist ? and where ? Regard