An annotation based development platform for stateful web services is
described. In one embodiment, the developer expresses logic offered by
the web service using a standard programming language augmented with
declarative annotations specifying preferences for exposing that logic as
a stateful web service. At compile time, an enhanced compiler analyzes
the annotated source file and automatically generates the mechanisms
required to expose its functionality as a stateful web service.