1 of 1 people found this helpful
I'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
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;
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.