Java Reference
In-Depth Information
Figure 3.1. The BidService class is stateless
An online solitaire game, shown in figure 3.2 , is a good analogy for how stateful session
beans handle state. For the duration of a game, the game server holds state specific to a
player and game in memory. Each game is essentially an extended session enforced through
an underlying persistent connection between the client (player) and the server. Multiple
players can be playing solitaire at the same time, but none share the same game and they're
all given separate, dedicated game instances, each with its own state.
 
Search WWH ::




Custom Search