JMS - replyToDestinationSelectorName - how to set the value?

2012-03-13 Thread Peter Bromander
Hi I'm implementing a request reply over JMS using the replyToDestinationSelectorName to correlate the respons. Now I would like to controll the actual value set on the correlation property. i.e something like replyToDestinationSelectorValue. Is there a way to do this? Looking at the code it

Re: WireTap threads number keeps on growing

2012-03-13 Thread ShlomiJ
OK, I'm a bit more knowledgeable now... The first issue is that I thought I created a pool of 1 thread. ShlomiJ wrote ThreadPoolBuilder tpBuilder = new ThreadPoolBuilder(this.context); ExecutorService wiretapThreadpool =

Re: Questions regarding usage of camel along with OSGI Declarative services ?

2012-03-13 Thread sanketh.reddy
Thanks for clearing that out anyway i will be using blueprint for my service dependency management . It has all the spring goodies so porting my project will be easy . Main reason for choosing blueprint was avoiding different xml's for components and camel routes ,beans ..etc . while in blueprint

Re: JMS - replyToDestinationSelectorName - how to set the value?

2012-03-13 Thread Claus Ibsen
On Tue, Mar 13, 2012 at 9:27 AM, Peter Bromander peter.broman...@gmail.com wrote: Hi I'm implementing a request reply over JMS using the replyToDestinationSelectorName to correlate the respons. Now I would like to controll the actual value set on the correlation property. i.e something like

Re: Writing to local syslog with camel

2012-03-13 Thread karpaczio
Problem with this solution is that SyslogAppender limits packet to 1024bytes. Additionally I do not like the idea, that part of the camel configuration is kept in *log4j.configuration (appender, format), but this argument is very personal :D -- View this message in context:

Re: WireTap threads number keeps on growing

2012-03-13 Thread Claus Ibsen
On Tue, Mar 13, 2012 at 9:13 AM, ShlomiJ shlomij...@gmail.com wrote: OK, I'm a bit more knowledgeable now... The first issue is that I thought I created a pool of 1 thread. ShlomiJ wrote ThreadPoolBuilder tpBuilder = new ThreadPoolBuilder(this.context); ExecutorService wiretapThreadpool =

Re: WireTap threads number keeps on growing

2012-03-13 Thread Claus Ibsen
Hi See ticket https://issues.apache.org/jira/browse/CAMEL-5079 On Tue, Mar 13, 2012 at 11:00 AM, Claus Ibsen claus.ib...@gmail.com wrote: On Tue, Mar 13, 2012 at 9:13 AM, ShlomiJ shlomij...@gmail.com wrote: OK, I'm a bit more knowledgeable now... The first issue is that I thought I created a

Re: Questions regarding usage of camel along with OSGI Declarative services ?

2012-03-13 Thread Christian Schneider
Btw. which OSGi server do you use. If you do not use it already I can really recommend using Apache Karaf. Installing camel on it is just as easy as executing two commands. I have a tutorial for camel with Apache Karaf if you want to try it: http://www.liquid-reality.de/x/G4Bk Christian Am

Re: Questions regarding usage of camel along with OSGI Declarative services ?

2012-03-13 Thread sanketh.reddy
i have been using apache servicemix for its ESB for a long time . But , never used its osgi features till now - thanks sanketh mail : san...@gmail.com -- View this message in context:

Bean invocation

