-
1. Re: Content Base Routing
mmusaji Sep 2, 2011 10:15 AM (in response to pete_p)1 of 1 people found this helpfulI'm not an expert in this area but here's the source code you can have a look at it and hopefully will help you out a bit
-
2. Re: Content Base Routing
pete_p Sep 4, 2011 3:01 PM (in response to mmusaji)Hi,
Nice link. I tried to follow the code which than required me to look for more implementation code etc.. until all I could get access to interfaces which obvioulsy didn't the detailed behaviour.
So I think looking at source code is probably not this best thing on this occasion.
To this end if any one can shed some word to explain the behaviour, ie, how the ContentBasedRouter class knows
about the parameters held in the ESB message;
Many Thanks
Pete
-
3. Re: Content Base Routing
pete_p Sep 5, 2011 6:56 AM (in response to pete_p)Hi
Kinda answering my own question... after further investigation.
Any parametes ( class instances) required either in the java class or in the "drools" file are stored in the ESB message body
by the caller.
In the java class, the parameters can be read back from the ESB message body.
In the drools file, any parameters used in a rule will be read from the ESB body and put into the variable ( $par) by the rule engine.
Thats my understanding.
Please clarify if I am wrong.
Pete