Re: camel-quartz2 2.14.0 as a polling consumer for a JMS Queue

2014-10-02 Thread Charles Moulliard
Hi, You can't mix parameters of the JMS endpoint with the Quartz endpoint like you did. To be able to define when you would like to poll a queue, you should use the quartz2 endpoint with the enrich poll EIP partner from("quartz2:...") .pollEnrich("jms:queue:...") .to("") Regards, On Wed, Oct 1,

Re: camel-quartz2 2.14.0 as a polling consumer for a JMS Queue

2014-10-02 Thread Claus Ibsen
The JMS consumer is event driven so it reacts when a new message is on the queue. It only makes sense to use a CRON if you want to use that to control when the route is active and when its not active. For that see about route policy http://camel.apache.org/routepolicy On Wed, Oct 1, 2014 at 9:46

Re: UnitOfWork in Camel 2.14

2014-10-02 Thread Charles Moulliard
Hi Max, Is it called 3 times because an exception has been throw in the route ? Do you have a test case that we could use to have a look and reproduce the issue ? Regards, On Thu, Oct 2, 2014 at 5:21 AM, Max Bridgewater wrote: > Some progress on this. It appears that in Camel 2.14, there is n

Re: UnitOfWork in Camel 2.14

2014-10-02 Thread Claus Ibsen
No please read the javadoc of org.apache.camel.spi.SynchronizationRouteAware Its called 3 times because - before routing - after route - done (either onComplete or onFailure) On Thu, Oct 2, 2014 at 9:17 AM, Charles Moulliard wrote: > Hi Max, > > Is it called 3 times because an exception has been

What happens to exchange after vm timeout

2014-10-02 Thread bulutoprak
Hi, I have 2 bundles on karaf. Bundle 1 calls an endpoint defined by bundle2. Bundle1 - > to "vm1" Bundle2=> from "vm1" to "netty http request" to outside if vm1 endpoint call (in bundle1) gets timeout , what happens to vm2 exhange. I think it continous to be handled , so http service is c

Re: UnitOfWork in Camel 2.14

2014-10-02 Thread Charles Moulliard
That should be documented somewhere (maybe page oncompletion.html) as the javadoc is not sufficient enough as source of information for the end users. On Thu, Oct 2, 2014 at 9:33 AM, Claus Ibsen wrote: > No please read the javadoc of > org.apache.camel.spi.SynchronizationRouteAware > > Its call

Re: UnitOfWork in Camel 2.14

2014-10-02 Thread Claus Ibsen
javadoc is the main documentation of apis in java. But you are welcome to knock yourself on the Camel wiki if you like http://camel.apache.org/oncompletion.html On Thu, Oct 2, 2014 at 10:16 AM, Charles Moulliard wrote: > That should be documented somewhere (maybe page oncompletion.html) as the >

Camel CXF and CXF.XML

2014-10-02 Thread valerian.merkling
Hi ! There is something i don't understand about camel and cxf. While trying to secure my camel cxf endpoints, I found and example using It need its attribute "bus" to be set, and if i make no mistake it have to be defined with that kind of bean usually found in a cxf.xml. But i don't under

Camel tracer in Switchyard Project

2014-10-02 Thread miguelfdez
Hi! Following this documentation and example: https://camel.apache.org/tracer.html // https://camel.apache.org/tracer-example.html I'm trying to add a tracer to my project. With this approach I try to store each message exchange in the "CAMEL_MESSAGETRACED" table in the database. The compilation

Re: Migrating from CamelTestSupport to AbstractCamelTestNGSpringContextTests

2014-10-02 Thread Giorgio Vespucci
I posted the question to StackOverflow, too, at http://stackoverflow.com/questions/26158049/migrating-from-cameltestsupport-to-abstractcameltestngspringcontexttests . Thank you all On Tue, Sep 30, 2014 at 2:32 PM, Giorgio Vespucci < giorgio.vespu...@gmail.com> wrote: > Hi everybody > I've been u

No move, premove and moveFailed option are avaliable for file/sftp producer

2014-10-02 Thread atg roxx
Hi All, I have a requirement where I have to push a file to sftp sever in say tempA directory and once sftp is success move it to A directory. I have found that we have option like move, premove and moveFailed for file/sftp consumer, but dont have anything like that for producer. How could I a

