Synthetic Scenario Simulation Documentation

2010

This sample demonstrates a simple ticket sales. Tickets for events are available for a limited time. Transactions represent customers trying to obtain tickets.



Transactions start by holding the desired number of tickets. If insufficient tickets are available to be held the transaction fails and the number of requested tickets is considered to have failed due to being unavailable. If the requested tickets can be held, the buyer may either complete the transaction by completing the purchase or by deciding not to purchase them and return them.



The simulation includes use of Java Data Objects (JDO) through the DataNucleus implementation. (JDO enables XML configuration to switch between persistence implementations similar to ODBC.)



Events and transactions are populated in an in-memory instance of HyperSQL. Availability and transaction statistics are collected in this in-memory instance.

See also:
http://www.datanucleus.org
http://hsqldb.org