Re: Split, custom threadpools, aggregationstrategy

2010-02-25 Thread Claus Ibsen
Hi Use the method executeService on the split DSL. eg from("activemq:queue:sping-in.queue").split().method(mySplitterBean, "splitBody") .parallelProcessing().executeService(threadPoolExecutor).process(new Processor() { On Thu, Feb 25, 2010 at 11:36 PM, Andrew Chandler wrote: > I'm hoping so

Re: Starting camel context not blocking

2010-02-25 Thread Claus Ibsen
On Thu, Feb 25, 2010 at 4:03 PM, jpcook wrote: > > Hi, > > I noticed that calling start() on camel context doesn't block the thread > anymore which it used to do in earlier versions of camel. I think this is > the correct behavior of Camel 2.0. > To my knowledge invoking start() have newer blocke

Re: Best transport for in-vm synchronous message exchanges

2010-02-25 Thread Claus Ibsen
Make sure MyClass implements Serializable and you may even have to provide a fixed serialVersionId in the class so the JVM can thread it as the same class on both JVMs. On Thu, Feb 25, 2010 at 11:54 PM, Alexandros Karypidis wrote: > Thank you for your replies. I have managed to get the VM transpo

Strange error: Java returned: -1073741819

2010-02-25 Thread NP-Hard
Hi, I'm getting a strange error on one machine (desktop running WinXP with all the recent patches). When I run the example at apache-camel-2.2.0/examples/camel-example-jms-file with ant, I get a strange error every time: BUILD FAILED c:\applications\apache\camel\apache-camel-2.2.0\examples\camel

Re: Best transport for in-vm synchronous message exchanges

2010-02-25 Thread Stephen Gargan
Alexandros, As Claus mentions, once you get classloaders separating your contexts you really need to experiment to get vm routes working. The class 'MyClass' is loaded by each war's classloader and though they are essentially the same they are treated like entirely different classes. One way to ge

Re: Help with camel + activemq on Karaf

2010-02-25 Thread Paul Mietz Egli
Ognian wrote: > I'm trying to use camel with activemq on karaf 1.2 > > I've loaded the following features: > features:addUrl mvn:org.apache.camel.karaf/apache-camel/2.2.0/xml/features > features:addUrl > mvn:org.apache.activemq/activemq-karaf/5.4-SNAPSHOT/xml/features > > > installing camel-osgi

Re: Best transport for in-vm synchronous message exchanges

2010-02-25 Thread Alexandros Karypidis
Thank you for your replies. I have managed to get the VM transport to work by putting Camel (and its dependencies) in jetty/lib/ext. However, I am only able to exchange primitive Java types. Camel complains about not having a type converter for it. I am using POJOs like this: The inteface (exi

Split, custom threadpools, aggregationstrategy

2010-02-25 Thread Andrew Chandler
I'm hoping someone can help me out - I'm relatively new to camel, however I've googled and tried reading the documentation.What I'm trying to do ultimately is take a message, send it through a splitter ( a custom one in the end), and send it to processors in parallel and then use a custom aggr

Re: Starting camel context not blocking

2010-02-25 Thread David Roussel
There are some none-spring java examples in the Camel in Action book. So I guess they can be found here: http://code.google.com/p/camelinaction/ This is about as simple as it gets: http://code.google.com/p/camelinaction/source/browse/trunk/chapter1/file-copy/src/main/java/camelinaction/FileCopi

Re: Apache Camel - Delayer Pattern with ActiveMQ JMS

2010-02-25 Thread magellings
I noticed by default with spring xml the camel consumer is not transactional...it most likely defaults to client acknowledgement which means the message being processed (and sleeping) will be lost. To configure transactional via spring you add the transacted property then the message is not lost.

Re: [Discuss] Apache Camel - Clustering/Loadbalancing solutions (inventory)

2010-02-25 Thread James Strachan
On 25 February 2010 16:28, Charles Moulliard wrote: > Hi, > > If we investigate what Camel 2.x project proposes in terms of > clustering/loabalancing solution, we can categorize the solutions like this > : > > 1. Loadbalancing > loadbalance() : http://camel.apache.org/load-balancer.html > > 2. Clu

[Discuss] Apache Camel - Clustering/Loadbalancing solutions (inventory)

2010-02-25 Thread Charles Moulliard
Hi, If we investigate what Camel 2.x project proposes in terms of clustering/loabalancing solution, we can categorize the solutions like this : 1. Loadbalancing loadbalance() : http://camel.apache.org/load-balancer.html 2. Clustering 2.1. Same JVM & CamelContext seda:// : http://camel.apache.or

Re: OnException and log level

2010-02-25 Thread Julien D
Since the logged exception was the following : 2010-02-25 16:31:57,058 ERROR [Logger.java:248] - Failed delivery for exchangeId: acaf9632-cad3-43c0-b642-cce11b2f87c7. Exhausted after delivery attempt: 1 caught: MyException stack trace I tried to add retriesExhaustedLogLevel(LoggingLevel.DEBUG) t

Re: ServiceMix 4.2 web

2010-02-25 Thread Charles Moulliard
Yes. More info here : https://issues.apache.org/activemq/browse/SMX4-456 look to the zip Charles Moulliard Senior Enterprise Architect Apache Camel Committer * blog : http://cmoulliard.blogspot.com twitter : http://twitter.com/cmoulliard Linkedlin : http://www.linkedi

Re: OnException and log level

2010-02-25 Thread Julien D
I already use the handled(true) in my exception route and I don't want camel to log my functionnal exceptions. Julien D wrote: > > Hi, > > Since the 2.1.0 Camel is logging the exceptions at ERROR level. Is there a > way to tell Camel that it's taking care of and not log those exceptions ? > >

ServiceMix 4.2 web

2010-02-25 Thread lekkie
Hi Guys, Is there a war file (that can be deployed in tomcat) for service 4.2? kr. -- View this message in context: http://old.nabble.com/ServiceMix-4.2-web-tp27714458p27714458.html Sent from the Camel - Users mailing list archive at Nabble.com.

Starting camel context not blocking

2010-02-25 Thread jpcook
Hi, I noticed that calling start() on camel context doesn't block the thread anymore which it used to do in earlier versions of camel. I think this is the correct behavior of Camel 2.0. But I wondered if there was a simple example of starting the context and stopping it exiting straight away wit

Re: camel-http: basic authentication and query parameter "username"

2010-02-25 Thread Willem Jiang
Hi, Can you try to set the second username paramerters by setting the message header with name of Exchange.HTTP_QUERY? Willem Matteo Redaelli wrote: The problem is that I should manage 2 "username" parameters! 1)the first is a query parameter add in the remote url: it will be used to retre

Re: OnException and log level

2010-02-25 Thread Claus Ibsen
On Thu, Feb 25, 2010 at 2:25 PM, Julien D wrote: > > Hi, > > Since the 2.1.0 Camel is logging the exceptions at ERROR level. Is there a > way to tell Camel that it's taking care of and not log those exceptions ? > Yes. Try using code completion on onException and see which methods you got. There

Re: camel-http: basic authentication and query parameter "username"

2010-02-25 Thread Matteo Redaelli
The problem is that I should manage 2 "username" parameters! 1)the first is a query parameter add in the remote url: it will be used to retreive info about that user 2) but, for basic authentication, camel also requires a parameter with the same name "username" ... and the username for the basi

