The Persistence sample demonstrates the persistence of user entered information when a session on a card is resumed. The sample stores user-entered information as history and, when the card resumes functioning, the previous entries are made available.
Running the Persistence sample consists of using the IDE to open the Persistence project, starting the application, clicking the hyperlink on the Persistence web page to open the database form, using the form to add and delete items in the database list, and stopping and restarting the server. When the server is stopped and restarted the items in the list should not change.
Before performing the following procedure, the Java Card 3 Development Kit, Connected Editon must be downloaded and installed on your development system.
The Persistence project is located under the JC_CONNECTED_HOME\samples\web folder.
Note - Refer to the Java Card 3 Platform Development Kit User’s Guide for additional details including screen captures.
The IDE compiles, builds, and runs the sample. When the sample runs the IDE launches the default browser and displays the Persistence page.
The browser displays the added text in the Items in Database list.
The browser is no longer connected to the device.
Note - Clicking the Restart menu item terminates this server instance and starts a new server instance. The data is not persistent from one server instance to another.
Verify that the content in the database list is unchanged.