Re: UnitOfWork in Camel 2.14

2014-10-02 Thread Max Bridgewater
Thanks for all the input. Much appreciated. I think I found an alternate explanation: the synchronization is being called for each sub-route. So, with the hello chain below, the synchronization is called for servlet:///bye, for direct:hello1, and for direct:hello2. To address this, I execute the o

RE: Migrating from CamelTestSupport to AbstractCamelTestNGSpringContextTests

2014-10-02 Thread Kuhtz, Andreas
Hi Giorgio, The test class: https://github.com/apache/camel/blob/master/components/camel-testng/src/test/java/org/apache/camel/testng/AbstractCamelTestNGSpringContextTestsPlainTest.java The definition of the camelContext used in the test: https://github.com/apache/camel/blob/master/components/cam

Re: No move, premove and moveFailed option are avaliable for file/sftp producer

2014-10-02 Thread Claus Ibsen
Hi See about tempFileName option at http://camel.apache.org/file2 On Thu, Oct 2, 2014 at 12:54 PM, atg roxx wrote: > Hi All, > > I have a requirement where I have to push a file to sftp sever in say > tempA directory and once sftp is success move it to A directory. > > I have found that we have

Re: No move, premove and moveFailed option are avaliable for file/sftp producer

2014-10-02 Thread atg roxx
Thanks Claus, Yes that helped. -Regards, Atg roxx On Thu, Oct 2, 2014 at 1:56 PM, Claus Ibsen wrote: > Hi > > See about tempFileName option at > http://camel.apache.org/file2 > > On Thu, Oct 2, 2014 at 12:54 PM, atg roxx wrote: > > Hi All, > > > > I have a requirement where I have to push a f

how to have multiple camel contexts with java config

2014-10-02 Thread dbremmen
Dear Camel Experts, I'm trying to group several camel routes in different camel contexts to avoid component name clashing. I know how to configure several RouteBuilder classes in the same Context extending From CamelConfiguration this way @Configuration public class CamelConfig extends Came

REST DSL Hello World Not working

2014-10-02 Thread Max Bridgewater
Hi, The following hello word example provided in the documentation does not seem to work well: Calling GET /say/bye returns "Error 405 Method Not Allowed". My guess is that the REST implementation does not allow methods with the exact same

Re: camel-cxf: Generic Service Endpoint Interface

2014-10-02 Thread Aki Yoshida
I am wondering you can simply use the transform feature of CXF to remove the extra element that you want to drop. http://cxf.apache.org/docs/transformationfeature.html#TransformationFeature-Droppingoutputandinputelements. 2014-10-01 15:25 GMT+02:00 Tobias Mahlmann : > HI list, > I'm currently tryi

Re: camel-cxf: Generic Service Endpoint Interface

2014-10-02 Thread Tobias Mahlmann
Thanks for your answer, but I actually didn't want to get rid of the derived methods, I want my endpoint to create proxy methods for these too (the web service actually implements the generic interface). Anyway: By ploughing through the camel-cxf code, I noticed that there's a switch in CxfEnd

Re: camel-quartz2 2.14.0 as a polling consumer for a JMS Queue

2014-10-02 Thread sandp
Thank Claus that helped. I'm trying to set a property below for Scheduled Delivery just before delivering to HornetQ *_JBM_SCHED_DELIVERY* I tried setting the property as a Header and Property on the Exchange Message neither worked. Is there is a camel option that can recognize a schedule? --

Re: Catching HttpHostConnectException from Camel Restlet component

2014-10-02 Thread junaid
I tried with version 2.13.2, but still I am getting the same exception. Than I moved to Camel Version 2.14.0. This time the stack trace is a bit different. Oct 03, 2014 11:44:05 AM org.restlet.ext.httpclient.internal.HttpMethodCall sendRequest WARNING: An error occurred during the communication wi

Re: Catching HttpHostConnectException from Camel Restlet component

2014-10-02 Thread junaid
Thanks. Yes I am now able to catch the Exception using the getException(), but the stacktrace log is printed. Is there anyway to disable this particular log? -- View this message in context: http://camel.465427.n5.nabble.com/Catching-HttpHostConnectException-from-Camel-Restlet-component-tp57572