Java Reference
In-Depth Information
Figure 3.8. The ActionBazaar bidder account creation process is broken up into multiple steps. Each step is a
separate method call, and the stateful session bean maintains the state between method invocations.
Each step of the workflow is implemented as a method of the
BidderAccountCreat-
or
presented in
listing 3.2
. Data gathered in each step is incrementally cached into
the stateful session bean in instance variables. Calling either the
cancelAccoun-
tCreation
or
createAccount
method ends the workflow. The
createAccount
method creates the bidder account in the database and it concludes the workflow. The
cancelAccountCreation
method, on the other hand, prematurely terminates the pro-