This sample shows a CMP entity bean that uses a named sequence table to auto-generate primary keys. For more information on the various methods available to auto-generate primary keys, see Automatic Primary Key Generation.
Use of a named sequence table
Use of a CMP entity bean
Use of an EJB Control
Use of a conversational Test Web Service
The code of the CMP entity bean is located in the automaticPK folder of the EJBs project in the SamplesApp sample application. In the file system the location is:
BEA_HOME\weblogic81\samples\workshop\SamplesApp\EJBs\automaticPK\Customer_APK.ejb
The web service that you run as a client application to test the EJB, and the EJB control that you use to locate and reference the EJB, are located in the automaticPK folder of the EJBs_ClientApps project in the SamplesApp sample application. In the file system the location of the web service is:
BEA_HOME\weblogic81\samples\workshop\SamplesApp\EJBs_ClientApps\automaticPK\CustomerControlTest.jws
To Run the Sample
BEA_HOME/weblogic81/samples/workshop/startWebLogic.sh