You must use the jbi:route drools consequence to route InOut exchanges,
as shown in
http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-components/src/test/resources/org/apache/servicemix/components/drools/jbi-rules-route.xml?view=markup
Cheers,
Guillaume Nodet
On 6/22/06, AndreasH <[EMAIL PROTECTED]> wrote:
Well, I am trying to answer my own question, might not be very smart but
maybe helpful to somebody else. I found the following piece of code in
DroolsComponent.java:
protected void process(MessageExchange exchange, NormalizedMessage in)
throws Exception {
WorkingMemory memory = ruleBase.newWorkingMemory();
populateWorkingMemory(memory, exchange, in);
routed.set(null);
memory.fireAllRules();
if (routed.get() == null) {
if (exchange instanceof InOut) {
fail(exchange, new Exception("Drools component has not
routed the exchange"));
} else {
done(exchange);
}
}
}
Basically, there seems to be no support for InOut messages in
DroolsComponent? This would also correspond with what I observed, namely,
despite the status error, the message was routed to the service. However,
the response is ending up in nirvana. Based on an earlier post, I was of
the
impression that InOut support had been added to DroolsComponent, maybe I
was
misunderstanding that message?
Regards
Andreas
--
View this message in context:
http://www.nabble.com/Routing-of-InOut-exchange-t1823348.html#a4992743
Sent from the ServiceMix - User forum at Nabble.com.