DB2 10.5 for Linux, UNIX, and Windows

Java WebSphere samples

UNIX directory: sqllib/samples/java/Websphere.

Windows directory: sqllib\samples\java\Websphere.

Table 1. Java WebSphere sample files
Sample program name Program description
AccessEmployee.ear This Enterprise ARchive (.EAR) file consists of four modules containing 32 different .class, .JSP and .HTML files. This EAR file, easily deployed using IBM WebSphere Application Server, demonstrates how Java clients can interact with Enterprise Java Beans (EJBs) to access data stored in DB2.
OptimisticLocking.war This Web ARchive (.WAR) file consists of .class, .jsp, .html and .properties files. This .WAR file can be easily deployed using IBM WebSphere Application Server. The six different types of customer scenarios demonstrate how to prevent an update or delete of a record, when two or more customers are concurrently using the same data in a table.
AIRLINE.war The AIRLINE.war sample program shows how to use currently committed semantics with the cursor stability isolation level to avoid lock waits and deadlock scenarios.