I think the better approach if possible is to serialize your rule base and
storing it in the database as such. Storing the DRL and recompiling your
rules at run time will be quite expensive. We have a similar setup and it
has worked out pretty well for us.
techy wrote:
Hi,
If the rules,conditions,consequences have to be loaded from the database.
I can think of following two approach. what would be right approach( I
will have upto 1200 rules in the db)
1. Programmatically inject the rules into rule engine using drools API.
2. Read the rules from the database and create drl or dsl file for them
and inject into rule engine.
Thanks
--
View this message in context:
http://www.nabble.com/loading-rules-dynamically-tp20274919p20307811.html
Sent from the drools - user mailing list archive at
Nabble.com.