OnException and log level

2010-02-25 Thread Julien D
Hi, Since the 2.1.0 Camel is logging the exceptions at ERROR level. Is there a way to tell Camel that it's taking care of and not log those exceptions ? Thanks -- View this message in context: http://old.nabble.com/OnException-and-log-level-tp27714424p27714424.html Sent from the Camel - Users

Re: Apache CXF wiki page : clarification requested

2010-02-25 Thread Willem Jiang
Hi Charles, I think you need to send this mail to CXF user list and you should be able to get a karma to enhance the CXF wiki document. Willem Charles Moulliard wrote: Hi, In, the Apache Wiki page of CXF, the following concepts are presented : - PRE-STREAM - IN-BAND - OUT-BAND Can we have

Re: Wiki : Apache Camel SEDA : Queue size ???

2010-02-25 Thread Charles Moulliard
Thx I will update the wiki page. Charles Moulliard Senior Enterprise Architect Apache Camel Committer * blog : http://cmoulliard.blogspot.com twitter : http://twitter.com/cmoulliard Linkedlin : http://www.linkedin.com/in/charlesmoulliard Apache Camel Group : http://ww

Re: Wiki : Apache Camel SEDA : Queue size ???

2010-02-25 Thread Claus Ibsen
On Thu, Feb 25, 2010 at 12:32 PM, Charles Moulliard wrote: > Hi, > > The wiki page of camel SEDA component introduces the concept of SEDA queue > size : > > Slide 105 > The maximum size of the SEDA queue. The default value in Camel 2.2 or older > is 1000. From Camel 2.3 onwards the size is unbound

Wiki : Apache Camel SEDA : Queue size ???

2010-02-25 Thread Charles Moulliard
Hi, The wiki page of camel SEDA component introduces the concept of SEDA queue size : Slide 105 The maximum size of the SEDA queue. The default value in Camel 2.2 or older is 1000. From Camel 2.3 onwards the size is unbounded by default. What is the meaning of this value (Memory size, number of

Re: jdbc producers

2010-02-25 Thread Claus Ibsen
Hi Paul Thanks for coming back and letting us know you have it resolved now and sharing the solutions to the problem. On Thu, Feb 25, 2010 at 11:19 AM, Paul Phillips wrote: > > I was using camel 2.1 > > Have upgraded to 2.2 now > > I have since discovered that the "extra" jdbc producers were my

Re: jdbc producers

2010-02-25 Thread Paul Phillips
I was using camel 2.1 Have upgraded to 2.2 now I have since discovered that the "extra" jdbc producers were my own fault anyway because of a classic mistake. During my route a was creating a new ProducerTemplate in a processor. This meant that it had its own ProducerCache that was empty thus m

Re: Environment Variables using Simple language

2010-02-25 Thread Claus Ibsen
Hi Thanks for sharing. Let me take a look at this to see if there is a bug in there. On Wed, Feb 24, 2010 at 6:24 PM, ychawla wrote: > > Hello All, > I was unable to get the simple language to read from my environment > variables in Windows.  I did find a workaround for this that might be > hel

Re: Resequencer Issues with ActiveMQ

2010-02-25 Thread Claus Ibsen
The JMS header is named JMSPriority with a big P. So it should be in.header.JMSPriority And you can use instead of the AFAIR On Thu, Feb 25, 2010 at 2:17 AM, Andrew Harvey wrote: > Hi there, > > I've been battling for a few days to get a resequencer working with ActiveMQ > based on messag

Apache CXF wiki page : clarification requested

2010-02-25 Thread Charles Moulliard
Hi, In, the Apache Wiki page of CXF, the following concepts are presented : - PRE-STREAM - IN-BAND - OUT-BAND Can we have a clear definition or a clarification of these concepts in the wiki page please because it is difficult to understand what they are related to (ex : PRE_STREAM phase is remo