Re: camel-cache questions

2012-08-03 Thread helander
Christian, thank you very much. The provided link was very helpful. Thanks Lars -- View this message in context: http://camel.465427.n5.nabble.com/camel-cache-questions-tp5716755p5716823.html Sent from the Camel - Users mailing list archive at Nabble.com.

Packaging routes for deployment

2012-08-03 Thread Fitzcaraldo
Hi I'm exploring strategies for packaging routes for deployment in as .war. We have a parent POM with multiple child projects each representing a single route and each with its own POM. In general each child route is built with its own camel-context. We want to be able to deploy some but not all

Re: Is it possible to create a custom DataFormat to translate a message into a BlobMessage?

2012-08-03 Thread Pontus Ullgren
I am talking about the (spring) jms message converter used by the jms component to create jms messages is handed the correct session. See the messageConverter option on the JMS component page. Best regards Pontus Send from my phone Den 4 aug 2012 00:35 skrev "Christian Müller" : > I don't think a

Re: ActiveMQ routes performance

2012-08-03 Thread Ben O'Day
tough to say given the unknowns about your setup, but here are a couple of things to consider... -for kahadb, set enableJournalDiskSyncs to false to get much better throughput -try fewer consumer threads...100 is a lot and you generally have diminished/negative results with larger thread counts -t

Re: Simple camel app for the Olympics

2012-08-03 Thread Christian Müller
Awesome, looks cool... Best, Christian On Fri, Aug 3, 2012 at 6:52 PM, Bilgin Ibryam wrote: > Hi all, > > Based on camel-twitter example I created a simple Camel application that > displays twitter images about London 2012 Olympics. > You can see the app running here [1] or read my post about i

Re: Is it possible to create a custom DataFormat to translate a message into a BlobMessage?

2012-08-03 Thread Christian Müller
I don't think a Converter is the right choice, if you need a JMS connection for this. How should the Connector know which broker url should be used? You cannot inject dependencies into your converter... Best, Christian On Fri, Aug 3, 2012 at 8:21 AM, Pontus Ullgren wrote: > Hello, > > Sorry for

Re: camel-cache questions

2012-08-03 Thread Christian Müller
This should help: http://camel.apache.org/content-enricher.html Best, Christian On Fri, Aug 3, 2012 at 10:05 AM, helander wrote: > Hi, > > first of all, I guess that a cache instance is accessable from components > in the same VM, i.e. not bounded to a specific camel context or route? > > By b

Re: Camel CXF: In-VM

2012-08-03 Thread Christian Müller
Sorry, I didn't catch your question... Sent from a mobile device Am 03.08.2012 17:48 schrieb "objectorange" : > I have a WSDL-first web service generated by the cxf-codegen-plugin's > wsdl2java (and implemented). I have configured to use it within a spring > beans.xml as such: > > xmlns:msv=

Re: Simple camel app for the Olympics

2012-08-03 Thread Bruno Borges
I already forked the project on GitHub to use as a demo on my talk at #JavaOne, if you don't mind!! :-) *Bruno Borges* (11) 99564-9058 *www.brunoborges.com* On Fri, Aug 3, 2012 at 4:07 PM, Bruno Borges wrote: > As the guy who started the Camel Twitter component, I'm really impressed > with y

Re: Simple camel app for the Olympics

2012-08-03 Thread Bruno Borges
As the guy who started the Camel Twitter component, I'm really impressed with your use case. Didn't imagine that it could give others an opportunity to build great stuff. Well done dude!!! *Bruno Borges* (11) 99564-9058 *www.brunoborges.com* On Fri, Aug 3, 2012 at 1:52 PM, Bilgin Ibryam wrot

Re: Polling consumer: how to recognize an empty directory

2012-08-03 Thread Henryk Konsek
> Not with filter but I can check file name in some processor. Ok, I get it :) I was wondering whether is it possible to achieve this behavior with File component only. Laters. -- Henryk Konsek http://henryk-konsek.blogspot.com

Re: Polling consumer: how to recognize an empty directory

2012-08-03 Thread michal.warecki
Not with filter but I can check file name in some processor. "sendEmptyMessageWhenIdle" is almost the same idea but is automatic and doesn't produce message when files are in the directory. It is of course better solution. -- View this message in context: http://camel.465427.n5.nabble.com/Poll

Re: Simple camel app for the Olympics

2012-08-03 Thread Hadrian Zbarcea
Awesome :) Hadrian On 08/03/2012 12:52 PM, Bilgin Ibryam wrote: Hi all, Based on camel-twitter example I created a simple Camel application that displays twitter images about London 2012 Olympics. You can see the app running here [1] or read my post about it [2] :) [1] tinyurl.com/camelympics

Re: URISupport.normalizeUri different result from camel 2.8.2 to 2.10.0

2012-08-03 Thread Henryk Konsek
Hi, > when normalizing a uri with URISupport.normalizeUri which contains %26 in > one of its parameters the entity is transformed to '&' and essentially lost > from the parameter value; Yes, this is bug. And actually it is not so easy to fix, since due to some hacks (like CAMEL-4954) that exists

Re: Camel CXF: In-VM

2012-08-03 Thread objectorange
I tried adding the serviceClass too (figured that was important): http://company.com/infrastructure/services/hash"; id="HashService-InVMBinding" wsdlURL="HashService.wsdl" serviceName="hsi:HashService" endpointName

MyBatis Component Bug: consumer.onConsume hits error, transactions are committed instead of rollback

2012-08-03 Thread ganesan
Hi Camel 2.10 version: When the onCosume , sql hits error , instead of rolling back, the transaction gets committed. This results in unwarranted transaction integrity issues. if you multiple comma separted statements, if the error is hit , the earlier statement partial updates are committed. Wors

