Re: Retrieve Caller Ip Address

2014-02-16 Thread Ranabroto
Hi Thank you so much :) it worked perfectly -- View this message in context: http://camel.465427.n5.nabble.com/Retrieve-Caller-Ip-Address-Camel-Reslet-tp5747272p5747367.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: DataFormat Versus TypeConverters

2014-02-16 Thread yagyesh
By calling a service over http , the response which i am getting is of format: [{a:1,b:2,c:3},{a:4,b:5,c:6}] So to map this i have public void configure() { from(direct:ab) .setHeader(HTTP_URI, simple(baseUrl + /${header.aa}))

Re: JSON - Jackson return list rather than POJO

2014-02-16 Thread yagyesh
Can i get more insight the way this problem is solved ? I have posted a similar question in camel forum (http://camel.465427.n5.nabble.com/DataFormat-Versus-TypeConverters-td5747307.html#a5747369) -- View this message in context:

RE: Confused with Camel in Spring/OSGI

2014-02-16 Thread Mangin, Franck
For anyone going through this thread in the future, Virgo is an evolution of Spring DM. The BundleAware interface that camel-spring is relying on has been moved into a different package in the embedded Virgo version of Spring DM (somewhere under a blueprint package). The right approach then

Proper way to use velocity formatters like NumberTool

2014-02-16 Thread Christopher Piggott
Hi, What's the proper way to use formatters in a camel-velocity template if you are NOT using injection (e.g. spring or guice)? I have seem a few examples including one where an instance of NumberTool is passed through the headers. Seemed very hacky to me, it seems like there must be a cleaner

Re: Spring AMQP Apache Camel Component Released

2014-02-16 Thread deckerego
This issue does appear to be fairly widespread and is documented as Issue #31 https://github.com/Bluelock/camel-spring-amqp/issues/31 in GitHub. If you could, could you verify that VitorCardoso's work-around works? It's posted at

Re: How to return null element with Camel-CXF

2014-02-16 Thread Chubutin
Hi, thanks for your reply. IMHO I thinks It could be a valid response because if you return a wrapper with an instance of your responde with values elements inside you should check in the client the inners elements for avoid an NPE. If you response a null element inside the wrapper, when you

RE: Confused with Camel in Spring/OSGI

2014-02-16 Thread Willem Jiang
Hi Franck, Thanks for sharing these with us. This key to let Camel run with OSGi is inject the BundleContext rightly. Do you mind creating a simple patch with the test case to verify it? I’d be happy to review it and merge it to the master branch. -- Willem Jiang Red Hat, Inc. Web:

RE: what does META-INF.cxf mean? in import-package of osgi

2014-02-16 Thread Siano, Stephan
Actually it means that there is a directory META-INF/cxf that is exported from some CXF bundle. A spring based scenario needs to include some of the files in there with the scenario bundle's classloader, therefore this import package is needed. The maven bundle plugin cannot find this reference

RE: what does META-INF.cxf mean? in import-package of osgi

2014-02-16 Thread Willem Jiang
You to need to specify package import of META-INF.cxf” if you use CXF 2.6.x. CXF bus can look up the files itself since then. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English)

Re: OOM issue due to MemoryIdempotentRepository

2014-02-16 Thread Chirag Dewan
Hi All, Any views on this? Actually my previous mail is not understandable. Let me rephrase the issue. I am using consumer template to consume single file using fileName property. I have a single instance of consumerTemplate and I call doneUoW and stop after consuming the file. I am running

Re: OOM issue due to MemoryIdempotentRepository

2014-02-16 Thread Claus Ibsen
Hi You should likely reuse the consumer template instead. As this FAQ applies to it too http://camel.apache.org/why-does-camel-use-too-many-threads-with-producertemplate.html On Mon, Feb 17, 2014 at 8:00 AM, Chirag Dewan chirag.dewa...@yahoo.in wrote: Hi All, Any views on this? Actually my

Re: OOM issue due to MemoryIdempotentRepository

2014-02-16 Thread Chirag Dewan
Hi Claus, So I dont need to start/stop the template for every file? Right now I create a consumerTemplate at satrtup and then on every method call(responsible for consuming file) I start the template,consume the file(template.receive) and stop the template. Is this the right approach?