2012-03-13 Thread jmh
Hello, suppose this route : from(file://{{extra.inputDir}}) .routeId(start) .*bean*(EnterpriseServiceUtils.class,define).. simple question to be sure : Is this kind of bean definition creates a singleton or Camel creates a new

Re: Bean invocation

2012-03-13 Thread Claus Ibsen
On Tue, Mar 13, 2012 at 1:07 PM, jmh jeanmarc.her...@nrb.be wrote: Hello, suppose this route :        from(file://{{extra.inputDir}})                        .routeId(start)                        .*bean*(EnterpriseServiceUtils.class,define).. simple question to be sure : Is this

Error using apache-cxf w. Camel 2.9.1

2012-03-13 Thread hefiso
Hi When upgrading from Apache Camel 2.9.0 to 2.9.1 I suddently get an error when using camel-cxf endpoints. I have defined this endpoint: and use it in this route: When running my JUnit tests (extending CamelSpringTestSupport) I get this exception: When I debug my test I see that the

Re: Error using apache-cxf w. Camel 2.9.1

2012-03-13 Thread Claus Ibsen
Hi Do you use any interceptor in your unit test such as indicate in the stacktrace? InterceptSendToEndpoint Can you post the code snippet where you use that? On Tue, Mar 13, 2012 at 2:25 PM, hefiso henrik.filtenborg.soren...@gmail.com wrote: Hi When upgrading from Apache Camel 2.9.0 to

Re: JMS - replyToDestinationSelectorName - how to set the value?

2012-03-13 Thread Peter Bromander
Hi thanks for the quick reply. So what you're saying is that currently the only way to correlate a JMS reply is using msgId, corrId or the UUID? We have a case where we would like to correlate using a JMS property e.g myCorrId and as a said before we would like to control the value of this

Re: WireTap threads number keeps on growing

2012-03-13 Thread ShlomiJ
Claus Ibsen-2 wrote When you provide an existing thread pool to any Camel EIPs, such as the WireTap, then YOU are in control of the lifecycle of the thread pool. So you have to shutdown this thread pool yourself, when its no longer in-use. I understand your point about the life cycle. But I

Re: WireTap threads number keeps on growing

2012-03-13 Thread Claus Ibsen
On Tue, Mar 13, 2012 at 3:18 PM, ShlomiJ shlomij...@gmail.com wrote: Claus Ibsen-2 wrote When you provide an existing thread pool to any Camel EIPs, such as the WireTap, then YOU are in control of the lifecycle of the thread pool. So you have to shutdown this thread pool yourself, when its

Re: Error using apache-cxf w. Camel 2.9.1

2012-03-13 Thread hefiso
I only use a mocked endpoint in my test: The problem still exists if I remove the mocked endpoint and InterceptSendToEndpoint is still in the StackTrace... I do not know the origin of InterceptSendToEndpoint in the stacktrace, but perhaps it comes from using ? However, I really don't know :-/

Re: JMS - replyToDestinationSelectorName - how to set the value?

2012-03-13 Thread Claus Ibsen
On Tue, Mar 13, 2012 at 3:04 PM, Peter Bromander peter.broman...@gmail.com wrote: Hi thanks for the quick reply. So what you're saying is that currently the only way to correlate a JMS reply is using msgId, corrId or the UUID? We have a case where we would like to correlate using a JMS

Re: streaming of an sql resultset

2012-03-13 Thread Walter De Wit
Thanks for the information. I wrote a custom iterator which makes calls to my underlying service on a page-by-page base (passing each time the start position and fetch size). The JPA interface supports this kind of queries. The splitter does the rest. The more I play with Camel with the more I'm

Re: Camel and Tomcat

2012-03-13 Thread manoj.sahu
Can someone please give some guidance. As per 2.4 servlet spec, Listners (ContexLoaderListener) are loaded first before the servlets in the container. I am unsure how can this work. When the spring context is loaded it will never find the necessary component to resolve the route with

Re: streaming of an sql resultset

2012-03-13 Thread Christian Müller
Thanks for the very good feedback. We are pleased you like Apache Camel. Keep riding the Camel... ;o) Best, Christian On Tue, Mar 13, 2012 at 3:57 PM, Walter De Wit walte...@gmail.com wrote: Thanks for the information. I wrote a custom iterator which makes calls to my underlying service on a

Camel idempotent for Polling Consumer...

2012-03-13 Thread Craig Taylor
Within the file2 component, noop=true specifies that idempotent=true will be set automatically. However, based upon a user initiated action I need to poll a directory endpoint and obtain a list of files present. The auto-set of idempotent=true creates problems as I'm not always able to read

Re: Camel and Spring 3.1

2012-03-13 Thread Christian Müller
David, could you please have a loot at this whether you see a way to support both versions (Spring 3.0 and 3.0). At present we only discovered an issue with the CamelSpringTestContextLoader which is a new class added in Camel 2.10.0. If it's not possible, I'm +1 to postpone the changes we did for

Error with multiple CometD components

2012-03-13 Thread Chris Geer
I have a need to run multiple CometD endpoints where I can selectively dispatch messages to each one based on data in my flow (splitting via different comet subscriptions isn't sufficient). My plan was to run each endpoint on it's own port so they wouldn't overlap but as soon as I try and create a

Re: Camel and Spring 3.1

2012-03-13 Thread Willem Jiang
We may add a profile in the camel-test-spring module and consider this feature is only support in Spring 3.1. We can let the profile pick up the dependency of spring-test and the CamelSpringTestContextLoader at that time. If the people want to have a try with the spring test , he need to

Re: Camel and Tomcat

2012-03-13 Thread Willem Jiang
There are some enhancement on the camel-servlet since camel 2.7.x. If you want to leverage the spring ContextLoaderListener to load the file, you need to upgrade the camel that you use. If not, you need to ask for commerical support as Apache Camel 2.4.0 is released for almost 2 years. On

Re: Error with multiple CometD components

2012-03-13 Thread Willem Jiang
Hi, Which version of Camel are you using ? Do you deploy the Cometd producer and consumer at the same time ? I guess you doesn't past all the routes those you have. On Wed Mar 14 07:29:28 2012, Chris Geer wrote: I have a need to run multiple CometD endpoints where I can selectively dispatch

Re: Error using apache-cxf w. Camel 2.9.1

2012-03-13 Thread Willem.Jiang
Just one comment on the camel-cxf behavior change of Camel 2.9.1. CxfProducer create a new client when it is started to avoid the memory leak if the customer create the route dynamically. I'm not sure if it is relates to test code that you have, can you show us the whole test example. Willem

Re: Error with multiple CometD components

2012-03-13 Thread Chris Geer
We are using Camel 2.8.3 with ServiceMix 4.4.1. The consumer is a webpage using the jquery comet library. You are correct that I didn't publish all my routes in the sample I provided, I just provided enough to show the error. I did some more experimenting and was able to start multiple cometd

Re: Apache Camel Netty

2012-03-13 Thread Ashwin Karpe
Hi, There is no requirement that the Producer be a Camel Netty producer to communicate with a Camel Netty consumer. A straight Netty producer should work with Camel Netty Consumer just fine. It is more important to ensure that the communication handshake (one-way or request/reply) are properly