Aw: Re: Efficient transport for remoting behind firewall ?

2013-11-22 Thread Garbage
Thanks for your suggestion.   I think I understand why you go for stomp and mqtt. Stomp being text oriented will be easy to trace and read. Mqtt has its origin in m2m communication and is ideally suited for low bandwidth lines with perhaps not ideal quality. And both are for example supported

Re: Stream Caching when uploading a binary file

2013-11-22 Thread ramrubio
Hi Claus, running with -XX:MaxPermSize=256M file size is 378MB. My understanding was that files larger than 128KB were streamed for Camel version 2.12.1. Is this not the case? /Ramon -- View this message in context: http://camel.465427.n5.nabble.com/Stream-Caching-when-uploading-a-binary-f

Re: re-use route definition

2013-11-22 Thread Olaf
the right way :) @Override public void configure() throws Exception { from("file:data").to("file:data/output"); getContext().addRoutes(fileRoute);//can be injected } -- View this message in context: http://camel.465427.n5.nabble.com/re-use-route-definition-tp5743696

Re: re-use route definition

2013-11-22 Thread Olaf
Thanks for hint! What about composition of objects? Test doesn't work :( @Test() public void testRoute() throws Exception { template.sendBodyAndHeader("file:data", "foo bar", Exchange.FILE_NAME, "foo.txt"); Thread.sleep(3000); File target = new File("data/process

Re: re-use route definition

2013-11-22 Thread Claus Ibsen
Yes if you use Java RouteBuilder class you can use OO inheritance etc. Just create a abstract base class and add the shared logic in the configure method. And then extend this base class, and call super.configure() first. On Fri, Nov 22, 2013 at 4:28 PM, Olaf wrote: > Hello, > > what is the best

re-use route definition

2013-11-22 Thread Olaf
Hello, what is the best way to reuse a route with different parameters? Let's say I have many classes implementing RouteBuilder interface and add them all in camel-context.xml http://camel.apache.org/schema/spring";> ... Almost in every Route clas

Re: Send XML over HTTPS

2013-11-22 Thread henrik
For future reference: camel-http sent our request as POST, with a Host header. camel-http4 sent it as GET, without a Host header. Explicitly setting POST and the Host header solved our problem. -- View this message in context: http://camel.465427.n5.nabble.com/Send-XML-over-HTTPS-tp5741619p

OSGI camel-avro:2.12.1 AvroDataFormat:loadDefaultSchema

2013-11-22 Thread mabels
Hey, we use camel-avro on osgi-karaf. We use the OsgiDefaultContext and in a marshal(routentry) we get during runtime the exception: Can't set the shcema of AvroDataFormat with "+ className + ", as the class is not a subClass of SpecificData" so we try to figure out whats going on there and disc

Re: ProducerCache/LRUCache Memory leak ?

2013-11-22 Thread Hamid
Hi, I set the MAXIMUM_CACHE_POOL_SIZE to 50. I tested my Camel component with the new configuration. Unfortunately I still have the same problem. Using the Eclipse analyzer I analyzed several dumps and the following are results : - dump at 11h47 ==> 589 instances of org.apache.camel.util.LRUCach

Reading more files from aws-S3 than expected

2013-11-22 Thread Jesper Olsen
Hi I have a camel route in Spring XML, that reads files from aws-s3. Before starting the route, I placed a test file in S3: //drbucket/CamelPickupTest/Test1.XML The route looks like this: . . The route returns 2 files. It returns '//drbucket/CamelPickupTest/Test1.

Re: A simple Aggregator use case

2013-11-22 Thread Claus Ibsen
On Fri, Nov 22, 2013 at 1:08 PM, ChrisS wrote: > Many thanks for your quick response! The advice on using substring of body in > correlationExpression solves my problem. > > Indeed I believe all I need is already in Camel so I don't have to do any > coding except changing AggregationStrategy to my

Re: A simple Aggregator use case

2013-11-22 Thread Claus Ibsen
Hi You cannot do timeout based on the first exchange. Its currently based on the last exchange. Though we could add an option to the aggregator to allow using timeout on the first instead. Its a bit tougher to implement as it would require an improvement to TimeoutMap to support that as well. Fe

Re: A simple Aggregator use case

2013-11-22 Thread ChrisS
Many thanks for your quick response! The advice on using substring of body in correlationExpression solves my problem. Indeed I believe all I need is already in Camel so I don't have to do any coding except changing AggregationStrategy to my to enable my scenario. Other questions I have are rel

Re: ProducerCache/LRUCache Memory leak ?

2013-11-22 Thread Hamid
HI Claus, Thanks for this quick response. I'll try and let you know if it works? Regards On Fri, Nov 22, 2013 at 10:14 AM, Claus Ibsen wrote: > See this FAQ > > http://camel.apache.org/how-do-i-configure-the-default-maximum-cache-size-for-producercache-or-producertemplate.html > > You can reduc

Producer template error handling

2013-11-22 Thread kiranreddykasa
Hi I would like to know how to do error handling with producer template. I'm sending a message to activemq endpoint using 'requestBody' of producer template. Suppose if there is requestTimeout in activemq how can I catch that exception and build response?? - Regards kiran Reddy -- Vie

Re: ProducerCache/LRUCache Memory leak ?

2013-11-22 Thread Claus Ibsen
See this FAQ http://camel.apache.org/how-do-i-configure-the-default-maximum-cache-size-for-producercache-or-producertemplate.html You can reduce the size of the cache, as it holds 1000 by default. On Fri, Nov 22, 2013 at 10:11 AM, Hamid wrote: > Hi everybody, > > I'am using camel 2.5.0 with ser

ProducerCache/LRUCache Memory leak ?

2013-11-22 Thread Hamid
Hi everybody, I'am using camel 2.5.0 with servicemix-3.5.0-fuse. My camel component deployed in servicemix causes a memory leak. When I anlyze a dump with Eclipse Memory Analyzer I saw that there are 610 instances of *org.apache.camel.util.LRUCache that retains 20% of memory (173 MO).*Is there any

Re: Stream Caching when uploading a binary file

2013-11-22 Thread Claus Ibsen
You run out of memory when the file is loaded into memory, java.lang.OutOfMemoryError: Java heap space] How big is the file? And you could likely configure your JVM to have more memory. On Thu, Nov 21, 2013 at 11:54 PM, ramrubio wrote: > Camel version = 2.12.1 > > I'm using camel to implement

Re: Webservice and JMS on camel

2013-11-22 Thread suresh_camel
Hi find the following tutorial for ur reference. Example 1 : cxf web service Example 2 : cxf web service For Fixed Length files use one of the following,