[rules-users] Stateless session dis-associating listeners after first execute call. Bug or a feature?

Mark Proctor mproctor at codehaus.org
Fri Jan 4 23:20:02 EST 2013


each execute creates a new stateful session. All the listers are added to that after it's created, see newWorkingMemory:
https://github.com/droolsjbpm/drools/blob/master/drools-core/src/main/java/org/drools/impl/StatelessKnowledgeSessionImpl.java

Mark
On 4 Jan 2013, at 16:20, Wolfgang Laun <wolfgang.laun at gmail.com> wrote:

> On 04/01/2013, Michal Bali <michalbali at gmail.com> wrote:
>> Hi Wolfgang,
>> 
>> I am not calling dispose() as it is not possible to dispose a stateless
>> session.
> 
> Which I didn't suggest you'd do.
> 
>> I've just noticed that it is called automatically by Drools
>> internal code (when calling StatelessKnowledgeSession.execute(Iterable)
>> method).
> 
> And I tried to point out its consequences and the lack of
> clarification in the Drools docs whether this is the end of life for a
> StatelessKnowledgeSession.
> 
> -W
> 
>> 
>> Thank you for responding.
>> Best Regards,
>> Michal
>> 
>> 
>> On Wed, Dec 26, 2012 at 9:45 AM, Wolfgang Laun
>> <wolfgang.laun at gmail.com>wrote:
>> 
>>> tertium non datur
>> 
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users




More information about the rules-users mailing list