Re: How to negate a Predicate?

2009-02-16 Thread Claus Ibsen
Hi I will add a sample to the predicate wiki page http://camel.apache.org/predicate.html But there is a hikup with the apache server right now, so here is part of the source code for an unit test: import static org.apache.camel.builder.PredicateBuilder.not; ... protected RouteBuilder creat

How to negate a Predicate?

2009-02-16 Thread Trevv
Most of my uses of .when are like the first snippet below, very easy to read. But I have a few uses of .when which need to negate the Predicate, and in those places I'm using code like the second snippet below. It works well, and there are no compiler warnings, but it is NOT easy to read. How s

Re: Testing using Camel Test or Spring Testing or Guice

2009-02-16 Thread Willem Jiang
I did a quick fix for it . Please check the latest CAMEL 2.0-SNAPSHOT for it :) Willem On Sun, Feb 15, 2009 at 4:24 PM, Claus Ibsen wrote: > On Fri, Feb 13, 2009 at 11:52 PM, nojonojo wrote: > > > > > > Let me clarify - I chose a poor message to respond to. It's not > appearing > > in the sta

Re: Camel as an OSGi service on a JOnAS 5.1.0-M3 Application Server

2009-02-16 Thread Guillaume Renault
Hi all, I just provided a test to my Camel service, in a simple OSGi gateway out of a JOnAS environment. You can check it, it may give some ideas. Here are the sources to checkout. Guillaume Guillaume Renault a écrit : Hi Willem, i'll check your work as soon as i can :), and test it, thx.

Re: Camel as an OSGi service on a JOnAS 5.1.0-M3 Application Server

2009-02-16 Thread Guillaume Renault
Hi Willem, i'll check your work as soon as i can :), and test it, thx. However, i'm not sure i'll be able to do it before the 1.6.0 release. I also saw the CAMEL-1345 report on JIRA. A way to make things become easier for the users could be to provide a Camel service when its bundle is insta

Re: JavaBean as Splitter

2009-02-16 Thread Claus Ibsen
Hi I created a sample at the wiki page: http://cwiki.apache.org/confluence/display/CAMEL/Splitter On Mon, Feb 16, 2009 at 11:23 AM, Claus Ibsen wrote: > Hi > > > On Mon, Feb 16, 2009 at 11:11 AM, pevgen wrote: >> >> Hello. >> How can I write a class-spliiter ? and how can i use this class in my

Re: JavaBean as Splitter

2009-02-16 Thread Claus Ibsen
Hi On Mon, Feb 16, 2009 at 11:11 AM, pevgen wrote: > > Hello. > How can I write a class-spliiter ? and how can i use this class in my spring > config ? > I use camel 1.5 (because it's stable release). Just create a POJO that has a method that returns something the can be iterateable, eg. return

Splitter as JavaBean

2009-02-16 Thread pevgen
Hello. How can I write a class-spliiter ? and how can i use this class in my spring config ? I use camel 1.5 (because it's stable release). Thanks Evgeny -- View this message in context: http://www.nabble.com/Splitter-as-JavaBean-tp22034573s22882p22034573.html Sent from the Camel - Users maili