Skip to Content
WebObjects® Developer's Guide
book

WebObjects® Developer's Guide

by Ravi Mendis
June 2002
Intermediate to advanced content levelIntermediate to advanced
400 pages
7h 48m
English
Sams
Content preview from WebObjects® Developer's Guide

Making Stateful Components

A second method or technique for improving performance of applications is to make components stateless where appropriate.

The best way to discover statelessness is to look at a component that is stateful. In other words, look at a component that can't be made stateless.

Examining a Stateful Component

In this subsection we're going to a simple component, WOToggle, as an exercise. It is a component switch that can be toggled between an on and off state.

Create a new project, WOToggleTest, and add a new component, WOToggle, to the Application Server, as normal.

Copy in the images PowerSwitch_Off.gif and PowerSwitch_On.gif from /System/Library/WebObjects/JavaApplications/JavaMonitor.woa/WebSeverResources/ into the Web Server ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Real World XML

Real World XML

Steven Holzner
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 0672323265Purchase book