开发者

JBoss Rules 5 and "static" facts

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