Vineet
Vineet

Reputation: 41

How to store rules in database and access them in java files instead of using .drl files in Drools?

I am using Drools project and want to store rules in database as they will be configurable, even when application is running. I have searched on internet but didn't find any satisfactory result.

My requirement is:

"How to store rules in database and access them in java files instead of using .drl files?"

If you have any idea or sample example to demonstrate the same, please share.

Thanks.

Upvotes: 1

Views: 1955

Answers (1)

Toni Rikkola
Toni Rikkola

Reputation: 983

Drools Guvnor uses JCR ( JackRabbit or ModeShape ) you can set them to save your rules into database. It also provides you tools for editing the rules and managing your knowledge packages. It is a bit more than your asking for, but might give you an idea on how to do the db storing.

Upvotes: 3

Related Questions