Re: Wait for transaction commit when putting messages on JMS queue using inOnly

2012-09-07 Thread Marco Zapletal
On 06.09.2012 11:33, Claus Ibsen wrote: Hi I assume the custom logic cannot participate in the same TX as the activeMQ? Right. The custom logic should only execute upon successful completion of the transaction. You can use onCompletion to store the monitoring after the routing has compl

stop a quartz route

2012-09-07 Thread Marco Crivellaro
Hi All, my Camel context is making use of a watchdog to monitor the status of the application. In case a flag is set I would like to stop the watchdog, I cannot find a way to stop the route. The watchdog have been implemented using camel-quartz: from("quartz://watchdog/checkpendingexchanges?trigge

Re: File and async/ woes

2012-09-07 Thread Ralf Steppacher
Hello Claus, If I want 5 files to be processed in parallel line by line, every line taken care of asynchronously, don't I need the construct? If threads and split refer to the same thread pool, then of course I would not have to worry about finding the sweet spot in terms of number of threads in

Annotation @MockEndpointsAndSkip not working in Camel 2.10.0

2012-09-07 Thread Ralf Steppacher
Hi, there appears to be a bug in CamelSpringTestContextLoader::handleMockEndpointsAndSkip(..). It tests for MockEndpoints.class instead of MockEndpointsAndSkip.class. Line 433: if (testClass.isAnnotationPresent(MockEndpoints.class)) { should be if (testClass.isAnnotationPresent(MockEndpointsAn

ftp: with option localWorkDirectory

2012-09-07 Thread Hilde
Hello everybody! Because we have to transfer large files from ftp server that caused outOfMemory exceptions I have read that the ftp component option *localWorkDirectory *can remedy this. However could anybody please explain me why now some downloaded files via ftp: component and option *localWor

Re: Annotation @MockEndpointsAndSkip not working in Camel 2.10.0

2012-09-07 Thread Claus Ibsen
Hi I think its fixed on trunk and 2.10 branch. Do you mind checking that? http://camel.apache.org/source.html On Fri, Sep 7, 2012 at 4:17 PM, Ralf Steppacher wrote: > Hi, > > there appears to be a bug in > CamelSpringTestContextLoader::handleMockEndpointsAndSkip(..). It tests > for MockEndpoint

RESTful route with Apache CXF

2012-09-07 Thread Ralf Steppacher
Hello all, a quick question about using RESTful endpoints: Given the route and resource definition below, I end up with the JSON representation of the PriceRequestMessage in the exchange body, not the Java object of type PriceRequestMessage. Is there a way to keep the object as it was created by t

Re: Getting consumer endpoint details or exchange headers in custom ExceptionHandler

2012-09-07 Thread vishal1981
Thanks for your replies. I am indeed using consumer.exceptionHandler however when I configure an FTP endpoint to FTP to a non-existing FTP server my exception handler is never fired. Is it because I have to add an additional PollingConsumerPollStrategy to handle such kind of exceptions? I am not su

Re: RESTful route with Apache CXF

2012-09-07 Thread Sergey Beryozkin
Hi On 07/09/12 15:35, Ralf Steppacher wrote: Hello all, a quick question about using RESTful endpoints: Given the route and resource definition below, I end up with the JSON representation of the PriceRequestMessage in the exchange body, not the Java object of type PriceRequestMessage. Is there

Difference between exceptionHandler and pollStrategy

2012-09-07 Thread vishal1981
Hi, I am using FTP2 and File2 endpoints. I want to catch exceptions such as server not reachable or directory does not exist etc. If I use the "exceptionHandler" in the URI for the endpoint my custom Exception handler never gets invoked. If I use the "pollStrategy" in the URI it does get invoked f

Change Sql Component BLOB datatype to XML for Aggregator serialization

2012-09-07 Thread AlanFoster
Hi All I am currently using camel's sql-component in order to define a aggregationRepositoryRef for the aggregator component. The aggregator currently stores all of the information in the Aggregator table as a BLOB. Is there a way to change this? The documentation here http://camel.apache.org/sq