[daydreamer:477] runTxnServer

--- runTxnServer ---

java version "1.2"
Classic VM (build JDK-1.2-V, green threads, sunwjit)

java -Djava.security.policy=/home/sang/src/examples/txn/policyTxnServer -Djava.rmi.server.codebase=http://daydreamer:8080/sun-util.jar http://daydreamer:8081/TxnServer-srvc-dl.jar http://daydreamer:8081/TxnServer-attr-dl.jar -jar /home/sang/jars/TxnServer.jar daydreamer
groupsToJoin[0] = daydreamer
LookupDiscoveryListener:  discovered...
  Lookup on host jini://daydreamer/:
    regGroups[0] belongs to Group: public
    regGroups[1] belongs to Group: daydreamer
Registered ServiceID:  99ea4b1d-c9a3-4fc7-a9be-fb1aa8bdc715
Registered ServiceID:  7544908c-ca07-4fbb-8608-f57aa0d9c322
.....................

Discovery & Service Registration Complete ...


TxnServerImpl: withdraw() called on Account1
TxnServerImpl: deposit() called on Account2
TxnServerImpl: prepare() called on Account1
TxnServerImpl: prepare() called on Account2
TxnServerImpl: commit() called on Account1
TxnServerImpl: commit() called on Account2


TxnServerImpl: withdraw() called on Account1
TxnServerImpl: deposit() called on Account2
TxnServerImpl: abort() called on Account1
TxnServerImpl: abort() called on Account2


TxnServerImpl: withdraw() called on Account1
TxnServerImpl: abort() called on Account1

--------------------------> Run TxnClient in another window
-------------------------->

[daydreamer:224] runTxnClient

--- runTxnClient ---

java version "1.2"
Classic VM (build JDK-1.2-V, green threads, sunwjit)

java -Djava.security.policy=/home/sang/src/examples/txn/policyTxnClient -Djava.rmi.server.codebase=http://daydreamer:8080/jini-ext.jar -jar /home/sang/jars/TxnClient.jar daydreamer
groupsWanted[0] = daydreamer

Waiting For Discovery to Complete

LookupDiscoveryListener:  discovered...
  Lookup on host jini://daydreamer/:
  belongs to Group: public
  belongs to Group: daydreamer
...............


Lookup Service on Host: jini://daydreamer/
  Belongs to Group: daydreamer
TxnParticipant Account1 found.
TxnParticipant Account2 found.

Lookup Service on Host: jini://daydreamer/
  Belongs to Group: daydreamer

TransactionManager found via lookup..

---Initial balances of Account1 = $100 and Account2 = $200
---Under transaction.. withdraw $40 from Account1 and deposit it to Account2
---Commit the transaction!
---Wait a few seconds so that transaction manager can finish its work
---Resulting balances of Account1 = $60 and Account2 = $240

---Initial balances of Account1 = $60 and Account2 = $240
---Under transaction.. withdraw $40 from Account1 and deposit it to Account2
---Abort the transaction!
---Wait a few seconds so that transaction manager can finish its work
---Resulting balances of Account1 = $60 and Account2 = $240

---Initial balances of Account1 = $60 and Account2 = $240
---Under transaction.. withdraw $40 from Account1
---Abort the transaction!
---Wait a few seconds so that transaction manager can finish its work
---Resulting balances of Account1 = $60 and Account2 = $240
[daydreamer:225] 
