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
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:
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
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
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")
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
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
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
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
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
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.
:
(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.
;>> 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
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
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
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
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.
camel.465427.n5.nabble.com/Custom-Predicates-definition-in-Spring-XML-tp3256012p3263845.html
Sent from the Camel - Users mailing list archive at Nabble.com.
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
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
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:
>
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
22 matches
Mail list logo