Hi See the Camel expression language which is called Simple. It can do this http://camel.apache.org/simple.html
Otherwise you can choose any of the scripting language which can do this, like Groovy etc. http://camel.apache.org/languages.html On Fri, Apr 23, 2010 at 8:50 PM, Gareth Collins <[email protected]> wrote: > > Hello, > > I had originally written my CAMEL application using Java DSL. Now I want to > convert to the Spring DSL. I am sure this conversion is obvious (I am new to > Spring), but I haven't found in the documentation or on the web how to > convert body().isInstanceOf(xxx.class) i.e.: > > .choice() > .when(body().isInstanceOf(xxx.class)) > .process(...).stop() > .when(body().isInstanceOf(yyy.class)) > .process(...).stop() > .when(body().isInstanceOf(zzz.class)) > .process(...) > .end() > > If someone could help me out and tell me how to do this, or point me to the > section in the docs which show how to do this in Spring, it would be a > really big help. > > Thanks very much in advance. > > regards, > Gareth Collins > -- > View this message in context: > http://old.nabble.com/CAMEL-Spring-Equivalent-of-body%28%29.isInstanceOf%28AddEndpointNotificationMessage.class%29-tp28345067p28345067.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
