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

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

      C_ID
----------
        13
        14
        15
        16
        17
        18
        20
        21
        22
        23
        24

22 rows selected.

SQL> 

We select customer id 22 for our tests.

An order for 5 of item 00001MITEM00005 is made using customer id 22 using
the web interface.

The transaction completes and displays an order number of 325751. This
is confirmed by the debug output in the WebLogic log:

org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB_lhcgd9__WebLogic_CMP_RDBMS <<no stack trace available>>: found SequenceSesHome interface
org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB_lhcgd9__WebLogic_CMP_RDBMS <<no stack trace available>>: found CustomerEntHome interface
org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB_lhcgd9__WebLogic_CMP_RDBMS <<no stack trace available>>: found LargeOrderSesHome interface
org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB_lhcgd9__WebLogic_CMP_RDBMS <<no stack trace available>>: found ItemEntHomeLocal interface
org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB_lhcgd9__WebLogic_CMP_RDBMS <<no stack trace available>>: found OrderLineEntHomeLocal interface
org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB_lhcgd9__WebLogic_CMP_RDBMS <<no stack trace available>>: ejbCreate 
org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB_lhcgd9__WebLogic_CMP_RDBMS <<no stack trace available>>: Atomicity Test (1,2,3): Order Id: 325751
org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB_lhcgd9__WebLogic_CMP_RDBMS <<no stack trace available>>: Atomicity Test 3: OrderLineId: 1
org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB_lhcgd9__WebLogic_CMP_RDBMS <<no stack trace available>>: getPriceWithDiscount 
org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB_lhcgd9__WebLogic_CMP_RDBMS <<no stack trace available>>: getPercentDiscount
org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB_lhcgd9__WebLogic_CMP_RDBMS <<no stack trace available>>: findCustomer
org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB_lhcgd9__WebLogic_CMP_RDBMS <<no stack trace available>>: checkCustomerCredit 
org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB_lhcgd9__WebLogic_CMP_RDBMS <<no stack trace available>>: checkForLargeOrders 
org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB_lhcgd9__WebLogic_CMP_RDBMS <<no stack trace available>>: ejbStore 
org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB_lhcgd9__WebLogic_CMP_RDBMS <<no stack trace available>>: ejbStore 

We now check in the database for Order Number 325751:

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

      O_ID     O_C_ID   O_OL_CNT O_DISCOUNT    O_TOTAL   O_STATUS O_ENTRY_D
---------- ---------- ---------- ---------- ---------- ---------- ---------
O_SHIP_DA
---------
    325751         22          1         .3     862.45          1 15-JAN-03



SQL> select * from o_orderline where ol_o_id = 325751 ;

     OL_ID    OL_O_ID OL_I_ID             OL_QTY  OL_STATUS OL_SHIP_D
---------- ---------- --------------- ---------- ---------- ---------
         1     325751 00001MITEM00005          5

SQL> 
SQL>
