Quantcast

Setting variables in a stateless session

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Setting variables in a stateless session

bardelman
hi folks, this is a simple question ,
i just want to understand how is it possible that a stateless session have a setGlobal() method as it does not maintain a state. What's the point ?!
i  also have some confusion between a "request scope" and a "stateless session scope" i think it s the same..
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] Setting variables in a stateless session

laune
On 26/04/2012, bardelman <[hidden email]> wrote:
> hi folks, this is a simple question ,
> i just want to understand how is it possible that a stateless session have
> a
> setGlobal() method as it does not maintain a state. What's the point ?!

You don't keep "state" in globals with a stateful session either, so
your question is moot. If you don't have the need for a global, then
don't use it.

> i  also have some confusion between a "request scope" and a "stateless
> session scope" i think it s the same..

Probably, if I interpret your "request scope" correctly.

-W

>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Setting-variables-in-a-stateless-session-tp3940652p3940652.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] Setting variables in a stateless session

bardelman
thnx laune , so a session state is only facts inserted into that session.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] Setting variables in a stateless session

Armand Welsh
In reply to this post by bardelman
Think of a stateless knowledge session as being a statefull knowledge session, with the following adjustments:
A stateless knowledge session cannot be manipulated prior the start of the session.
A stateless knowledge session cannot be manipulated or queried after the end of the session.
A stateless session begins when you execute the fireallrules method.
A stateless session ends when the rule processing terminates.  -- There is no pause, there is no restarting.  The instant the rules stop firing, and return to your calling code, the knowledge session has been torn down.



-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of bardelman
Sent: Thursday, April 26, 2012 2:06 AM
To: [hidden email]
Subject: [rules-users] Setting variables in a stateless session

hi folks, this is a simple question ,
i just want to understand how is it possible that a stateless session have a
setGlobal() method as it does not maintain a state. What's the point ?!
i  also have some confusion between a "request scope" and a "stateless
session scope" i think it s the same..
 

--
View this message in context: http://drools.46999.n3.nabble.com/Setting-variables-in-a-stateless-session-tp3940652p3940652.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Loading...