Re: Dynamic layout input to flatpack component

2011-11-06 Thread Raman Gupta
In this case, I don't think dynamic URI is sufficient. I would need to build the pzmap.xml file dynamically and provide it to the flatpack endpoint, preferably as an injectable lookup bean that would implement some interface like this: interface LookupPzMap { Resource getPzMap(Message m); } T

Re: Dynamic layout input to flatpack component

2011-11-06 Thread Claus Ibsen
Hi Check this FAQ http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html Would it not be possible to specify the flatpack pzmap file in the uri and then use recipient list, to have dynamic endpoints? On Mon, Nov 7, 2011 at 12:20 AM, Raman Gupta wrote: > I'd like to use camel in a highly c

Escaping parameters in route URI

2011-11-06 Thread suman
Hello All, Iam trying to use amqp component of camel. When iam trying to define route using the below mentioned URI amqp:queue:*BURL:direct://lb-push//pingqueue?routingkey="abcd"* But unfortunately camel complains that it cant set routingkey parameter on amqp component where as the routingkey para

Re: Camel JBI Interaction

2011-11-06 Thread diwakar
Hi, Found one solution. Use servicemix-camel-2011.01-installer.zip. It has Camel 2.6. To use Camel 2.8, the camel-core and camel-spring jars of 2.8 can be replaced in servicemix-camel-2011.01-installer.zip (and jbi.xml). Or build servicemix-camel locally with the

Re: Writing own Camel Components

2011-11-06 Thread xuhb
You should make sure your component has been registed in Camel's registry with the name same as the uri's prefix; for example: given a uri as "aaa:bbb?para=...", you must make sure your component has registed with the name "aaa"; camel provide several mechanism to regist component, if you

Re: Basic cxf-tomcat-example.html: need explaination. 1M Thanks.

2011-11-06 Thread Willem Jiang
On 11/7/11 1:26 AM, H Paul wrote: In this example http://camel.apache.org/cxf-tomcat-example.html http://camel.apache.org/cxf-tomcat-example.html No problem with web.xml No problem with CamelRoute.java Not sure How thing tie together? camel-config.xml This file is just create a camel context

Re: Writing own Camel Components

2011-11-06 Thread deckerego
Believe it or not, I started writing a RabbitMQ component on Friday as well ;) Small world. In defense of Michael, I can totally understand why one would want to build a component based on the RabbitMQ client libraries. I've been trying to work with the Qpid libraries talking to a RabbitMQ broker

Re: Possible memory leak in org.apache.activemq.pool.PooledSession

2011-11-06 Thread Sergey C.(Vancouver)
Hi Claus, Here is the link to minimal Maven project we used to reproduce memory leak in PooledSession http://dl.dropbox.com/u/4387531/camel-memory-leak.zip Sergey -- View this message in context: http://camel.465427.n5.nabble.com/Possible-memory-leak-in-org-apache-activemq-pool-PooledSession-

Re: Basic cxf-tomcat-example.html: need explaination. 1M Thanks.

2011-11-06 Thread Glen Mazza
Hi, for a CXF-only web service hosted on Tomcat (sans Camel), Note #2 here: http://www.jroller.com/gmazza/entry/web_service_tutorial#notes shows how the URL is constructed. With Camel, (A), (B), and (C) are the same, but for (D), one of the links that you gave (http://camel.apache.org/cxf-tomc

Basic cxf-tomcat-example.html: need explaination. 1M Thanks.

2011-11-06 Thread H Paul
In this example http://camel.apache.org/cxf-tomcat-example.html http://camel.apache.org/cxf-tomcat-example.html No problem with web.xml No problem with CamelRoute.java Not sure How thing tie together? camel-config.xml and http://localhost:8080/camel-example-cxf-tomcat-2.8.1/webservices/inciden

Re: Writing own Camel Components

2011-11-06 Thread Hadrian Zbarcea
Michael, did you take a look at this [1] too? Hadrian [1] https://github.com/lshift/camel-rabbitmq On 11/06/2011 05:43 PM, Michael Prieß wrote: Hello, the reason why I started to build a own component for RabbitMQ is that the actual AMQP Component is based on the QPID Client Library which is

