June 1999
Intermediate to advanced
368 pages
8h 21m
English
With this groundwork behind us, it is now time for an example. Below we've taken the web counter applet and updated it to use transactions; you might first turn back to the previous version (see Section 3.2.3) to refamiliarize yourself with the original code before taking a look at this version. After we have stepped through this example, and have a feel for how transactions are used, we will study the various APIs and semantics of transactions in detail.
Here is the code for the transaction-based web counter applet:
public class WebCounterClient extends Applet { private WebCounter counter; public void init() { JavaSpace space = SpaceAccessor.getSpace(); String url = getDocumentBase().toString(); TransactionManager ...Read now
Unlock full access