SQL> select c_id from c_customer where c_credit = 'BC' and c_id < 100;

      C_ID
----------
         7
        11
        19
        32
        66
        67
        69
        92

8 rows selected.

We select customer ID 7 as the customer with a bad credit.

Using the Web interface, we execute an order with this customer ID.
The Web transaction fails, returning an Insufficient Credit exception.

The WebLogic output file displays:

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: 68001
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 


The Order Id is 68001.


SQL> select * from o_orders where o_id = 68001;

no rows selected

SQL> 

SQL> select * from o_orderline where ol_o_id = 68001;

no rows selected

SQL>
