
Atomicity Test Two
------------------

We select a customer with good credit.

SQL> 
SQL> select c_id from c_customer where c_credit = 'GC' and c_id = < 20;

      C_ID
----------
	 1
	 2
	 4
	 5
	 6
	 7
	 8
	 9
	10
	11
	12

      C_ID
----------
	13
	14
	15
	16
	17
	18
	19

18 rows selected.

SQL> 

For this test, we have chosen a c_id of 1. Using the web interface, we execute a newOrder transaction of 
item 0001MITEM00004 in quantity of 5. The order completes succesfully and the application server output shows:

org.spec.jappserver.orders.orderent.ejb.OrderEnt_nrczp2__WebLogic_CMP_RDBMS java.lang.Exception: found SequenceSesHome interface
org.spec.jappserver.orders.orderent.ejb.OrderEnt_nrczp2__WebLogic_CMP_RDBMS java.lang.Exception: found CustomerEntHome interface
org.spec.jappserver.orders.orderent.ejb.OrderEnt_nrczp2__WebLogic_CMP_RDBMS java.lang.Exception: found LargeOrderSesHome interface
org.spec.jappserver.orders.orderent.ejb.OrderEnt_nrczp2__WebLogic_CMP_RDBMS java.lang.Exception: found ItemEntHomeLocal interface
org.spec.jappserver.orders.orderent.ejb.OrderEnt_nrczp2__WebLogic_CMP_RDBMS java.lang.Exception: found OrderLineEntHomeLocal interface
org.spec.jappserver.orders.orderent.ejb.OrderEnt_nrczp2__WebLogic_CMP_RDBMS java.lang.Exception: ejbCreate 
org.spec.jappserver.orders.orderent.ejb.OrderEnt_nrczp2__WebLogic_CMP_RDBMS java.lang.Exception: Atomicity Test (1,2,3): Order Id: 10752
org.spec.jappserver.orders.orderent.ejb.OrderEnt_nrczp2__WebLogic_CMP_RDBMS java.lang.Exception: Atomicity Test 3: OrderLineId: 1
org.spec.jappserver.orders.orderent.ejb.OrderEnt_nrczp2__WebLogic_CMP_RDBMS java.lang.Exception: getPriceWithDiscount 
org.spec.jappserver.orders.orderent.ejb.OrderEnt_nrczp2__WebLogic_CMP_RDBMS java.lang.Exception: getPercentDiscount
org.spec.jappserver.orders.orderent.ejb.OrderEnt_nrczp2__WebLogic_CMP_RDBMS java.lang.Exception: findCustomer
org.spec.jappserver.orders.orderent.ejb.OrderEnt_nrczp2__WebLogic_CMP_RDBMS java.lang.Exception: checkCustomerCredit 
org.spec.jappserver.orders.orderent.ejb.OrderEnt_nrczp2__WebLogic_CMP_RDBMS java.lang.Exception: checkForLargeOrders 
org.spec.jappserver.orders.orderent.ejb.OrderEnt_nrczp2__WebLogic_CMP_RDBMS java.lang.Exception: ejbStore 

Order number is 10752 is verified via the o_orders and o_orderline tables.

SQL> 
SQL> select * from o_orders where o_id = 10752;

      O_ID     O_C_ID	O_OL_CNT O_DISCOUNT    O_TOTAL	 O_STATUS O_ENTRY_D
---------- ---------- ---------- ---------- ---------- ---------- ---------
O_SHIP_DA
---------
     10752	   16	       1	 .4	593.29		1 20-JUN-03



SQL> 
SQL> select * from o_orderline where ol_o_id = 10752;

     OL_ID    OL_O_ID OL_I_ID		  OL_QTY  OL_STATUS OL_SHIP_D
---------- ---------- --------------- ---------- ---------- ---------
	 1	10752 00001MITEM00004	       5

SQL> 
