[rules-users] Different Thread Handling between fireAllRules() and fireUntilHalt()

totempole dr.xyliu at gmail.com
Mon May 14 23:32:57 EDT 2012


The issue occurs only when fireUntilHalt() is launched in Drools-Spring
integration, like this,

    <drools:ksession id="ksession" type="stateful" name="ksession"
kbase="kbase" >    
        <drools:batch>
            <drools:set-global identifier="droolsServiceUtil"
ref="droolsServiceUtil" />
            *<drools:fire-until-halt />*
        </drools:batch>
    </drools:ksession>

When I invoke the same method in Java below, the issue doesn't show up.
Could it be a bug in Drools-Spring integration?
    @Async
    public void fireRulesUtilHalt() 
    {
            try {
                getKsession().fireUntilHalt();  
            } catch ( ConsequenceException e ) {
                throw e;
            }
    }


--
View this message in context: http://drools.46999.n3.nabble.com/Different-Thread-Handling-between-fireAllRules-and-fireUntilHalt-tp3985748p3987310.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list