Building a Stateless Application Prototype

Now we are going to make a stateless version of the first prototype application.

Duplicate the project and rename it ForumPrototype2.

Preparing the Application for Statelessness

Set the application to use the direct action request handler by default, as you did in Chapter 4, “Building a Bookmarkable Application.”

We are also going to use object sharing for performance.

In particular, the set of Forums in an online discussion board is unlikely to change, in the sense that new forums would be added or deleted very rarely. So these are the most likely candidates for object sharing.

Also, this version of the prototype is read only, so we shouldn't run into problems by sharing the object graph.

So, set

Get WebObjects® Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.