	Atomicity Test 2
	----------------

Select a customer with good credit from the c_customer table:



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

      C_ID
----------
	 1
	 2
	 3
	 5
	 6
	 7
	 8
	 9
	11
	12
	13

      C_ID
----------
	14

12 rows selected.

SQL> 

We have chosen customer 5 as the customer with good credit.

Using the Web interface, we execute a new order with a customer id of 5. The
order requests a quantity of 40 of item 00001MITEM00009.

The order completes successfully and the web output shows an order number
of 3897502.

WebLogic has the following output appended to its console logfile:

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: 3897502
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 3897502 is confirmed in the debug output above. We using this number now
to validate the order status in the o_orders and o_orderline tables:


SQL> select * from o_orders where o_id = 3897502 ;

      O_ID     O_C_ID	O_OL_CNT O_DISCOUNT    O_TOTAL	 O_STATUS O_ENTRY_D
---------- ---------- ---------- ---------- ---------- ---------- ---------
O_SHIP_DA
---------
   3897502	    5	       1	 .2   10748.88		1 15-MAR-03



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

     OL_ID    OL_O_ID OL_I_ID		  OL_QTY  OL_STATUS OL_SHIP_D
---------- ---------- --------------- ---------- ---------- ---------
	 1    3897502 00001MITEM00009	      40

SQL> 
