O'Reilly logo

Drools JBoss Rules 5.0 Developer's Guide by Michal Bali, Bogdan Brinzarea

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, we've learned about stateful sessions, what are they used for, and how they keep their state between session invocations. This is especially useful in long iterative interaction scenarios, for example, in a web application where a user logs into the system, makes couple of changes in multiple HTTP requests, and logs out of the system.

Logical assertions were discussed. We saw that they are automatically retracted when none of the conditions that inserted them are true. This was useful as it kept the validation report updated all the time.

Finally, the serialization section discussed two options of serializing a stateful session—Identity and Serialized. An example was given of how to serialize the stateful service which contained ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required