[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1635) Migrating to Drools 4.0.0 MR3
Ning Zhao (JIRA)
jira-events at lists.jboss.org
Sun Jul 15 19:24:03 EDT 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1635?page=comments#action_12369039 ]
Ning Zhao commented on JBSEAM-1635:
-----------------------------------
I saw the RuleBasedSecurity in the org.jboss.seam.security package was changed to use a stateful session. Although in fact it works much like a workingMemory but I think the security rules are quite a global rules, thus using WorkingMemory might be better. In my own project I hook drools like this in the SFSB conversation beans:
@In(create = true)
private RuleBase recipeTagRules;
...
private void addHealthyTags() {
StatelessSession tagsSls = this.recipeTagRules
.newStatelessSession();
tagsSls.setGlobal("recipeManager", this);
tagsSls.execute(this.recipeNutrients);
}
or use StatefulSession where appropriate.
> Migrating to Drools 4.0.0 MR3
> -----------------------------
>
> Key: JBSEAM-1635
> URL: http://jira.jboss.com/jira/browse/JBSEAM-1635
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Drools
> Affects Versions: 2.0.0.BETA1
> Environment: OS: all. JBoss AS 4.2.0 GA. Seam CVS 2007-07-10, Drools SVN 2007-07-10
> Reporter: Ning Zhao
> Assigned To: Shane Bryzak
> Fix For: 2.0.0.CR1
>
> Attachments: DroolsHandler.java, RuleBase.java, RuleBasedIdentity.java
>
>
> Drools API has been changed since 4.0.0M3. Please see:
> http://wiki.jboss.org/wiki/Wiki.jsp?page=4.0.0.MR3ReleaseNotes
> Corresponding changes in the Seam codebase and Seam reference should be made if Drools 4.0 GA is to be used in the future Seam.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list