CDI Integration
by Robert Morse
I was asking the Seam 3 guys about Drools support, and Shane Bryzak replied:
"We need to update that page - Seam will not be providing a Drools module, rather the Drools team will be providing native CDI integration instead."
Any idea when there will be CDI support?
The human mind is an iterative processor, it never does anything right the first time. What it does well is to make improvements on every iteration (deMarco)
14 years, 7 months
Memory leak in Drools InputMarshaller - JBRULES-3303
by Swindells, Thomas
We've identified a memory leak in Drools when using JPAKnowledgeService.loadStatefulKnowledgeSession.
We've raised the issue here https://issues.jboss.org/browse/JBRULES-3303?focusedCommentId=12647082#co...
The problem is that the InputMarshaller ends up registering a listener on the knowledge base twice, but only cleans up one of them when the session is disposed. This results in the KnowledgeBase keeping a reference to the session and leaking memory.
I've done an analysis of it and the fix appears to be changing InputMarshaller line 204 from
session.setKnowledgeRuntime(new StatefulKnowledgeSessionImpl(session));
to
new StatefulKnowledgeSessionImpl(session);
The sessionImpl calls session.setKnowledgeRuntime() during the constructor.
I've attached a fuller explanation to the issue and there is sample code there as well.
It would be great if this could be applied to the 5.3 branch as we need this fix in order to be able to deploy our application.
Thanks,
Thomas
________________________________
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster(a)nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************
14 years, 7 months
Assignment problem
by Patrik Dufresne
Hi,
I am a Java developer and I am currently working on a work force management
software for food compagnies. So far, I've decided to use constraint
programming (CP) to find a solution to the problem. The current version is
using JaCoP as a solver, but I find it hard to make it support
soft-constraint and it only use Depth First search. So I'm looking around for
a different solver engine and Drools Planner seams to fit my need. I'm
just concern about it's speed since I don't see any way to add global
constraint (like all-different, Count, Among, etc.)
I've look closely to the nurse rostering example. My problem is very
similar. Let say, I have 150 nurses, ~42 different skills, 9 shifts, ~300
events to be assigned. Whats make it easier compare to the example, I only
need to plan one week. My question is simple, does Drools will be able to
handle it ?
To give a better understanding of the problem I'm trying to solve, I've
attach a PDF document with more explanations. (
https://docs.google.com/open?id=0BykkHu_UReIvYzg3NmM2YmUtYjVhNy00NjgwLTli...
)
Thanks to post your opinion.
Any tips are welcome.
--
Patrik Dufresne
14 years, 7 months