Re: Camel CXF: In-VM

2012-08-03 Thread objectorange
Correction...the msv is an hsi: http://vediscovery.com/infrastructure/services/hash"; id="HashService-InVMBinding" wsdlURL="HashService.wsdl" serviceName="hsi:HashService" endpointName="hsi:HashServicePort">

Camel CXF: In-VM

2012-08-03 Thread objectorange
I have a WSDL-first web service generated by the cxf-codegen-plugin's wsdl2java (and implemented). I have configured to use it within a spring beans.xml as such: http://company.com/infrastructure/services/hash"; id="HashService-InVMBinding" wsdlURL="Ha

ActiveMQ routes performance

2012-08-03 Thread Xenofon Papadopoulos
Sorry in advance if I should have posted that in ActiveMQ list, but here is our case. We are running the same test with two different setups: Setup 1: We are using a single ActiveMQ broker and a single Camel with the routes: from( "jetty://http://..."; ).inOnly( "activemq:queue:queue

Re: Is it possible to create a custom DataFormat to translate a message into a BlobMessage?

2012-08-03 Thread brenthale
Don't be sorry. I'm still learning and I appreciate the advice. I will explore the message converter. Thanks, - Brent -- View this message in context: http://camel.465427.n5.nabble.com/Is-it-possible-to-create-a-custom-DataFormat-to-translate-a-message-into-a-BlobMessage-tp5716679p57

Re: Polling consumer: how to recognize an empty directory

2012-08-03 Thread Hilde
Many thanks, the option /sendEmptyMessageWhenIdle/ helped for me. Inside the route I can check the empty message as you can see below: .choice() .when(body().isNull()) .setHeader(CamelHeader.ANY_MESSAGE, simple("Directory is empty and transfer is going to finish!")) .to("seda:"

Re: Polling consumer: how to recognize an empty directory

2012-08-03 Thread Henryk Konsek
> In Camel >= 2.0 "sendEmptyMessageWhenIdle" is a way to go :) *2.9 -- Henryk Konsek http://henryk-konsek.blogspot.com

Re: Polling consumer: how to recognize an empty directory

2012-08-03 Thread Henryk Konsek
> Just an idea: > > - before pooling, create a file with specified name, for example > /TEST-POOLING/ and skip this file while processing. If there is only test > file in directory, you will get /CamelBatchComplete/. > > - simpler: before starting the route, check if there is any file in > particul

Re: routing mail with camel on fuse esb

2012-08-03 Thread ychawla
Hi Mathieu, Not sure why you are getting an unknownhostexception. Can you telnet to the URL: telnet smtp.gmail.com 587 Also, I think port 587 on gmail is running on TLS. Maybe you need to use smtps? Thanks, Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/routing-m

Re: Polling consumer: how to recognize an empty directory

2012-08-03 Thread michal.warecki
Just an idea: - before pooling, create a file with specified name, for example /TEST-POOLING/ and skip this file while processing. If there is only test file in directory, you will get /CamelBatchComplete/. - simpler: before starting the route, check if there is any file in particular directory :

Re: Polling consumer: how to recognize an empty directory

2012-08-03 Thread Achim Nierbeck
Hi Hilde, there is this flag "sendEmptyMessageWhenIdle" to set on the file endpoint. This way you can tell wether the route is idling and therefore are able to stop. regards, Achim 2012/8/3 Hilde : > Hello folks! > > We create a polling consumer route via a dynamic router. When the transfer > is

Polling consumer: how to recognize an empty directory

2012-08-03 Thread Hilde
Hello folks! We create a polling consumer route via a dynamic router. When the transfer is finished we recognize the end by the header /CamelBatchComplete/ and we are able to stop the route. But imagine the case when the directory of polling is empty. How can I find out that to stop the route rapi

Re: soap over jms

2012-08-03 Thread bhushand
Thanks Willem Thanks Pontus --Bhushan -- View this message in context: http://camel.465427.n5.nabble.com/soap-over-jms-tp5715942p5716759.html Sent from the Camel - Users mailing list archive at Nabble.com.

camel-cache questions

2012-08-03 Thread helander
Hi, first of all, I guess that a cache instance is accessable from components in the same VM, i.e. not bounded to a specific camel context or route? By big question is related to the following scenario: I have a set of CXF Endpoints and associated routes. At the end of the routes, a request/rep

Re: CxfRsProducer is not thread safe

2012-08-03 Thread Sergey Beryozkin
On 03/08/12 10:26, Sergey Beryozkin wrote: Hi On 02/08/12 23:42, dumi_p wrote: Hi, In the mean time, I tried to use jaxrs:client, but got into another problem. Seems like accepts only interfaces for the serviceClass attribute, so I created a new interface it can create proxies from concrete c

Re: URISupport.normalizeUri different result from camel 2.8.2 to 2.10.0

2012-08-03 Thread Marco Crivellaro
can you please let me know if this is how it should work and therefore camel 2.8.2 was buggy? I just need to know if I have to find a workaround until a bugfix is release or instead I am implementing it in the wrong way. Thank you. -- View this message in context: http://camel.465427.n5.nabble

Re: CxfRsProducer is not thread safe

2012-08-03 Thread Sergey Beryozkin
Hi On 02/08/12 23:42, dumi_p wrote: Hi, In the mean time, I tried to use jaxrs:client, but got into another problem. Seems like accepts only interfaces for the serviceClass attribute, so I created a new interface it can create proxies from concrete classes, but it needs a cglib-nodep for it