Build with ant ear and deploy jars/test.ear to the appserver (which requires
a JNDI resource of TestDB with the schema in README.SCHEMA).

Visit http://yourhost:port/test/TestServlet

Click on the Do Query link. That should work. Click on the Do Query link again. 
That will hang, because the record is still locked in the database even
though the transaction was committed.
