[rules-users] Loading StatefulKnowledgeSession and Session-ID-Concept

O.S. troshmail at googlemail.com
Thu Nov 11 15:48:01 EST 2010


Concerning the "old" unsolved question I would be happy if someone could give
me an answer for these questions:

1) What's the advantage of creating StatefulKSessions with an environment?
(JPA-Persistence excluded)
2) Is the session id (ksession.getId();) depending on the environment?
3) Can globals be shared between sessions in the same environment? (or other
objects)
4) Are StatelessSessions internally also stored in the default Environment?
(because internally they are "wrapped" as StatefullKSessions)

An example concerning question two:
Environment1:
   Session1: id = 1
Environment2:
   Session2: id = 1

--> Is this possible? (that two sessions can have the same id withing
diffrent environments?)

If that is possible, what's with the default Environment (if no Environment
is set at instantiation):
Environment1:
   Session1: id = 1
Environment2:
   Session1: id = 2
DefaultEnvironment:
   Session3: id = 1

--> is this possible?

Kind regards,

O.S.
   


-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Loading-StatefulKnowledgeSession-and-Session-ID-Concept-tp1707335p1885114.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list