RE: Predicates

2022-10-18 Thread Reto Peter
Hi Claus Thanks! Now it works I do use: Predicate isSystemActive = simple("${exchangeProperty.systemConfig.isActive}").isEqualTo(true); -Original Message- From: Claus Ibsen Sent: Tuesday, 18 October 2022 09:13 To: users@camel.apache.org Subject: Re: Pred

Re: Predicates

2022-10-18 Thread Claus Ibsen
mActive = exchangeProperty > ("systemConfig.isActive").isEqualTo(true); > > So later I can use: > choice().when(isSystemActive) > > -Original Message- > From: Claus Ibsen > Sent: Monday, 17 October 2022 20:49 > To: users@camel.apache.org > Subject:

RE: Predicates

2022-10-18 Thread Reto Peter
Active = exchangeProperty ("systemConfig.isActive").isEqualTo(true); So later I can use: choice().when(isSystemActive) -Original Message- From: Claus Ibsen Sent: Monday, 17 October 2022 20:49 To: users@camel.apache.org Subject: Re: Predicates Hi > exchangeProperty("systemConfig.isActive

Re: Predicates

2022-10-17 Thread Claus Ibsen
mple question about the Predicates > I got a systemConfig object, which has 2 getters/setters. > The systemConfig object is set as an exchange property. > > When I use a the simple function, that works! > from("direct:testPredicates") > .to("direct

Predicates

2022-10-17 Thread Reto Peter
Hi I have a simple question about the Predicates I got a systemConfig object, which has 2 getters/setters. The systemConfig object is set as an exchange property. When I use a the simple function, that works! from("direct:testPredicates") .to("direct:getSystemConfig")

Re: Serialization of Predicates?

2022-07-02 Thread Claus Ibsen
Hi I think we also chatted about this on the zulip chat room https://camel.zulipchat.com/#narrow/stream/257298-camel/topic/Predicates On Thu, Jun 30, 2022 at 11:58 AM Steve973 wrote: > Hello. I am using the dynamic router EIP component, and I need to send a > subscription messag

Serialization of Predicates?

2022-06-30 Thread Steve973
Hello. I am using the dynamic router EIP component, and I need to send a subscription message from another JVM, so I am sending the subscription message as the message body of a JMS message. Unfortunately, Predicates are not serializable. As a workaround, I could send all of the parameter

[3.7.0] Issue with exception handling - predicates...

2021-02-11 Thread Lutor, Zoltan (Nokia - HU/Budapest)
let's give it a try here too... 😉 thx in advance your help. Zoltan -Original Message- Sent: Tuesday, February 9, 2021 12:56 PM To: iss...@camel.apache.org Subject: [3.7.0] Issue with exception handling - predicates... Hello, We are in the middle of moving from camel version 2.22

Building predicates/routes at runtime

2014-12-06 Thread Behrad
This may not be the correct place to share this, but there's no dedicated akka-camel, or scala-dsl camel community out there, so I ask it here. I want to build my camel CBR when predicates at run-time based on user input: considering my CamelMessage bodies are of case class Book as below

Re: Camel routing using Predicates

2014-03-18 Thread Claus Ibsen
exceptions:- > Failed to create route route1: Route[[From[ATM]] -> > [Choice[[When[simple{${oprcode} == 'ATM... because of No endpoint could be > found for: ATM, please check your classpath contains the needed Camel > component jar. > > > I want to channel

Camel routing using Predicates

2014-03-18 Thread arko1983
for: ATM, please check your classpath contains the needed Camel component jar. I want to channel the requests through camel. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-routing-using-Predicates-tp5749029.html Sent from the Camel - Users mailing list archive at Nabble.com.

Content-based routing with Expressions and Predicates

2013-04-01 Thread Chris Wolf
: (Be advised, Gmail forces lines wraps around column 72 or so, so the code formatting will be mangled) Don't forget to statically import the predicates you will be using in compound expressions.. import static org.apache.camel.builder.PredicateBuilder.and; import static org.apache.camel.

Re: Scala DSL - Calling Spring beans as predicates

2011-12-16 Thread Claus Ibsen
;>> not that the bean binding can't see the method. >>> >> >> We can use help on the Scala DSL. Maybe we could add a method so you >> can invoke a bean from the Scala predicates. >> >> However can you just do as in Java DSL >> >> when().method(&quo

Re: Scala DSL - Calling Spring beans as predicates

2011-12-14 Thread Craig McDaniel
e help on the Scala DSL. Maybe we could add a method so you > can invoke a bean from the Scala predicates. > > However can you just do as in Java DSL > > when().method("myBean") instead? > The only way I can figure to do this is to make this one whole route a

Re: Scala DSL - Calling Spring beans as predicates

2011-12-13 Thread Claus Ibsen
On Mon, Dec 12, 2011 at 5:53 PM, Craig McDaniel wrote: > I guess I should clarify that I'm getting an AmbiguousMethodCallException, > not that the bean binding can't see the method. > We can use help on the Scala DSL. Maybe we could add a method so you can invoke a bean from t

Re: Scala DSL - Calling Spring beans as predicates

2011-12-12 Thread Craig McDaniel
I guess I should clarify that I'm getting an AmbiguousMethodCallException, not that the bean binding can't see the method. -- View this message in context: http://camel.465427.n5.nabble.com/Scala-DSL-Calling-Spring-beans-as-predicates-tp506p5068910.html Sent from the Camel - Use

Scala DSL - Calling Spring beans as predicates

2011-12-12 Thread Craig McDaniel
he best solution in this case. Any thoughts? -- View this message in context: http://camel.465427.n5.nabble.com/Scala-DSL-Calling-Spring-beans-as-predicates-tp506p506.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Custom Predicates definition in Spring XML

2010-11-13 Thread rxm0203
camel.465427.n5.nabble.com/Custom-Predicates-definition-in-Spring-XML-tp3256012p3263845.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Custom Predicates definition in Spring XML

2010-11-10 Thread Christian Müller
Hello Ray! I build a small example and it works. If you like, I can send you my example Eclipse project. {code:title=MyPredicate.java} public class MyPredicate implements Predicate { public boolean matches(Exchange exchange) { return true; } } {code} {code:title=MyBean} public c

Re: Custom Predicates definition in Spring XML

2010-11-09 Thread rxm0203
umentationProcessor.java:67) at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53) at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82) Thanks, Ray -- View this message in context: http://camel.465427.n5.nabble.com/Custom-Predicates-definition-in-Spring-X

Re: Custom Predicates definition in Spring XML

2010-11-08 Thread Claus Ibsen
JMS/ActiveMQ you need to enable transacted=true on the JMS connection factory. There is a free excerpt of the Camel book chapter 9 here, which covers transactions with Camel http://fusesource.com/fuse/apache-books/ > Thanks, > > Ray > > -- > View this message in context: >

Custom Predicates definition in Spring XML

2010-11-08 Thread rxm0203
If it is incorrect, what is correct syntax? Can I make route transactional with following syntax? http://camel.apache.org/schema/spring";> Thanks, Ray -- View this message in context: http://camel.465427.n5.nabble.com/Custom-Predicates-definition-in-Spring-XML-tp3256