开发者

JBoss Rules 5 and "static" facts

开发者 https://www.devze.com 2023-03-28 07:32 出处:网络
I am designing a system in which I plan to use Drools 5. The system has several hundred facts that are read from a database. These facts ar开发者_运维百科e the same for each session. How can I create

I am designing a system in which I plan to use Drools 5. The system has several hundred facts that are read from a database. These facts ar开发者_运维百科e the same for each session. How can I create a session where I DON'T have to load these facts for each new session? Is there a way to cache them at the KnowledgeBase level?

Thanks in advance for any and all relevant responses.

Earnie!


Take a look at stateful sessions.

Note that they aren't multi-threaded, but with a ThreadLocal you can initialize just 1 per thread.

0

精彩评论

暂无评论...
验证码 换一张
取 消