Dynamic layout input to flatpack component

2011-11-06 Thread Raman Gupta
I'd like to use camel in a highly configurable application. As an example, one component I'd like to use is the Flatpack component. The layout (.pzmap.xml) information will be generated from user-entered information stored in a database or other data structure, and this lookup may vary depending on

Re: Writing own Camel Components

2011-11-06 Thread Michael Prieß
Hello, the reason why I started to build a own component for RabbitMQ is that the actual AMQP Component is based on the QPID Client Library which is not full compatible with RabbitMQ. For my component I used auto discovery and it all works well without parameters. But with the param I got this e

Re: Writing own Camel Components

2011-11-06 Thread Jason Whaley
Also, if you are intent on writing a custom component, did you either add your component to the CamelContext with the name of "rabbitmq" or use the auto discovery by creating a file in META-INF as described here http://camel.apache.org/writing-components.html ? On Sun, Nov 6, 2011 at 4:07 PM, Mich

Re: Writing own Camel Components

2011-11-06 Thread Jason Whaley
Instead of writing your own component have you tried using or improving the amqp component? http://camel.apache.org/amqp.html On Sun, Nov 6, 2011 at 4:07 PM, Michael Prieß < mailingliste...@googlemail.com> wrote: > Hello, > > I started today to write a new Camel Component for RabbitMQ to Consume

Writing own Camel Components

2011-11-06 Thread Michael Prieß
Hello, I started today to write a new Camel Component for RabbitMQ to Consume and Produce Messages from the message broker. At the moment I not understand how to put in parameters. When I try to append the parameter hostname Exam: .to("rabbitmq:foo?hostname=localhost") I get the following exce

Re: Adding File name filter for RouteEndpointDefinition

2011-11-06 Thread tkatva
Thank you! :) You're the best... This include solves all my problems. You saved my day. Keep up the good work. Best Regards Tuomas -- View this message in context: http://camel.465427.n5.nabble.com/Adding-File-name-filter-for-RouteEndpointDefinition-tp4968230p4968355.html Sent from the Came

Re: Adding File name filter for RouteEndpointDefinition

2011-11-06 Thread Claus Ibsen
On Sun, Nov 6, 2011 at 11:49 AM, tkatva wrote: > Thank you for your quick answer... Does the generic file filter allow me to > download only those files that I have specified in the filter ? For example > if I have Ftp-endpoint with numerous files and I wan't to download and > remove on those file

Re: Adding File name filter for RouteEndpointDefinition

2011-11-06 Thread tkatva
Also one question comes to mind... How can I add this GenericFileFilter to my endpoint ? Can I add this to my endpoint ? Can I add it programmatically ? And how can I do it ? Thank you very much... :) Best Regards Tuomas Katva -- View this message in context: http://camel.465427.n5.nabble.com/A

Re: Adding File name filter for RouteEndpointDefinition

2011-11-06 Thread Claus Ibsen
Hi See this page http://camel.apache.org/file2 The section about using GenericFileFilter To register a custom file filter in the registry, then you can use the SimpleRegistry with the CamelContext Map simpleRegistry = new SimpleRegistry(); camel = new DefaultCamelContext(simpleRegistry); The

Adding File name filter for RouteEndpointDefinition

2011-11-06 Thread tkatva
I have code where I dynamically try to add Endpoints and Endpoint Filters to CamelContext. But haven't been able to get FileFilter working on File- or FtpEndpoint's. For example I want to be able to filter only files with given parameters, for example I want to download files only with txt extensio

Re: Tracing exceptions

2011-11-06 Thread Claus Ibsen
On Fri, Nov 4, 2011 at 2:50 PM, ahiebl wrote: > Hi, > > we add a tracer to our camel context that logs to a JPA table, i.e. > tracer.setUseJpa(true); > This works fine. > > But when a bean in the traced route throws an exception (e.g. > NullPointerException) I would actually expect to see that in